blob: 85bd8c7bf1fc833873b3a50a48f036512b6e0d17 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | \
Evan Chenga5866ce2007-09-20 18:03:23 +00002; RUN: llc -march=arm -mtriple=arm-apple-darwin
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003; RUN: llvm-as < %s | \
Evan Chenga5866ce2007-09-20 18:03:23 +00004; RUN: llc -march=arm -mtriple=arm-apple-darwin | \
Dan Gohman8c89a502007-08-15 13:36:28 +00005; RUN: grep ldmne | count 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006
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}