New testcase for a latent bug in instcombine that I have been chasing for
authorChris Lattner <sabre@nondot.org>
Tue, 28 Sep 2004 17:50:05 +0000 (17:50 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 28 Sep 2004 17:50:05 +0000 (17:50 +0000)
1.5 days :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16545 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.llx [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.llx b/test/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.llx
new file mode 100644 (file)
index 0000000..eaedc85
--- /dev/null
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep -- -65536
+
+bool %test(int %tmp.124) {
+        %tmp.125 = shl int %tmp.124, ubyte 8
+        %tmp.126.mask = and int %tmp.125, -16777216             ; <int> [#uses=1]
+        %tmp.128 = seteq int %tmp.126.mask, 167772160           ; <bool> [#uses=1]
+        ret bool %tmp.128
+}
+