From 55244ceac400dfb170d4df81029ddec9f38ad7cc Mon Sep 17 00:00:00 2001 From: Bruno Cardoso Lopes Date: Mon, 1 Aug 2011 21:54:09 +0000 Subject: Add v4f64 -> v2f32 fp_round support. Also add a testcase to exercise the legalizer. This commit together with the two previous ones fixes PR10495. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136654 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/avx-256-cvt.ll | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/CodeGen') diff --git a/test/CodeGen/X86/avx-256-cvt.ll b/test/CodeGen/X86/avx-256-cvt.ll index 8bf67568b6..d97327906c 100644 --- a/test/CodeGen/X86/avx-256-cvt.ll +++ b/test/CodeGen/X86/avx-256-cvt.ll @@ -12,3 +12,10 @@ define <8 x i32> @funcB(<8 x float> %a) nounwind { ret <8 x i32> %b } +; CHECK: vcvtpd2psy %ymm +; CHECK-NEXT: vcvtpd2psy %ymm +; CHECK-NEXT: vinsertf128 $1 +define <8 x float> @funcC(<8 x double> %b) nounwind { + %a = fptrunc <8 x double> %b to <8 x float> + ret <8 x float> %a +} -- cgit v1.2.3-70-g09d2