blob: 85bd8c7bf1fc833873b3a50a48f036512b6e0d17 [file] [log] [blame]
Dan Gohman2a69a042007-07-09 13:42:32 +00001; RUN: llvm-as < %s | \
Evan Cheng42266892007-09-20 18:03:23 +00002; RUN: llc -march=arm -mtriple=arm-apple-darwin
Dan Gohman2a69a042007-07-09 13:42:32 +00003; RUN: llvm-as < %s | \
Evan Cheng42266892007-09-20 18:03:23 +00004; RUN: llc -march=arm -mtriple=arm-apple-darwin | \
Dan Gohman28beeea2007-08-15 13:36:28 +00005; RUN: grep ldmne | count 1
Evan Cheng60c916b2007-06-20 18:26:15 +00006
7 %struct.SString = type { i8*, i32, i32 }
8
9declare void @abort()
10
Reid Spencer9445e9a2007-07-19 23:13:04 +000011define fastcc void @t(%struct.SString* %word, i8 signext %c) {
Evan Cheng60c916b2007-06-20 18:26:15 +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}