mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 07:31:53 +00:00
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
This commit is contained in:
parent
187db7b950
commit
beb5be0332
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user