mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
[X86] Don't swap the order of segment and offset in immediate form of far call/jump in Intel syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224684 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
281f568720
commit
58331b67cb
@ -148,11 +148,11 @@ let isBranch = 1, isTerminator = 1, isBarrier = 1, isIndirectBranch = 1 in {
|
||||
let Predicates = [Not64BitMode] in {
|
||||
def FARJMP16i : Iseg16<0xEA, RawFrmImm16, (outs),
|
||||
(ins i16imm:$off, i16imm:$seg),
|
||||
"ljmp{w}\t{$seg, $off|$off, $seg}", [],
|
||||
"ljmp{w}\t$seg, $off", [],
|
||||
IIC_JMP_FAR_PTR>, OpSize16, Sched<[WriteJump]>;
|
||||
def FARJMP32i : Iseg32<0xEA, RawFrmImm16, (outs),
|
||||
(ins i32imm:$off, i16imm:$seg),
|
||||
"ljmp{l}\t{$seg, $off|$off, $seg}", [],
|
||||
"ljmp{l}\t$seg, $off", [],
|
||||
IIC_JMP_FAR_PTR>, OpSize32, Sched<[WriteJump]>;
|
||||
}
|
||||
def FARJMP64 : RI<0xFF, MRM5m, (outs), (ins opaque80mem:$dst),
|
||||
@ -212,11 +212,11 @@ let isCall = 1 in
|
||||
let Predicates = [Not64BitMode] in {
|
||||
def FARCALL16i : Iseg16<0x9A, RawFrmImm16, (outs),
|
||||
(ins i16imm:$off, i16imm:$seg),
|
||||
"lcall{w}\t{$seg, $off|$off, $seg}", [],
|
||||
"lcall{w}\t$seg, $off", [],
|
||||
IIC_CALL_FAR_PTR>, OpSize16, Sched<[WriteJump]>;
|
||||
def FARCALL32i : Iseg32<0x9A, RawFrmImm16, (outs),
|
||||
(ins i32imm:$off, i16imm:$seg),
|
||||
"lcall{l}\t{$seg, $off|$off, $seg}", [],
|
||||
"lcall{l}\t$seg, $off", [],
|
||||
IIC_CALL_FAR_PTR>, OpSize32, Sched<[WriteJump]>;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user