xref: /minix3/external/bsd/llvm/dist/llvm/test/CodeGen/ARM/dagcombine-concatvector.ll (revision b5e2faaaaf60a8b9a02f8d72f64caa56a87eb312)
1; RUN: llc < %s -mtriple=thumbv7s-apple-ios3.0.0 -mcpu=generic | FileCheck %s
2
3; PR15525
4; CHECK-LABEL: test1:
5; CHECK: ldr.w	[[REG:r[0-9]+]], [sp]
6; CHECK-NEXT: vmov	{{d[0-9]+}}, r1, r2
7; CHECK-NEXT: vmov	{{d[0-9]+}}, r3, [[REG]]
8; CHECK-NEXT: vst1.8	{{{d[0-9]+}}, {{d[0-9]+}}}, [r0]
9; CHECK-NEXT: bx	lr
10define void @test1(i8* %arg, [4 x i64] %vec.coerce) {
11bb:
12  %tmp = extractvalue [4 x i64] %vec.coerce, 0
13  %tmp2 = bitcast i64 %tmp to <8 x i8>
14  %tmp3 = shufflevector <8 x i8> %tmp2, <8 x i8> undef, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>
15  %tmp4 = extractvalue [4 x i64] %vec.coerce, 1
16  %tmp5 = bitcast i64 %tmp4 to <8 x i8>
17  %tmp6 = shufflevector <8 x i8> %tmp5, <8 x i8> undef, <16 x i32> <i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
18  %tmp7 = shufflevector <16 x i8> %tmp6, <16 x i8> %tmp3, <16 x i32> <i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>
19  tail call void @llvm.arm.neon.vst1.v16i8(i8* %arg, <16 x i8> %tmp7, i32 2)
20  ret void
21}
22
23declare void @llvm.arm.neon.vst1.v16i8(i8*, <16 x i8>, i32)
24