aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-31 04:36:22 +0000
committerChris Lattner <sabre@nondot.org>2009-08-31 04:36:22 +0000
commit95afdfee8260c5daad485b9eb6c5340f33ad5186 (patch)
treeaacdd1c127560315a09adc86d34a540c612f7c92 /test/Transforms
parent98a27ce03f092ab5464e65725f7d1fa0c03652f2 (diff)
downloadexternal_llvm-95afdfee8260c5daad485b9eb6c5340f33ad5186.zip
external_llvm-95afdfee8260c5daad485b9eb6c5340f33ad5186.tar.gz
external_llvm-95afdfee8260c5daad485b9eb6c5340f33ad5186.tar.bz2
fix a bug I introduced with my 'instcombine builder' refactoring
changes: SimplifyDemandedBits can't use the builder yet because it has the wrong insertion point. This fixes a crash building MultiSource/Benchmarks/PAQ8p git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/InstCombine/crash.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/crash.ll b/test/Transforms/InstCombine/crash.ll
new file mode 100644
index 0000000..03bad99
--- /dev/null
+++ b/test/Transforms/InstCombine/crash.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis
+target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
+target triple = "i386-apple-darwin10.0"
+
+define i32 @_Z9model8bitR5Mixeri(i8 %tmp2) ssp {
+entry:
+ %tmp3 = zext i8 %tmp2 to i32
+ %tmp8 = lshr i32 %tmp3, 6
+ %tmp9 = lshr i32 %tmp3, 7
+ %tmp10 = xor i32 %tmp9, 67108858
+ %tmp11 = xor i32 %tmp10, %tmp8
+ %tmp12 = xor i32 %tmp11, 0
+ ret i32 %tmp12
+}