summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/crash.ll
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-02-20 12:57:14 +0000
committerdim <dim@FreeBSD.org>2011-02-20 12:57:14 +0000
commitcbb70ce070d220642b038ea101d9c0f9fbf860d6 (patch)
treed2b61ce94e654cb01a254d2195259db5f9cc3f3c /test/CodeGen/ARM/crash.ll
parent4ace901e87dac5bbbac78ed325e75462e48e386e (diff)
downloadFreeBSD-src-cbb70ce070d220642b038ea101d9c0f9fbf860d6.zip
FreeBSD-src-cbb70ce070d220642b038ea101d9c0f9fbf860d6.tar.gz
Vendor import of llvm trunk r126079:
http://llvm.org/svn/llvm-project/llvm/trunk@126079
Diffstat (limited to 'test/CodeGen/ARM/crash.ll')
-rw-r--r--test/CodeGen/ARM/crash.ll29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/crash.ll b/test/CodeGen/ARM/crash.ll
new file mode 100644
index 0000000..4b6876d
--- /dev/null
+++ b/test/CodeGen/ARM/crash.ll
@@ -0,0 +1,29 @@
+; RUN: llc < %s -mtriple=thumbv7-apple-darwin10
+
+; <rdar://problem/8529919>
+%struct.foo = type { i32, i32 }
+
+define void @func() nounwind {
+entry:
+ %tmp = load i32* undef, align 4
+ br label %bb1
+
+bb1:
+ %tmp1 = and i32 %tmp, 16
+ %tmp2 = icmp eq i32 %tmp1, 0
+ %invok.1.i = select i1 %tmp2, i32 undef, i32 0
+ %tmp119 = add i32 %invok.1.i, 0
+ br i1 undef, label %bb2, label %exit
+
+bb2:
+ %tmp120 = add i32 %tmp119, 0
+ %scevgep810.i = getelementptr %struct.foo* null, i32 %tmp120, i32 1
+ store i32 undef, i32* %scevgep810.i, align 4
+ br i1 undef, label %bb2, label %bb3
+
+bb3:
+ br i1 %tmp2, label %bb2, label %bb2
+
+exit:
+ ret void
+}
OpenPOWER on IntegriCloud