1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Add HasXOP predicate check covering a bunch of XOP intrinsic patterns.

llvm-svn: 149054
This commit is contained in:
Craig Topper 2012-01-26 07:51:55 +00:00
parent 814a037ac6
commit 8f8e428400

View File

@ -286,6 +286,7 @@ defm VPERMIL2PS : xop5op<0x48, "vpermil2ps", int_x86_xop_vpermil2ps,
// XOP Intrinsics patterns
let Predicates = [HasXOP] in {
// VPCOM EQ
def : Pat<(int_x86_xop_vpcomeqw VR128:$src1, VR128:$src2),
(VPCOMWri VR128:$src1, VR128:$src2, (i8 4))>;
@ -827,4 +828,5 @@ def : Pat<(int_x86_xop_vpcmov_v8sf_256 VR256:$src1,
(bitconvert (memopv2i64 addr:$src2)),
VR256:$src3),
(VPCMOVmrY VR256:$src1, addr:$src2, VR256:$src3)>;
} // let Predicates = [HasXOP]