From 3d464d8068c33e86bbf99498541d7ef6583c15a2 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Fri, 8 Jun 2012 18:04:52 +0000 Subject: Fix a crash in APInt::lshr when shiftAmt > BitWidth. Patch by James Benton . llvm-svn: 158213 --- llvm/test/CodeGen/Generic/2012-06-08-APIntCrash.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 llvm/test/CodeGen/Generic/2012-06-08-APIntCrash.ll (limited to 'llvm/test') diff --git a/llvm/test/CodeGen/Generic/2012-06-08-APIntCrash.ll b/llvm/test/CodeGen/Generic/2012-06-08-APIntCrash.ll new file mode 100644 index 00000000000..bb285a20734 --- /dev/null +++ b/llvm/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, + ret <8 x i32> %2; +} -- cgit v1.2.3