mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
bac0ad9eda
commit
269f10b316
@ -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),
|
||||
|
@ -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]>;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user