summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/sse2.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-14 06:30:45 +0000
committerChris Lattner <sabre@nondot.org>2011-02-14 06:30:45 +0000
commiteff248ca7fd020fa99ce667146d4894c3632b015 (patch)
treec1b94db93a2ffe16cda222698f20bd95808528f2 /llvm/test/CodeGen/X86/sse2.ll
parenteaa8341d3be5f92b3166ce274cb962773b774a3e (diff)
downloadbcm5719-llvm-eff248ca7fd020fa99ce667146d4894c3632b015.tar.gz
bcm5719-llvm-eff248ca7fd020fa99ce667146d4894c3632b015.zip
fix PR9210 by implementing some type legalization logic for
vector fp conversions. llvm-svn: 125482
Diffstat (limited to 'llvm/test/CodeGen/X86/sse2.ll')
-rw-r--r--llvm/test/CodeGen/X86/sse2.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/sse2.ll b/llvm/test/CodeGen/X86/sse2.ll
index 8fcfdff2896..5c3e32f016a 100644
--- a/llvm/test/CodeGen/X86/sse2.ll
+++ b/llvm/test/CodeGen/X86/sse2.ll
@@ -214,3 +214,11 @@ entry:
store <4 x float> %2, <4 x float> * undef
ret void
}
+
+; PR9210
+define <4 x float> @f(<4 x double>) nounwind {
+entry:
+ %double2float.i = fptrunc <4 x double> %0 to <4 x float>
+ ret <4 x float> %double2float.i
+}
+
OpenPOWER on IntegriCloud