1 ; RUN: llvm-as < %s | llc -march=thumb | grep beq | count 1
2 ; RUN: llvm-as < %s | llc -march=thumb | grep bgt | count 1
3 ; RUN: llvm-as < %s | llc -march=thumb | grep blt | count 3
4 ; RUN: llvm-as < %s | llc -march=thumb | grep ble | count 1
5 ; RUN: llvm-as < %s | llc -march=thumb | grep bls | count 1
6 ; RUN: llvm-as < %s | llc -march=thumb | grep bhi | count 1
7 ; RUN: llvm-as < %s | llc -march=thumb | grep __ltdf2
9 define i32 @f1(i32 %a.s) {
11 %tmp = icmp eq i32 %a.s, 4
12 %tmp1.s = select i1 %tmp, i32 2, i32 3
16 define i32 @f2(i32 %a.s) {
18 %tmp = icmp sgt i32 %a.s, 4
19 %tmp1.s = select i1 %tmp, i32 2, i32 3
23 define i32 @f3(i32 %a.s, i32 %b.s) {
25 %tmp = icmp slt i32 %a.s, %b.s
26 %tmp1.s = select i1 %tmp, i32 2, i32 3
30 define i32 @f4(i32 %a.s, i32 %b.s) {
32 %tmp = icmp sle i32 %a.s, %b.s
33 %tmp1.s = select i1 %tmp, i32 2, i32 3
37 define i32 @f5(i32 %a.u, i32 %b.u) {
39 %tmp = icmp ule i32 %a.u, %b.u
40 %tmp1.s = select i1 %tmp, i32 2, i32 3
44 define i32 @f6(i32 %a.u, i32 %b.u) {
46 %tmp = icmp ugt i32 %a.u, %b.u
47 %tmp1.s = select i1 %tmp, i32 2, i32 3
51 define double @f7(double %a, double %b) {
52 %tmp = fcmp olt double %a, 1.234e+00
53 %tmp1 = select i1 %tmp, double -1.000e+00, double %b