blob: 811aa57fdbb79644324598590dd5e69cd719f968 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | \
2; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion
3; RUN: llvm-as < %s | \
4; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
5; RUN: grep ldmne | wc -l | grep 1
6
7 %struct.SString = type { i8*, i32, i32 }
8
9declare void @abort()
10
Reid Spencerf234bed2007-07-19 23:13:04 +000011define fastcc void @t(%struct.SString* %word, i8 signext %c) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012entry:
13 %tmp1 = icmp eq %struct.SString* %word, null ; <i1> [#uses=1]
14 br i1 %tmp1, label %cond_true, label %cond_false
15
16cond_true: ; preds = %entry
17 tail call void @abort( )
18 unreachable
19
20cond_false: ; preds = %entry
21 ret void
22}