diff --git a/llvm/lib/Target/X86/X86InstrMPX.td b/llvm/lib/Target/X86/X86InstrMPX.td index 15129c370c82..146b9f2b86dd 100644 --- a/llvm/lib/Target/X86/X86InstrMPX.td +++ b/llvm/lib/Target/X86/X86InstrMPX.td @@ -18,10 +18,10 @@ let SchedRW = [WriteSystem] in { multiclass mpx_bound_make opc, string OpcodeStr> { let mayLoad = 1 in { - def 32rm: I, Requires<[HasMPX, Not64BitMode]>; - def 64rm: I, Requires<[HasMPX, In64BitMode]>; } @@ -31,10 +31,10 @@ defm BNDMK : mpx_bound_make<0x1B, "bndmk">, XS; multiclass mpx_bound_check opc, string OpcodeStr> { let mayLoad = 1 in { - def 32rm: I, Requires<[HasMPX, Not64BitMode]>; - def 64rm: I, Requires<[HasMPX, In64BitMode]>; } @@ -72,7 +72,7 @@ def BNDMOV64mr : I<0x1B, MRMDestMem, (outs), (ins i128mem:$dst, BNDR:$src), "bndmov\t{$src, $dst|$dst, $src}", []>, PD, Requires<[HasMPX, In64BitMode]>; -def BNDSTXmr: I<0x1B, MRMDestMem, (outs), (ins i64mem:$dst, BNDR:$src), +def BNDSTXmr: I<0x1B, MRMDestMem, (outs), (ins anymem:$dst, BNDR:$src), "bndstx\t{$src, $dst|$dst, $src}", []>, PS, Requires<[HasMPX]>; }