[llvm-commits] [llvm] r45280 - /llvm/trunk/lib/Target/X86/README-SSE.txt
Evan Cheng
evan.cheng at apple.com
Thu Dec 20 17:31:58 PST 2007
Author: evancheng
Date: Thu Dec 20 19:31:58 2007
New Revision: 45280
URL: http://llvm.org/viewvc/llvm-project?rev=45280&view=rev
Log:
New entry.
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=45280&r1=45279&r2=45280&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/README-SSE.txt (original)
+++ llvm/trunk/lib/Target/X86/README-SSE.txt Thu Dec 20 19:31:58 2007
@@ -741,3 +741,18 @@
//===---------------------------------------------------------------------===//
+
+#include <math.h>
+int t1(double d) { return signbit(d); }
+
+This currently compiles to:
+ subl $12, %esp
+ movsd 16(%esp), %xmm0
+ movsd %xmm0, (%esp)
+ movl 4(%esp), %eax
+ shrl $31, %eax
+ addl $12, %esp
+ ret
+
+We should use movmskp{s|d} instead.
+
More information about the llvm-commits
mailing list