1 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin -mattr=+thumb2 -arm-atomic-cfg-tidy=0 | FileCheck %s
2 ; If-conversion defeats the purpose of this test, which is to check
3 ; conditional branch generation, so a call to make sure it doesn't
4 ; happen and we get actual branches.
8 define i32 @f1(i32 %a, i32 %b, i32* %v) {
12 %tmp = icmp eq i32 %a, %b ; <i1> [#uses=1]
13 br i1 %tmp, label %cond_true, label %return
15 cond_true: ; preds = %entry
20 return: ; preds = %entry
25 define i32 @f2(i32 %a, i32 %b, i32* %v) {
29 %tmp = icmp slt i32 %a, %b ; <i1> [#uses=1]
30 br i1 %tmp, label %cond_true, label %return
32 cond_true: ; preds = %entry
37 return: ; preds = %entry
42 define i32 @f3(i32 %a, i32 %b, i32* %v) {
46 %tmp = icmp ult i32 %a, %b ; <i1> [#uses=1]
47 br i1 %tmp, label %cond_true, label %return
49 cond_true: ; preds = %entry
54 return: ; preds = %entry
59 define i32 @f4(i32 %a, i32 %b, i32* %v) {
63 %tmp = icmp uge i32 %a, %b ; <i1> [#uses=1]
64 br i1 %tmp, label %cond_true, label %return
66 cond_true: ; preds = %entry
71 return: ; preds = %entry