commit | a1eaa3c52b75d4fe2bcd4f7c52e56c405ee91d3c | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Wed Oct 28 01:43:28 2009 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Wed Oct 28 01:43:28 2009 +0000 |
tree | b484d56ce5a1d636e1ee0614e97ee36af4ee2525 | |
parent | a104d1eab279a39ebf0481269426c2e2de8f5587 [diff] [blame] |
Add a second ValueType argument to isFPImmLegal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85361 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp index 48d1cdc..61da8f8 100644 --- a/lib/Target/Mips/MipsISelLowering.cpp +++ b/lib/Target/Mips/MipsISelLowering.cpp
@@ -1222,6 +1222,8 @@ return false; } -bool MipsTargetLowering::isFPImmLegal(const APFloat &Imm) const { +bool MipsTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT) const { + if (VT != MVT::f32 && VT != MVT::f64) + return false; return Imm.isZero(); }