mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-17 23:44:43 +00:00
FileCheck-ize test, and make it work on EABI hosts, like clang-native-arm-cortex-a9.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133139 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
33b4f725ea
commit
e8e1e4444b
@ -1,10 +1,5 @@
|
||||
; RUN: llc < %s -march=thumb | grep beq | count 1
|
||||
; RUN: llc < %s -march=thumb | grep bgt | count 1
|
||||
; RUN: llc < %s -march=thumb | grep blt | count 3
|
||||
; RUN: llc < %s -march=thumb | grep ble | count 1
|
||||
; RUN: llc < %s -march=thumb | grep bls | count 1
|
||||
; RUN: llc < %s -march=thumb | grep bhi | count 1
|
||||
; RUN: llc < %s -mtriple=thumb-apple-darwin | grep __ltdf2
|
||||
; RUN: llc < %s -mtriple=thumb-apple-darwin | FileCheck %s
|
||||
; RUN: llc < %s -mtriple=thumb-pc-linux-gnueabi | FileCheck -check-prefix=CHECK-EABI %s
|
||||
|
||||
define i32 @f1(i32 %a.s) {
|
||||
entry:
|
||||
@ -12,6 +7,10 @@ entry:
|
||||
%tmp1.s = select i1 %tmp, i32 2, i32 3
|
||||
ret i32 %tmp1.s
|
||||
}
|
||||
; CHECK: f1:
|
||||
; CHECK: beq
|
||||
; CHECK-EABI: f1:
|
||||
; CHECK-EABI: beq
|
||||
|
||||
define i32 @f2(i32 %a.s) {
|
||||
entry:
|
||||
@ -19,6 +18,10 @@ entry:
|
||||
%tmp1.s = select i1 %tmp, i32 2, i32 3
|
||||
ret i32 %tmp1.s
|
||||
}
|
||||
; CHECK: f2:
|
||||
; CHECK: bgt
|
||||
; CHECK-EABI: f2:
|
||||
; CHECK-EABI: bgt
|
||||
|
||||
define i32 @f3(i32 %a.s, i32 %b.s) {
|
||||
entry:
|
||||
@ -26,6 +29,10 @@ entry:
|
||||
%tmp1.s = select i1 %tmp, i32 2, i32 3
|
||||
ret i32 %tmp1.s
|
||||
}
|
||||
; CHECK: f3:
|
||||
; CHECK: blt
|
||||
; CHECK-EABI: f3:
|
||||
; CHECK-EABI: blt
|
||||
|
||||
define i32 @f4(i32 %a.s, i32 %b.s) {
|
||||
entry:
|
||||
@ -33,6 +40,10 @@ entry:
|
||||
%tmp1.s = select i1 %tmp, i32 2, i32 3
|
||||
ret i32 %tmp1.s
|
||||
}
|
||||
; CHECK: f4:
|
||||
; CHECK: ble
|
||||
; CHECK-EABI: f4:
|
||||
; CHECK-EABI: ble
|
||||
|
||||
define i32 @f5(i32 %a.u, i32 %b.u) {
|
||||
entry:
|
||||
@ -40,6 +51,10 @@ entry:
|
||||
%tmp1.s = select i1 %tmp, i32 2, i32 3
|
||||
ret i32 %tmp1.s
|
||||
}
|
||||
; CHECK: f5:
|
||||
; CHECK: bls
|
||||
; CHECK-EABI: f5:
|
||||
; CHECK-EABI: bls
|
||||
|
||||
define i32 @f6(i32 %a.u, i32 %b.u) {
|
||||
entry:
|
||||
@ -47,9 +62,21 @@ entry:
|
||||
%tmp1.s = select i1 %tmp, i32 2, i32 3
|
||||
ret i32 %tmp1.s
|
||||
}
|
||||
; CHECK: f6:
|
||||
; CHECK: bhi
|
||||
; CHECK-EABI: f6:
|
||||
; CHECK-EABI: bhi
|
||||
|
||||
define double @f7(double %a, double %b) {
|
||||
%tmp = fcmp olt double %a, 1.234e+00
|
||||
%tmp1 = select i1 %tmp, double -1.000e+00, double %b
|
||||
ret double %tmp1
|
||||
}
|
||||
; CHECK: f7:
|
||||
; CHECK: blt
|
||||
; CHECK: blt
|
||||
; CHECK: __ltdf2
|
||||
; CHECK-EABI: f7:
|
||||
; CHECK-EABI: __aeabi_dcmplt
|
||||
; CHECK-EABI: bne
|
||||
; CHECK-EABI: bne
|
||||
|
Loading…
x
Reference in New Issue
Block a user