diff options
author | Dale Johannesen <dalej@apple.com> | 2008-04-20 18:23:46 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-04-20 18:23:46 +0000 |
commit | 90c25d16c7db440514e86cec1843736b9bd46904 (patch) | |
tree | 8e247380ad7b0e891b7a45d5eb1fec51b9e7410a /include/llvm | |
parent | f748af2cefc5446678fae86596aa6eb536907092 (diff) | |
download | external_llvm-90c25d16c7db440514e86cec1843736b9bd46904.zip external_llvm-90c25d16c7db440514e86cec1843736b9bd46904.tar.gz external_llvm-90c25d16c7db440514e86cec1843736b9bd46904.tar.bz2 |
Check we aren't trying to convert PPC long double.
This fixes the testsuite failure on ppcf128-4.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index ce84ed0..a688a9f 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1500,7 +1500,10 @@ public: /// We leave the version with the double argument here because it's just so /// 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 { + bool isExactlyValue(double V) const { + // convert is not supported on this type + if (&Value.getSemantics() == &APFloat::PPCDoubleDouble) + return false; APFloat Tmp(V); Tmp.convert(Value.getSemantics(), APFloat::rmNearestTiesToEven); return isExactlyValue(Tmp); |