mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 17:32:36 +00:00
Revert turning copysignl into a COPYSIGN node for the moment:
ppc calls copysignl with a 128 bit ppc long double, resulting in a node that the type legalizer doesn't know how to expand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
16ceb3aaf7
commit
0ac5d2d7ff
@ -4633,7 +4633,7 @@ void SelectionDAGBuilder::visitCall(CallInst &I) {
|
|||||||
// can't be a library call.
|
// can't be a library call.
|
||||||
if (!F->hasLocalLinkage() && F->hasName()) {
|
if (!F->hasLocalLinkage() && F->hasName()) {
|
||||||
StringRef Name = F->getName();
|
StringRef Name = F->getName();
|
||||||
if (Name == "copysign" || Name == "copysignf" || Name == "copysignl") {
|
if (Name == "copysign" || Name == "copysignf") {
|
||||||
if (I.getNumOperands() == 3 && // Basic sanity checks.
|
if (I.getNumOperands() == 3 && // Basic sanity checks.
|
||||||
I.getOperand(1)->getType()->isFloatingPointTy() &&
|
I.getOperand(1)->getType()->isFloatingPointTy() &&
|
||||||
I.getType() == I.getOperand(1)->getType() &&
|
I.getType() == I.getOperand(1)->getType() &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user