mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
Added missing patterns for UNPCKH* and PUNPCKH*.
llvm-svn: 37172
This commit is contained in:
parent
2340529c17
commit
9c4e69e6e5
@ -170,6 +170,10 @@ def UNPCKL_v_undef_shuffle_mask : PatLeaf<(build_vector), [{
|
||||
return X86::isUNPCKL_v_undef_Mask(N);
|
||||
}]>;
|
||||
|
||||
def UNPCKH_v_undef_shuffle_mask : PatLeaf<(build_vector), [{
|
||||
return X86::isUNPCKH_v_undef_Mask(N);
|
||||
}]>;
|
||||
|
||||
def PSHUFD_shuffle_mask : PatLeaf<(build_vector), [{
|
||||
return X86::isPSHUFDMask(N);
|
||||
}], SHUFFLE_get_shuf_imm>;
|
||||
@ -2266,6 +2270,22 @@ def : Pat<(v4i32 (vector_shuffle VR128:$src, (undef),
|
||||
(PUNPCKLDQrr VR128:$src, VR128:$src)>, Requires<[HasSSE1]>;
|
||||
}
|
||||
|
||||
// vector_shuffle v1, <undef>, <2, 2, 3, 3, ...>
|
||||
let AddedComplexity = 10 in {
|
||||
def : Pat<(v4f32 (vector_shuffle VR128:$src, (undef),
|
||||
UNPCKH_v_undef_shuffle_mask)),
|
||||
(UNPCKHPSrr VR128:$src, VR128:$src)>, Requires<[HasSSE2]>;
|
||||
def : Pat<(v16i8 (vector_shuffle VR128:$src, (undef),
|
||||
UNPCKH_v_undef_shuffle_mask)),
|
||||
(PUNPCKHBWrr VR128:$src, VR128:$src)>, Requires<[HasSSE2]>;
|
||||
def : Pat<(v8i16 (vector_shuffle VR128:$src, (undef),
|
||||
UNPCKH_v_undef_shuffle_mask)),
|
||||
(PUNPCKHWDrr VR128:$src, VR128:$src)>, Requires<[HasSSE2]>;
|
||||
def : Pat<(v4i32 (vector_shuffle VR128:$src, (undef),
|
||||
UNPCKH_v_undef_shuffle_mask)),
|
||||
(PUNPCKHDQrr VR128:$src, VR128:$src)>, Requires<[HasSSE1]>;
|
||||
}
|
||||
|
||||
let AddedComplexity = 15 in {
|
||||
// vector_shuffle v1, v2 <0, 1, 4, 5> using MOVLHPS
|
||||
def : Pat<(v4i32 (vector_shuffle VR128:$src1, VR128:$src2,
|
||||
|
Loading…
Reference in New Issue
Block a user