From 189fc5819ad560f878d60896b0de29076f6475fe Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 17 Feb 2013 23:34:14 +0000 Subject: [PATCH] X86: Add a note. llvm-svn: 175408 --- llvm/lib/Target/X86/README-SSE.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/llvm/lib/Target/X86/README-SSE.txt b/llvm/lib/Target/X86/README-SSE.txt index 4011035..496b704 100644 --- a/llvm/lib/Target/X86/README-SSE.txt +++ b/llvm/lib/Target/X86/README-SSE.txt @@ -953,3 +953,12 @@ similarly, v[0]-v[1] should match to hsubpd, and {v[0]-v[1], w[0]-w[1]} should turn into hsubpd also. //===---------------------------------------------------------------------===// + +define <2 x i32> @foo(<2 x double> %in) { + %x = fptosi <2 x double> %in to <2 x i32> + ret <2 x i32> %x +} + +Should compile into cvttpd2dq instead of being scalarized into 2 cvttsd2si. + +//===---------------------------------------------------------------------===// -- 2.7.4