|
|
@@ -1297,11 +1297,15 @@ namespace ARMeilleure.CodeGen.X86
|
|
|
{
|
|
|
if (IsIntrinsic(operation.Instruction))
|
|
|
{
|
|
|
+ IntrinsicInfo info = IntrinsicTable.GetInfo(operation.Intrinsic);
|
|
|
+
|
|
|
+ bool hasVex = HardwareCapabilities.SupportsVexEncoding && Assembler.SupportsVexPrefix(info.Inst);
|
|
|
+
|
|
|
bool isUnary = operation.SourcesCount < 2;
|
|
|
|
|
|
bool hasVecDest = operation.Destination != default && operation.Destination.Type == OperandType.V128;
|
|
|
|
|
|
- return !HardwareCapabilities.SupportsVexEncoding && !isUnary && hasVecDest;
|
|
|
+ return !hasVex && !isUnary && hasVecDest;
|
|
|
}
|
|
|
|
|
|
return false;
|