[llvm] [X86][MC] Added support for -msse2avx option in llvm-mc (PR #96860)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 28 05:51:51 PDT 2024
================
@@ -4159,6 +4172,13 @@ bool X86AsmParser::matchAndEmitATTInstruction(
SwitchMode(X86::Is16Bit);
ForcedDataPrefix = 0;
}
+
+ // When "-msse2avx" option is enabled ReplaceSSE2AVXOpcode method will
+ // replace SSE instruction with equivalent AVX instruction using mapping given
+ // in table GET_X86_SSE2AVX_TABLE
+ if (MCOptions.SSE2AVX)
+ ReplaceSSE2AVXOpcode(Inst);
----------------
JaydeepChauhan14 wrote:
Done
https://github.com/llvm/llvm-project/pull/96860
More information about the llvm-commits
mailing list