From 8fb6882f19aab2b5ba9094195479701167c6cbe2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 28 Sep 2004 17:50:05 +0000 Subject: [PATCH] New testcase for a latent bug in instcombine that I have been chasing for 1.5 days :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16545 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../InstCombine/2004-09-28-BadShiftAndSetCC.llx | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.llx diff --git a/test/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.llx b/test/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.llx new file mode 100644 index 00000000000..eaedc855a4a --- /dev/null +++ b/test/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.llx @@ -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 ; [#uses=1] + %tmp.128 = seteq int %tmp.126.mask, 167772160 ; [#uses=1] + ret bool %tmp.128 +} +