implement PR8592: empirically "lretq" is a "lret" with a rex.w prefix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-11-12 17:41:20 +00:00
parent a29aae7aca
commit 6b5e3978e3
2 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,8 @@ let isTerminator = 1, isReturn = 1, isBarrier = 1,
[(X86retflag timm:$amt)]>, OpSize;
def LRET : I <0xCB, RawFrm, (outs), (ins),
"lret", []>;
def LRETQ : RI <0xCB, RawFrm, (outs), (ins),
"lretq", []>;
def LRETI : Ii16<0xCA, RawFrm, (outs), (ins i16imm:$amt),
"lret\t$amt", []>;
def LRETIW : Ii16<0xCA, RawFrm, (outs), (ins i16imm:$amt),

View File

@ -769,6 +769,10 @@ iretq
// CHECK: encoding: [0x66,0xca,0xce,0x7a]
lretw $0x7ace
// PR8592
lretq // CHECK: lretq # encoding: [0x48,0xcb]
lret // CHECK: lret # encoding: [0xcb]
// rdar://8403907
sysret
// CHECK: sysretl