aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-04-28 19:46:58 +0000
committerDale Johannesen <dalej@apple.com>2008-04-28 19:46:58 +0000
commitbeb5be03320f9bbe6a4a92b0c7e1e0ebf3ef865d (patch)
tree0f337d718aca43b07f33acd1973dabf42ae47a77
parent187db7b950e57e2f1f10b57e7ee2a7f38e8965c0 (diff)
Don't try to convert PPC long double.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50369 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Constants.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index d6529c7d5f..32898894c5 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -263,6 +263,9 @@ public:
bool isExactlyValue(const APFloat& V) const;
bool isExactlyValue(double V) const {
+ // convert is not supported on this type
+ if (&Val.getSemantics() == &APFloat::PPCDoubleDouble)
+ return false;
APFloat FV(V);
FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven);
return isExactlyValue(FV);