mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Comment out the isnan stuff until we get a proper autoconf test for it
breaking the build on sparc is not acceptable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14277 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
#if 0
|
||||||
#if defined(__POWERPC__) && defined(__APPLE_CC__)
|
#if defined(__POWERPC__) && defined(__APPLE_CC__)
|
||||||
// FIXME: Currently it seems that isnan didn't make its way into the Apple
|
// FIXME: Currently it seems that isnan didn't make its way into the Apple
|
||||||
// C++ headers, although it IS in the C headers (which confuses autoconf
|
// C++ headers, although it IS in the C headers (which confuses autoconf
|
||||||
@@ -29,6 +30,8 @@ extern "C" int isnan (double d);
|
|||||||
namespace std { int isnan (double d) { return ::isnan (d); } }
|
namespace std { int isnan (double d) { return ::isnan (d); } }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Local constant propagation...
|
// Local constant propagation...
|
||||||
//
|
//
|
||||||
@@ -300,9 +303,12 @@ Constant *llvm::ConstantFoldCall(Function *F,
|
|||||||
if (ConstantFP *Op2 = dyn_cast<ConstantFP>(Operands[1])) {
|
if (ConstantFP *Op2 = dyn_cast<ConstantFP>(Operands[1])) {
|
||||||
double Op1V = Op1->getValue(), Op2V = Op2->getValue();
|
double Op1V = Op1->getValue(), Op2V = Op2->getValue();
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (Name == "llvm.isunordered")
|
if (Name == "llvm.isunordered")
|
||||||
return ConstantBool::get(std::isnan(Op1V) | std::isnan(Op2V));
|
return ConstantBool::get(std::isnan(Op1V) | std::isnan(Op2V));
|
||||||
else if (Name == "pow") {
|
else
|
||||||
|
#endif
|
||||||
|
if (Name == "pow") {
|
||||||
errno = 0;
|
errno = 0;
|
||||||
double V = pow(Op1V, Op2V);
|
double V = pow(Op1V, Op2V);
|
||||||
if (errno == 0)
|
if (errno == 0)
|
||||||
|
Reference in New Issue
Block a user