forked from OSchip/llvm-project
[X86] Add Requires[In64BitMode] around MOVSX64rr32/MOVSX64rm32. This makes it more strictly mutexed with the ARPL instruction 32-bit mode. Helps with some disassembler changes I'm experimenting with. Should be NFC.
llvm-svn: 227962
This commit is contained in:
parent
b635ae8388
commit
ce25047b83
|
@ -139,11 +139,11 @@ def MOVSX64rm16: RI<0xBF, MRMSrcMem, (outs GR64:$dst), (ins i16mem:$src),
|
||||||
def MOVSX64rr32: RI<0x63, MRMSrcReg, (outs GR64:$dst), (ins GR32:$src),
|
def MOVSX64rr32: RI<0x63, MRMSrcReg, (outs GR64:$dst), (ins GR32:$src),
|
||||||
"movs{lq|xd}\t{$src, $dst|$dst, $src}",
|
"movs{lq|xd}\t{$src, $dst|$dst, $src}",
|
||||||
[(set GR64:$dst, (sext GR32:$src))], IIC_MOVSX>,
|
[(set GR64:$dst, (sext GR32:$src))], IIC_MOVSX>,
|
||||||
Sched<[WriteALU]>;
|
Sched<[WriteALU]>, Requires<[In64BitMode]>;
|
||||||
def MOVSX64rm32: RI<0x63, MRMSrcMem, (outs GR64:$dst), (ins i32mem:$src),
|
def MOVSX64rm32: RI<0x63, MRMSrcMem, (outs GR64:$dst), (ins i32mem:$src),
|
||||||
"movs{lq|xd}\t{$src, $dst|$dst, $src}",
|
"movs{lq|xd}\t{$src, $dst|$dst, $src}",
|
||||||
[(set GR64:$dst, (sextloadi64i32 addr:$src))], IIC_MOVSX>,
|
[(set GR64:$dst, (sextloadi64i32 addr:$src))], IIC_MOVSX>,
|
||||||
Sched<[WriteALULd]>;
|
Sched<[WriteALULd]>, Requires<[In64BitMode]>;
|
||||||
|
|
||||||
// movzbq and movzwq encodings for the disassembler
|
// movzbq and movzwq encodings for the disassembler
|
||||||
def MOVZX64rr8_Q : RI<0xB6, MRMSrcReg, (outs GR64:$dst), (ins GR8:$src),
|
def MOVZX64rr8_Q : RI<0xB6, MRMSrcReg, (outs GR64:$dst), (ins GR8:$src),
|
||||||
|
|
Loading…
Reference in New Issue