mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Add LOAD NEGATIVE instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76032 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
03f60001df
commit
a61a4f669b
@ -82,7 +82,6 @@ def FNEG64rr : Pseudo<(outs FP64:$dst), (ins FP64:$src),
|
||||
|
||||
let isTwoAddress = 1 in {
|
||||
let Defs = [PSW] in {
|
||||
// FIXME: Add peephole for fneg(fabs) => load negative
|
||||
|
||||
def FABS32rr : Pseudo<(outs FP32:$dst), (ins FP32:$src),
|
||||
"lpebr\t{$dst}",
|
||||
@ -93,6 +92,15 @@ def FABS64rr : Pseudo<(outs FP64:$dst), (ins FP64:$src),
|
||||
[(set FP64:$dst, (fabs FP64:$src)),
|
||||
(implicit PSW)]>;
|
||||
|
||||
def FNABS32rr : Pseudo<(outs FP32:$dst), (ins FP32:$src),
|
||||
"lnebr\t{$dst}",
|
||||
[(set FP32:$dst, (fneg(fabs FP32:$src))),
|
||||
(implicit PSW)]>;
|
||||
def FNABS64rr : Pseudo<(outs FP64:$dst), (ins FP64:$src),
|
||||
"lndbr\t{$dst}",
|
||||
[(set FP64:$dst, (fneg(fabs FP64:$src))),
|
||||
(implicit PSW)]>;
|
||||
|
||||
let isCommutable = 1 in { // X = ADD Y, Z == X = ADD Z, Y
|
||||
def FADD32rr : Pseudo<(outs FP32:$dst), (ins FP32:$src1, FP32:$src2),
|
||||
"aebr\t{$dst, $src2}",
|
||||
|
Loading…
Reference in New Issue
Block a user