Add AVX versions of SSE4.1 EXTRACTPS patterns

llvm-svn: 139071
This commit is contained in:
Bruno Cardoso Lopes 2011-09-03 00:47:03 +00:00
parent 3d581a36b6
commit 212a8c4357
1 changed files with 6 additions and 1 deletions

View File

@ -5226,7 +5226,12 @@ def : Pat<(store (f32 (bitconvert (extractelt (bc_v4i32 (v4f32 VR128:$src1)),
imm:$src2))),
addr:$dst),
(EXTRACTPSmr addr:$dst, VR128:$src1, imm:$src2)>,
Requires<[HasSSE41]>;
Requires<[HasSSE41]>;
def : Pat<(store (f32 (bitconvert (extractelt (bc_v4i32 (v4f32 VR128:$src1)),
imm:$src2))),
addr:$dst),
(VEXTRACTPSmr addr:$dst, VR128:$src1, imm:$src2)>,
Requires<[HasAVX]>;
//===----------------------------------------------------------------------===//
// SSE4.1 - Insert Instructions