aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic/2012-06-08-APIntCrash.ll
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-06-08 18:04:52 +0000
committerChad Rosier <mcrosier@apple.com>2012-06-08 18:04:52 +0000
commit28dd960cd1c346c5beef4585d6ea68ae31be0faf (patch)
tree0186b83e858f8f1927c850aa1012ad707a9fbc03 /test/CodeGen/Generic/2012-06-08-APIntCrash.ll
parentc36d033c08c6148846f61cc7aee4fe0f523af1e5 (diff)
downloadexternal_llvm-28dd960cd1c346c5beef4585d6ea68ae31be0faf.zip
external_llvm-28dd960cd1c346c5beef4585d6ea68ae31be0faf.tar.gz
external_llvm-28dd960cd1c346c5beef4585d6ea68ae31be0faf.tar.bz2
Fix a crash in APInt::lshr when shiftAmt > BitWidth.
Patch by James Benton <jbenton@vmware.com>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/2012-06-08-APIntCrash.ll')
-rw-r--r--test/CodeGen/Generic/2012-06-08-APIntCrash.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2012-06-08-APIntCrash.ll b/test/CodeGen/Generic/2012-06-08-APIntCrash.ll
new file mode 100644
index 0000000..bb285a2
--- /dev/null
+++ b/test/CodeGen/Generic/2012-06-08-APIntCrash.ll
@@ -0,0 +1,8 @@
+; RUN: llc < %s
+
+define <8 x i32> @test1(<8 x i32>* %ptr)
+{
+ %1 = load <8 x i32>* %ptr, align 32
+ %2 = and <8 x i32> %1, <i32 0, i32 0, i32 0, i32 -1, i32 0, i32 0, i32 0, i32 -1>
+ ret <8 x i32> %2;
+}