mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 07:29:55 +00:00
Now that it's supported, turn copysignl into a COPYSIGN node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98348 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5d54b4112d
commit
bb2f0c541c
@ -4633,7 +4633,7 @@ void SelectionDAGBuilder::visitCall(CallInst &I) {
|
||||
// can't be a library call.
|
||||
if (!F->hasLocalLinkage() && F->hasName()) {
|
||||
StringRef Name = F->getName();
|
||||
if (Name == "copysign" || Name == "copysignf") {
|
||||
if (Name == "copysign" || Name == "copysignf" || Name == "copysignl") {
|
||||
if (I.getNumOperands() == 3 && // Basic sanity checks.
|
||||
I.getOperand(1)->getType()->isFloatingPointTy() &&
|
||||
I.getType() == I.getOperand(1)->getType() &&
|
||||
|
Loading…
Reference in New Issue
Block a user