forked from OSchip/llvm-project
FileCheck-ize test, and make it work on EABI hosts, like clang-native-arm-cortex-a9.
llvm-svn: 133139
This commit is contained in:
parent
55b42d5ad4
commit
9b3d779537
|
@ -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…
Reference in New Issue