aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-06-15 20:52:39 +0000
committerChris Lattner <sabre@nondot.org>2005-06-15 20:52:39 +0000
commit7833b44f6a7cb790fd6d0034b6a7d7dc820765cb (patch)
treea8aa07a08674274eb68c6cdba84769753e420eda /test/Transforms
parent47d309e1a977b8c2e34627bb071b583e1ce3c760 (diff)
downloadexternal_llvm-7833b44f6a7cb790fd6d0034b6a7d7dc820765cb.zip
external_llvm-7833b44f6a7cb790fd6d0034b6a7d7dc820765cb.tar.gz
external_llvm-7833b44f6a7cb790fd6d0034b6a7d7dc820765cb.tar.bz2
new testcase for PR577
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22216 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/InstCombine/2005-06-15-ShiftSetCCCrash.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2005-06-15-ShiftSetCCCrash.ll b/test/Transforms/InstCombine/2005-06-15-ShiftSetCCCrash.ll
new file mode 100644
index 0000000..fed675e
--- /dev/null
+++ b/test/Transforms/InstCombine/2005-06-15-ShiftSetCCCrash.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | opt -instcombine -disable-output
+; PR577
+
+bool %test() {
+ %tmp.3 = shl int 0, ubyte 41 ; <int> [#uses=1]
+ %tmp.4 = setne int %tmp.3, 0 ; <bool> [#uses=1]
+ ret bool %tmp.4
+}