Added some if-conversion tests.
[oota-llvm.git] / test / CodeGen / ARM / ifcvt8.ll
1 ; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
2 ; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep ldmne | wc -l | grep 1
3
4         %struct.SString = type { i8*, i32, i32 }
5
6 declare void @abort()
7
8 define fastcc void @t(%struct.SString* %word, i8 sext  %c) {
9 entry:
10         %tmp1 = icmp eq %struct.SString* %word, null            ; <i1> [#uses=1]
11         br i1 %tmp1, label %cond_true, label %cond_false
12
13 cond_true:              ; preds = %entry
14         tail call void @abort( )
15         unreachable
16
17 cond_false:             ; preds = %entry
18         ret void
19 }