From: Chris Lattner Date: Tue, 28 Sep 2004 17:50:05 +0000 (+0000) Subject: New testcase for a latent bug in instcombine that I have been chasing for X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8fb6882f19aab2b5ba9094195479701167c6cbe2;p=oota-llvm.git 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 --- 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 +} +