llvm.org GIT mirror llvm / e91a000
Fixed lowering of v816 shuffles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63252 91177308-0d34-0410-b5e6-96231b3b80d8 Mon P Wang 10 years ago
2 changed file(s) with 15 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
36763676 ++V2InOrder;
36773677 } else if (EltIdx < 8) {
36783678 V1Elts.push_back(Elt);
3679 V2Elts.push_back(DAG.getConstant(i+8, MaskEVT));
3679 V2Elts.push_back(DAG.getConstant(EltIdx+8, MaskEVT));
36803680 ++V1FromV1;
36813681 } else {
36823682 V1Elts.push_back(Elt);
0 ; RUN: llvm-as < %s | llc -march=x86 -mattr=sse41 -disable-mmx -o %t -f
1 ; RUN: not grep pextrw %t
2 ; RUN: grep pinsrw %t
3
4 ; Test for v8xi16 lowering where we extract the first element of the vector and
5 ; placed it in the second element of the result.
6
7 define void @test_cl(<8 x i16> addrspace(1)* %dest, <8 x i16> addrspace(1)* %old) nounwind {
8 entry:
9 %tmp3 = load <8 x i16> addrspace(1)* %old ; <<8 x i16>> [#uses=1]
10 %tmp6 = shufflevector <8 x i16> %tmp3, <8 x i16> < i16 0, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef >, <8 x i32> < i32 8, i32 0, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef > ; <<8 x i16>> [#uses=1]
11 store <8 x i16> %tmp6, <8 x i16> addrspace(1)* %dest
12 ret void
13 }