mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 02:32:11 +00:00
make isExactlyValue work for long double.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46410 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
67fed1c8f2
commit
84cd0e7fa3
@ -1208,10 +1208,9 @@ public:
|
||||
/// convenient to write "2.0" and the like. Without this function we'd
|
||||
/// have to duplicate its logic everywhere it's called.
|
||||
bool isExactlyValue(double V) const {
|
||||
if (getValueType(0)==MVT::f64)
|
||||
return isExactlyValue(APFloat(V));
|
||||
else
|
||||
return isExactlyValue(APFloat((float)V));
|
||||
APFloat Tmp(V);
|
||||
Tmp.convert(Value.getSemantics(), APFloat::rmNearestTiesToEven);
|
||||
return isExactlyValue(Tmp);
|
||||
}
|
||||
bool isExactlyValue(const APFloat& V) const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user