[llvm] r175408 - X86: Add a note.

Benjamin Kramer benny.kra at googlemail.com
Sun Feb 17 15:34:14 PST 2013


Author: d0k
Date: Sun Feb 17 17:34:14 2013
New Revision: 175408

URL: http://llvm.org/viewvc/llvm-project?rev=175408&view=rev
Log:
X86: Add a note.

Modified:
    llvm/trunk/lib/Target/X86/README-SSE.txt

Modified: llvm/trunk/lib/Target/X86/README-SSE.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/README-SSE.txt?rev=175408&r1=175407&r2=175408&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/README-SSE.txt (original)
+++ llvm/trunk/lib/Target/X86/README-SSE.txt Sun Feb 17 17:34:14 2013
@@ -953,3 +953,12 @@ similarly, v[0]-v[1] should match to hsu
 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.
+
+//===---------------------------------------------------------------------===//





More information about the llvm-commits mailing list