mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
abfb9e7ee2
Summary: Switch to FileCheck where possible. Adjust tests so they can be easily regenerated by update scripts. Reviewers: craig.topper, spatel, RKSimon Reviewed By: spatel Subscribers: MatzeB, qcolombet, arphaman, jfb, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D71211
26 lines
721 B
LLVM
26 lines
721 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=i686-- | FileCheck %s
|
|
|
|
define i64 @i32_sext_i64(i32 %a, i32 %b) {
|
|
; CHECK-LABEL: i32_sext_i64:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
; CHECK-NEXT: imull {{[0-9]+}}(%esp)
|
|
; CHECK-NEXT: retl
|
|
%aa = sext i32 %a to i64
|
|
%bb = sext i32 %b to i64
|
|
%cc = mul i64 %aa, %bb
|
|
ret i64 %cc
|
|
}
|
|
define i64 @i32_zext_i64(i32 %a, i32 %b) {
|
|
; CHECK-LABEL: i32_zext_i64:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
; CHECK-NEXT: mull {{[0-9]+}}(%esp)
|
|
; CHECK-NEXT: retl
|
|
%aa = zext i32 %a to i64
|
|
%bb = zext i32 %b to i64
|
|
%cc = mul i64 %aa, %bb
|
|
ret i64 %cc
|
|
}
|