From a1eaa3c52b75d4fe2bcd4f7c52e56c405ee91d3c Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 28 Oct 2009 01:43:28 +0000 Subject: Add a second ValueType argument to isFPImmLegal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85361 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Alpha/AlphaISelLowering.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/Target/Alpha/AlphaISelLowering.cpp') diff --git a/lib/Target/Alpha/AlphaISelLowering.cpp b/lib/Target/Alpha/AlphaISelLowering.cpp index b2b738db2e..cb03a6fa20 100644 --- a/lib/Target/Alpha/AlphaISelLowering.cpp +++ b/lib/Target/Alpha/AlphaISelLowering.cpp @@ -915,7 +915,9 @@ AlphaTargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const { return false; } -bool AlphaTargetLowering::isFPImmLegal(const APFloat &Imm) const { +bool AlphaTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT) const { + if (VT != MVT::f32 && VT != MVT::f64) + return false; // +0.0 F31 // +0.0f F31 // -0.0 -F31 -- cgit v1.2.3-18-g5258