llvm.org GIT mirror llvm / 6d56730
VST2 four-register w/ update pseudos for fixed/register update. rdar://10724489 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148560 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 8 years ago
2 changed file(s) with 24 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
14081408 : PseudoNLdSt<(outs GPR:$wb),
14091409 (ins addrmode6:$addr, am6offset:$offset, QQPR:$src), itin,
14101410 "$addr.addr = $wb">;
1411 class VSTQQWBfixedPseudo
1412 : PseudoNLdSt<(outs GPR:$wb),
1413 (ins addrmode6:$addr, QQPR:$src), itin,
1414 "$addr.addr = $wb">;
1415 class VSTQQWBregisterPseudo
1416 : PseudoNLdSt<(outs GPR:$wb),
1417 (ins addrmode6:$addr, rGPR:$offset, QQPR:$src), itin,
1418 "$addr.addr = $wb">;
1419
14111420 class VSTQQQQPseudo
14121421 : PseudoNLdSt<(outs), (ins addrmode6:$addr, QQQQPR:$src), itin, "">;
14131422 class VSTQQQQWBPseudo
16791688 def VST2d16PseudoWB_register : VSTQWBregisterPseudo;
16801689 def VST2d32PseudoWB_register : VSTQWBregisterPseudo;
16811690
1682 def VST2q8PseudoWB_fixed : VSTQQWBPseudo;
1683 def VST2q16PseudoWB_fixed : VSTQQWBPseudo;
1684 def VST2q32PseudoWB_fixed : VSTQQWBPseudo;
1685 def VST2q8PseudoWB_register : VSTQQWBPseudo;
1686 def VST2q16PseudoWB_register : VSTQQWBPseudo;
1687 def VST2q32PseudoWB_register : VSTQQWBPseudo;
1691 def VST2q8PseudoWB_fixed : VSTQQWBfixedPseudo;
1692 def VST2q16PseudoWB_fixed : VSTQQWBfixedPseudo;
1693 def VST2q32PseudoWB_fixed : VSTQQWBfixedPseudo;
1694 def VST2q8PseudoWB_register : VSTQQWBregisterPseudo;
1695 def VST2q16PseudoWB_register : VSTQQWBregisterPseudo;
1696 def VST2q32PseudoWB_register : VSTQQWBregisterPseudo;
16881697
16891698 // ...with double-spaced registers
16901699 def VST2b8 : VST2<0b1001, {0,0,?,?}, "8", VecListTwoQ, IIC_VST2>;
118118 ret i8* %t5
119119 }
120120
121 define i8* @vst2update2(i8 * %out, <4 x float> * %this) nounwind optsize ssp align 2 {
122 ;CHECK: vst2update2
123 ;CHECK: vst2.32 {d16, d17, d18, d19}, [r0]!
124 %tmp1 = load <4 x float>* %this
125 call void @llvm.arm.neon.vst2.v4f32(i8* %out, <4 x float> %tmp1, <4 x float> %tmp1, i32 4) nounwind
126 %tmp2 = getelementptr inbounds i8* %out, i32 32
127 ret i8* %tmp2
128 }
129
121130 declare void @llvm.arm.neon.vst2.v8i8(i8*, <8 x i8>, <8 x i8>, i32) nounwind
122131 declare void @llvm.arm.neon.vst2.v4i16(i8*, <4 x i16>, <4 x i16>, i32) nounwind
123132 declare void @llvm.arm.neon.vst2.v2i32(i8*, <2 x i32>, <2 x i32>, i32) nounwind