forked from OSchip/llvm-project
Fix intel syntax for 64-bit version of FXSAVE/FXRSTOR to use '64' suffix instead of 'q'
llvm-svn: 199474
This commit is contained in:
parent
f0ae7d0201
commit
a49c2960c6
|
@ -622,12 +622,12 @@ def FCOMPP : I<0xD9, RawFrm, (outs), (ins), "fcompp", [], IIC_FCOMPP>, DE;
|
|||
def FXSAVE : I<0xAE, MRM0m, (outs opaque512mem:$dst), (ins),
|
||||
"fxsave\t$dst", [], IIC_FXSAVE>, TB;
|
||||
def FXSAVE64 : I<0xAE, MRM0m, (outs opaque512mem:$dst), (ins),
|
||||
"fxsaveq\t$dst", [], IIC_FXSAVE>, TB, REX_W,
|
||||
"fxsave{q|64}\t$dst", [], IIC_FXSAVE>, TB, REX_W,
|
||||
Requires<[In64BitMode]>;
|
||||
def FXRSTOR : I<0xAE, MRM1m, (outs), (ins opaque512mem:$src),
|
||||
"fxrstor\t$src", [], IIC_FXRSTOR>, TB;
|
||||
def FXRSTOR64 : I<0xAE, MRM1m, (outs), (ins opaque512mem:$src),
|
||||
"fxrstorq\t$src", [], IIC_FXRSTOR>, TB, REX_W,
|
||||
"fxrstor{q|64}\t$src", [], IIC_FXRSTOR>, TB, REX_W,
|
||||
Requires<[In64BitMode]>;
|
||||
} // SchedRW
|
||||
|
||||
|
|
|
@ -584,3 +584,9 @@ fsub ST(1)
|
|||
fsubr ST(1)
|
||||
fdiv ST(1)
|
||||
fdivr ST(1)
|
||||
|
||||
|
||||
// CHECK: fxsaveq (%rax)
|
||||
// CHECK: fxrstorq (%rax)
|
||||
fxsave64 [rax]
|
||||
fxrstor64 [rax]
|
||||
|
|
Loading…
Reference in New Issue