mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Added VMRS/VMSR for disassembly only.
A8.6.335 & A8.6.336 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95703 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3ac97b386b
commit
c9745049e6
@ -516,6 +516,31 @@ def FMSTAT : VFPAI<(outs), (ins), VFPMiscFrm, IIC_fpSTAT, "vmrs",
|
||||
let Inst{4} = 1;
|
||||
}
|
||||
|
||||
// FPSCR <-> GPR (for disassembly only)
|
||||
|
||||
let Uses = [FPSCR] in {
|
||||
def VMRS : VFPAI<(outs GPR:$dst), (ins), VFPMiscFrm, IIC_fpSTAT, "vmrs",
|
||||
"\t$dst, fpscr",
|
||||
[/* For disassembly only; pattern left blank */]> {
|
||||
let Inst{27-20} = 0b11101111;
|
||||
let Inst{19-16} = 0b0001;
|
||||
let Inst{11-8} = 0b1010;
|
||||
let Inst{7} = 0;
|
||||
let Inst{4} = 1;
|
||||
}
|
||||
}
|
||||
|
||||
let Defs = [FPSCR] in {
|
||||
def VMSR : VFPAI<(outs), (ins GPR:$src), VFPMiscFrm, IIC_fpSTAT, "vmsr",
|
||||
"\tfpscr, $src",
|
||||
[/* For disassembly only; pattern left blank */]> {
|
||||
let Inst{27-20} = 0b11101110;
|
||||
let Inst{19-16} = 0b0001;
|
||||
let Inst{11-8} = 0b1010;
|
||||
let Inst{7} = 0;
|
||||
let Inst{4} = 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Materialize FP immediates. VFP3 only.
|
||||
let isReMaterializable = 1 in {
|
||||
|
Loading…
Reference in New Issue
Block a user