summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/avx-cvt.ll
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-08-09 05:48:01 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-08-09 05:48:01 +0000
commite321d7ffc5b06152efc4d6e8e1880e08f5c936a8 (patch)
tree4c3972feaad38d98b8080f28c3ad6c1c880b440c /test/CodeGen/X86/avx-cvt.ll
parentf5b757642d8c51c559c17532d193a13d1f2e3cc0 (diff)
downloadllvm-e321d7ffc5b06152efc4d6e8e1880e08f5c936a8.tar.gz
llvm-e321d7ffc5b06152efc4d6e8e1880e08f5c936a8.tar.bz2
llvm-e321d7ffc5b06152efc4d6e8e1880e08f5c936a8.tar.xz
Handle sitofp between v4f64 <- v4i32. Fix PR10559
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137114 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx-cvt.ll')
-rw-r--r--test/CodeGen/X86/avx-cvt.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-cvt.ll b/test/CodeGen/X86/avx-cvt.ll
index e45010c903..5fe207e060 100644
--- a/test/CodeGen/X86/avx-cvt.ll
+++ b/test/CodeGen/X86/avx-cvt.ll
@@ -6,6 +6,13 @@ define <8 x float> @sitofp00(<8 x i32> %a) nounwind {
ret <8 x float> %b
}
+; CHECK: vcvtdq2ps
+; CHECK-NEXT: vcvtps2pd
+define <4 x double> @sitofp01(<4 x i32> %a) {
+ %b = sitofp <4 x i32> %a to <4 x double>
+ ret <4 x double> %b
+}
+
; CHECK: vcvttps2dq %ymm
define <8 x i32> @fptosi00(<8 x float> %a) nounwind {
%b = fptosi <8 x float> %a to <8 x i32>