diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2010-08-16 23:44:29 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2010-08-16 23:44:29 +0000 |
| commit | eee4824f7473c0a9f1b7cc2de16d48398f887b47 (patch) | |
| tree | 169eaef9189915ad21e43d18da2213ede06d7798 /llvm | |
| parent | 2677e1073204747b10d231c441384750e1c08e09 (diff) | |
| download | bcm5719-llvm-eee4824f7473c0a9f1b7cc2de16d48398f887b47.tar.gz bcm5719-llvm-eee4824f7473c0a9f1b7cc2de16d48398f887b47.zip | |
Add a testcase for svn 111208.
llvm-svn: 111212
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/CodeGen/ARM/2009-12-02-vtrn-undef.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/2009-12-02-vtrn-undef.ll b/llvm/test/CodeGen/ARM/2009-12-02-vtrn-undef.ll index 198faebbea6..f89a5de77b3 100644 --- a/llvm/test/CodeGen/ARM/2009-12-02-vtrn-undef.ll +++ b/llvm/test/CodeGen/ARM/2009-12-02-vtrn-undef.ll @@ -17,3 +17,17 @@ entry: store <8 x i16> %1, <8 x i16>* %agg.result12.1.0, align 16 ret void } + +; Radar 8290937: Ignore undef shuffle indices. +; CHECK: t2 +; CHECK: vtrn.16 +define void @t2(%struct.int16x8x2_t* nocapture %ptr, <4 x i16> %a.0, <4 x i16> %b.0) nounwind { +entry: + %0 = shufflevector <4 x i16> %a.0, <4 x i16> undef, <8 x i32> <i32 0, i32 0, i32 2, i32 2, i32 undef, i32 undef, i32 undef, i32 undef> + %1 = shufflevector <4 x i16> %a.0, <4 x i16> undef, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 undef, i32 undef, i32 undef, i32 undef> + %ptr26.0 = getelementptr inbounds %struct.int16x8x2_t* %ptr, i32 0, i32 0, i32 0, i32 0 + store <8 x i16> %0, <8 x i16>* %ptr26.0, align 16 + %ptr20.1.0 = getelementptr inbounds %struct.int16x8x2_t* %ptr, i32 0, i32 0, i32 1, i32 0 + store <8 x i16> %1, <8 x i16>* %ptr20.1.0, align 16 + ret void +} |

