diff options
| author | Chad Rosier <mcrosier@apple.com> | 2012-06-08 18:04:52 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@apple.com> | 2012-06-08 18:04:52 +0000 |
| commit | 3d464d8068c33e86bbf99498541d7ef6583c15a2 (patch) | |
| tree | 99e4b782febdaa7665722ce6b83a1ad29fdfe911 /llvm/test | |
| parent | 596af1b02ee1e3e019467e8a7cb368511ada2cb2 (diff) | |
| download | bcm5719-llvm-3d464d8068c33e86bbf99498541d7ef6583c15a2.tar.gz bcm5719-llvm-3d464d8068c33e86bbf99498541d7ef6583c15a2.zip | |
Fix a crash in APInt::lshr when shiftAmt > BitWidth.
Patch by James Benton <jbenton@vmware.com>.
llvm-svn: 158213
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/Generic/2012-06-08-APIntCrash.ll | 8 |
1 files changed, 8 insertions, 0 deletions
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, <i32 0, i32 0, i32 0, i32 -1, i32 0, i32 0, i32 0, i32 -1> + ret <8 x i32> %2; +} |

