new testcase miscompiled by instcombine, reduced from perl
authorChris Lattner <sabre@nondot.org>
Thu, 21 Jun 2007 18:09:25 +0000 (18:09 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 21 Jun 2007 18:09:25 +0000 (18:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37691 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2007-06-21-DivCompareMiscomp.ll [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/2007-06-21-DivCompareMiscomp.ll b/test/Transforms/InstCombine/2007-06-21-DivCompareMiscomp.ll
new file mode 100644 (file)
index 0000000..ffc4026
--- /dev/null
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {ret i1 true}
+; rdar://5278853
+
+define i1 @test(i32 %tmp468) {
+        %tmp470 = udiv i32 %tmp468, 4           ; <i32> [#uses=2]
+        %tmp475 = icmp ult i32 %tmp470, 1073741824              ; <i1> [#uses=1]
+        ret i1 %tmp475
+}
+