summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-10 23:37:54 +0000
committerChris Lattner <sabre@nondot.org>2006-11-10 23:37:54 +0000
commit7d6d241c11690431d019df64ae07257e64b4f00c (patch)
tree2c833d0c4f5fdae4d858e4b0ab1f3a64b3a1f509 /test
parent484c7a12954fadcdfc07d4dbd41b9f0c081c425b (diff)
downloadllvm-7d6d241c11690431d019df64ae07257e64b4f00c.tar.gz
llvm-7d6d241c11690431d019df64ae07257e64b4f00c.tar.bz2
llvm-7d6d241c11690431d019df64ae07257e64b4f00c.tar.xz
This testcase is miscompiled by instcombine, reduced from 176.gcc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31652 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll b/test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll
new file mode 100644
index 0000000000..85c1f91594
--- /dev/null
+++ b/test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep lshr
+; Verify this is not turned into -1.
+
+int %test(ubyte %amt) {
+ %B = lshr int -1, ubyte %amt
+ ret int %B
+}