summaryrefslogtreecommitdiff
path: root/test/Transforms/JumpThreading/crash.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-11 07:11:11 +0000
committerChris Lattner <sabre@nondot.org>2009-10-11 07:11:11 +0000
commit113e4c6070e2421b909bc369da3074508650de47 (patch)
treea6b26e71529c8004f53cdf05794182b76feb0cd7 /test/Transforms/JumpThreading/crash.ll
parentc6c167f3bf83350d0726a1e79a9eddac6d59b63e (diff)
downloadllvm-113e4c6070e2421b909bc369da3074508650de47.tar.gz
llvm-113e4c6070e2421b909bc369da3074508650de47.tar.bz2
llvm-113e4c6070e2421b909bc369da3074508650de47.tar.xz
another testcase jump threading shouldn't crash on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83758 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/JumpThreading/crash.ll')
-rw-r--r--test/Transforms/JumpThreading/crash.ll31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/Transforms/JumpThreading/crash.ll b/test/Transforms/JumpThreading/crash.ll
index b1f9656f6d..0b6cd27110 100644
--- a/test/Transforms/JumpThreading/crash.ll
+++ b/test/Transforms/JumpThreading/crash.ll
@@ -23,3 +23,34 @@ bb110: ; preds = %bb
}
declare %struct.system__secondary_stack__mark_id @system__secondary_stack__ss_mark()
+
+
+
+define fastcc void @findratio(double* nocapture %res1, double* nocapture %res2) nounwind ssp {
+entry:
+ br label %bb12
+
+bb6.us:
+ %tmp = icmp eq i32 undef, undef
+ %tmp1 = fsub double undef, undef
+ %tmp2 = fcmp ult double %tmp1, 0.000000e+00
+ br i1 %tmp, label %bb6.us, label %bb13
+
+
+bb12:
+ %tmp3 = fcmp ult double undef, 0.000000e+00
+ br label %bb13
+
+bb13:
+ %.lcssa31 = phi double [ undef, %bb12 ], [ %tmp1, %bb6.us ]
+ %.lcssa30 = phi i1 [ %tmp3, %bb12 ], [ %tmp2, %bb6.us ]
+ br i1 %.lcssa30, label %bb15, label %bb61
+
+bb15:
+ %tmp4 = fsub double -0.000000e+00, %.lcssa31
+ ret void
+
+
+bb61:
+ ret void
+}