mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
[x86] Fix disassembly of callw instruction
Not quite sure why this was marked isAsmParserOnly, but it means that the disassembler can't see it either. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199651 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7360e8caa3
commit
d1c3f6664e
@ -186,6 +186,10 @@ let isCall = 1 in
|
||||
(outs), (ins i32imm_pcrel:$dst),
|
||||
"call{l}\t$dst", [], IIC_CALL_RI>, OpSize16,
|
||||
Requires<[Not64BitMode]>, Sched<[WriteJump]>;
|
||||
def CALLpcrel16 : Ii16PCRel<0xE8, RawFrm,
|
||||
(outs), (ins i16imm_pcrel:$dst),
|
||||
"call{w}\t$dst", [], IIC_CALL_RI>, OpSize,
|
||||
Sched<[WriteJump]>;
|
||||
def CALL16r : I<0xFF, MRM2r, (outs), (ins GR16:$dst),
|
||||
"call{w}\t{*}$dst", [(X86call GR16:$dst)], IIC_CALL_RI>,
|
||||
OpSize, Requires<[Not64BitMode]>, Sched<[WriteJump]>;
|
||||
@ -218,12 +222,6 @@ let isCall = 1 in
|
||||
def FARCALL32m : I<0xFF, MRM3m, (outs), (ins opaque48mem:$dst),
|
||||
"lcall{l}\t{*}$dst", [], IIC_CALL_FAR_MEM>, OpSize16,
|
||||
Sched<[WriteJumpLd]>;
|
||||
|
||||
// callw for 16 bit code for the assembler.
|
||||
let isAsmParserOnly = 1 in
|
||||
def CALLpcrel16 : Ii16PCRel<0xE8, RawFrm,
|
||||
(outs), (ins i16imm_pcrel:$dst),
|
||||
"callw\t$dst", []>, OpSize;
|
||||
}
|
||||
|
||||
|
||||
|
@ -492,8 +492,8 @@
|
||||
# CHECK: calll
|
||||
0x66 0xe8 0x00 0x00 0x00 0x00
|
||||
|
||||
# CHECKX: callw
|
||||
#0xe8 0x00 0x00
|
||||
# CHECK: callw
|
||||
0xe8 0x00 0x00
|
||||
|
||||
# CHECK: incb %al
|
||||
0xfe 0xc0
|
||||
|
Loading…
Reference in New Issue
Block a user