mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
Fix encoding for ARM BXJ instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135077 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1539,12 +1539,14 @@ def BLXi : AXI<(outs), (ins br_target:$target), BrMiscFrm, NoItinerary,
|
|||||||
let Inst{24} = target{0};
|
let Inst{24} = target{0};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Branch and Exchange Jazelle -- for disassembly only
|
// Branch and Exchange Jazelle
|
||||||
def BXJ : ABI<0b0001, (outs), (ins GPR:$func), NoItinerary, "bxj", "\t$func",
|
def BXJ : ABI<0b0001, (outs), (ins GPR:$func), NoItinerary, "bxj", "\t$func",
|
||||||
[/* For disassembly only; pattern left blank */]> {
|
[/* pattern left blank */]> {
|
||||||
|
bits<4> func;
|
||||||
let Inst{23-20} = 0b0010;
|
let Inst{23-20} = 0b0010;
|
||||||
//let Inst{19-8} = 0xfff;
|
let Inst{19-8} = 0xfff;
|
||||||
let Inst{7-4} = 0b0010;
|
let Inst{7-4} = 0b0010;
|
||||||
|
let Inst{3-0} = func;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tail calls.
|
// Tail calls.
|
||||||
|
|||||||
Reference in New Issue
Block a user