accept lret as an alias for lretl, fixing the reopened part of PR8592

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118916 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-11-12 18:54:56 +00:00
parent bac0ad9eda
commit 269f10b316
3 changed files with 7 additions and 3 deletions

View File

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

View File

@ -1264,6 +1264,9 @@ def : MnemonicAlias<"cdq", "cltd">;
def : MnemonicAlias<"cwde", "cwtl">;
def : MnemonicAlias<"cdqe", "cltq">;
// lret maps to lretl, it is not ambiguous with lretq.
def : MnemonicAlias<"lret", "lretl">;
def : MnemonicAlias<"pop", "popl">, Requires<[In32BitMode]>;
def : MnemonicAlias<"pop", "popq">, Requires<[In64BitMode]>;
def : MnemonicAlias<"popf", "popfl">, Requires<[In32BitMode]>;

View File

@ -771,7 +771,8 @@ iretq
// PR8592
lretq // CHECK: lretq # encoding: [0x48,0xcb]
lret // CHECK: lret # encoding: [0xcb]
lretl // CHECK: lretl # encoding: [0xcb]
lret // CHECK: lretl # encoding: [0xcb]
// rdar://8403907
sysret