blob: c401e682605f137b4ddd04ceb7f41cc361791b80 [file] [log] [blame]
Dan Gohman2a69a042007-07-09 13:42:32 +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
Evan Cheng60c916b2007-06-20 18:26:15 +00006
7 %struct.SString = type { i8*, i32, i32 }
8
9declare void @abort()
10
11define fastcc void @t(%struct.SString* %word, i8 sext %c) {
12entry:
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}