[llvm] b17b25d - [X86] Add In64BitMode requirement for MMXRI
Haohai Wen via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 8 22:08:36 PST 2022
Author: Haohai Wen
Date: 2022-11-09T14:08:16+08:00
New Revision: b17b25dde0693adb157f779b069cf89095446db8
URL: https://github.com/llvm/llvm-project/commit/b17b25dde0693adb157f779b069cf89095446db8
DIFF: https://github.com/llvm/llvm-project/commit/b17b25dde0693adb157f779b069cf89095446db8.diff
LOG: [X86] Add In64BitMode requirement for MMXRI
REX_W prefix is only encodable in 64bit.
Reviewed By: skan
Differential Revision: https://reviews.llvm.org/D137686
Added:
Modified:
llvm/lib/Target/X86/X86InstrFormats.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86InstrFormats.td b/llvm/lib/Target/X86/X86InstrFormats.td
index fce4df76c9fb2..ba0ba8e633288 100644
--- a/llvm/lib/Target/X86/X86InstrFormats.td
+++ b/llvm/lib/Target/X86/X86InstrFormats.td
@@ -1012,7 +1012,8 @@ class MMXI64<bits<8> o, Format F, dag outs, dag ins, string asm,
: I<o, F, outs, ins, asm, pattern>, PS, Requires<[HasMMX,In64BitMode]>;
class MMXRI<bits<8> o, Format F, dag outs, dag ins, string asm,
list<dag> pattern>
- : I<o, F, outs, ins, asm, pattern>, PS, REX_W, Requires<[HasMMX]>;
+ : I<o, F, outs, ins, asm, pattern>, PS, REX_W,
+ Requires<[HasMMX,In64BitMode]>;
class MMX2I<bits<8> o, Format F, dag outs, dag ins, string asm,
list<dag> pattern>
: I<o, F, outs, ins, asm, pattern>, PD, Requires<[HasMMX]>;
More information about the llvm-commits
mailing list