mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 15:19:33 +00:00
Add fabs
llvm-svn: 76023
This commit is contained in:
parent
fc1f449073
commit
0c3534b070
@ -67,6 +67,15 @@ def FNEG64rr : Pseudo<(outs FP64:$dst), (ins FP64:$src),
|
||||
"lcdbr\t{$dst}",
|
||||
[(set FP64:$dst, (fneg FP64:$src))]>;
|
||||
|
||||
// FIXME: Add peephole for fneg(fabs) => load negative
|
||||
|
||||
def FABS32rr : Pseudo<(outs FP32:$dst), (ins FP32:$src),
|
||||
"lpebr\t{$dst}",
|
||||
[(set FP32:$dst, (fabs FP32:$src))]>;
|
||||
def FABS64rr : Pseudo<(outs FP64:$dst), (ins FP64:$src),
|
||||
"lpdbr\t{$dst}",
|
||||
[(set FP64:$dst, (fabs FP64:$src))]>;
|
||||
|
||||
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