[llvm] [X86][MC] Added support for -msse2avx option in llvm-mc (PR #96860)

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 28 07:11:17 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)
----------------
KanRobert wrote:

Not duplicate it in ATT and INTEL. Move it to `X86AsmParser::processInstruction`

https://github.com/llvm/llvm-project/pull/96860


More information about the llvm-commits mailing list