diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-10-28 01:43:28 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-10-28 01:43:28 +0000 |
commit | a1eaa3c52b75d4fe2bcd4f7c52e56c405ee91d3c (patch) | |
tree | b484d56ce5a1d636e1ee0614e97ee36af4ee2525 /lib/Target/SystemZ/SystemZISelLowering.cpp | |
parent | a104d1eab279a39ebf0481269426c2e2de8f5587 (diff) |
Add a second ValueType argument to isFPImmLegal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZISelLowering.cpp')
-rw-r--r-- | lib/Target/SystemZ/SystemZISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/SystemZ/SystemZISelLowering.cpp b/lib/Target/SystemZ/SystemZISelLowering.cpp index 3a91df06bd..5c8cae0cd7 100644 --- a/lib/Target/SystemZ/SystemZISelLowering.cpp +++ b/lib/Target/SystemZ/SystemZISelLowering.cpp @@ -170,8 +170,8 @@ SDValue SystemZTargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) { } } -bool SystemZTargetLowering::isFPImmLegal(const APFloat &Imm) const { - if (UseSoftFloat) +bool SystemZTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT) const { + if (UseSoftFloat || (VT != MVT::f32 && VT != MVT::f64)) return false; // +0.0 lzer |