[llvm-commits] [llvm] r126574 - in /llvm/trunk: lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp test/CodeGen/Generic/2011-02-27-Fpextend.ll
Duncan Sands
baldrick at free.fr
Sun Feb 27 06:41:27 PST 2011
Author: baldrick
Date: Sun Feb 27 08:41:27 2011
New Revision: 126574
URL: http://llvm.org/viewvc/llvm-project?rev=126574&view=rev
Log:
Legalize support for fpextend of vector. PR9309.
Added:
llvm/trunk/test/CodeGen/Generic/2011-02-27-Fpextend.ll
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp?rev=126574&r1=126573&r2=126574&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp Sun Feb 27 08:41:27 2011
@@ -440,6 +440,7 @@
case ISD::FCEIL:
case ISD::FRINT:
case ISD::FNEARBYINT:
+ case ISD::FP_EXTEND:
case ISD::FP_TO_SINT:
case ISD::FP_TO_UINT:
case ISD::SINT_TO_FP:
@@ -2005,6 +2006,7 @@
case ISD::STORE: Res = WidenVecOp_STORE(N); break;
case ISD::FP_ROUND:
+ case ISD::FP_EXTEND:
case ISD::FP_TO_SINT:
case ISD::FP_TO_UINT:
case ISD::SINT_TO_FP:
Added: llvm/trunk/test/CodeGen/Generic/2011-02-27-Fpextend.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/2011-02-27-Fpextend.ll?rev=126574&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/2011-02-27-Fpextend.ll (added)
+++ llvm/trunk/test/CodeGen/Generic/2011-02-27-Fpextend.ll Sun Feb 27 08:41:27 2011
@@ -0,0 +1,7 @@
+; RUN: llc < %s
+; PR9309
+
+define <4 x double> @f_fu(<4 x float>) nounwind {
+ %float2double.i = fpext <4 x float> %0 to <4 x double>
+ ret <4 x double> %float2double.i
+}
More information about the llvm-commits
mailing list