summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsISelLowering.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2014-04-14 16:24:12 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2014-04-14 16:24:12 +0000
commit863c35a358b9facc043f57297f7495a8e3381eb8 (patch)
tree245ab3aa1328e88417109480b7d36343bfff4da0 /llvm/lib/Target/Mips/MipsISelLowering.cpp
parent35f9421c55aca8b5805e40e006c203246e7f873f (diff)
downloadbcm5719-llvm-863c35a358b9facc043f57297f7495a8e3381eb8.tar.gz
bcm5719-llvm-863c35a358b9facc043f57297f7495a8e3381eb8.zip
[mips] Fix fcopysign for MIPS-IV and add the test.
Summary: This was another incorrect use of hasMips64() vs isGP64bit(). Depends on D3344 Reviewers: matheusalmeida, vmedic Reviewed By: vmedic Differential Revision: http://reviews.llvm.org/D3347 llvm-svn: 206187
Diffstat (limited to 'llvm/lib/Target/Mips/MipsISelLowering.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp
index 8daaf0b789e..48c49dbfe27 100644
--- a/llvm/lib/Target/Mips/MipsISelLowering.cpp
+++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp
@@ -1754,7 +1754,7 @@ static SDValue lowerFCOPYSIGN64(SDValue Op, SelectionDAG &DAG,
SDValue
MipsTargetLowering::lowerFCOPYSIGN(SDValue Op, SelectionDAG &DAG) const {
- if (Subtarget->hasMips64())
+ if (Subtarget->isGP64bit())
return lowerFCOPYSIGN64(Op, DAG, Subtarget->hasExtractInsert());
return lowerFCOPYSIGN32(Op, DAG, Subtarget->hasExtractInsert());
OpenPOWER on IntegriCloud