summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-02-03 09:14:10 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-02-03 09:14:10 +0000
commit9d851fca1e97a7f41efa44872b27a5e22bf71174 (patch)
tree5f3df8e161e37bfec56273706b51916ca1cf4515 /llvm/test
parent456db39ea9590f82961d24d1b18f2f2b44cef851 (diff)
downloadbcm5719-llvm-9d851fca1e97a7f41efa44872b27a5e22bf71174.tar.gz
bcm5719-llvm-9d851fca1e97a7f41efa44872b27a5e22bf71174.zip
Add a test case.
llvm-svn: 33833
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/ARM/2007-02-02-JoinIntervalsCrash.ll27
1 files changed, 27 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/2007-02-02-JoinIntervalsCrash.ll b/llvm/test/CodeGen/ARM/2007-02-02-JoinIntervalsCrash.ll
new file mode 100644
index 00000000000..86dcf5633ba
--- /dev/null
+++ b/llvm/test/CodeGen/ARM/2007-02-02-JoinIntervalsCrash.ll
@@ -0,0 +1,27 @@
+; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -enable-thumb
+
+ %struct.color_sample = type { i32 }
+ %struct.ref = type { %struct.color_sample, i16, i16 }
+
+define void @zcvrs() {
+ br i1 false, label %bb22, label %UnifiedReturnBlock
+
+bb22:
+ br i1 false, label %bb64, label %UnifiedReturnBlock
+
+bb64:
+ %tmp67 = urem i32 0, 0
+ %tmp69 = icmp slt i32 %tmp67, 10
+ %iftmp.13.0 = select i1 %tmp69, i8 48, i8 55
+ %tmp75 = add i8 %iftmp.13.0, 0
+ store i8 %tmp75, i8* null
+ %tmp81 = udiv i32 0, 0
+ %tmp83 = icmp eq i32 %tmp81, 0
+ br i1 %tmp83, label %bb85, label %bb64
+
+bb85:
+ ret void
+
+UnifiedReturnBlock:
+ ret void
+}
OpenPOWER on IntegriCloud