From: Dale Johannesen Date: Mon, 28 Apr 2008 19:46:58 +0000 (+0000) Subject: Don't try to convert PPC long double. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=beb5be03320f9bbe6a4a92b0c7e1e0ebf3ef865d;p=oota-llvm.git 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 --- diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index d6529c7d5ff..32898894c57 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);