[llvm-commits] [llvm] r65137 - /llvm/trunk/lib/Target/README.txt
Torok Edwin
edwintorok at gmail.com
Fri Feb 20 10:42:06 PST 2009
Author: edwin
Date: Fri Feb 20 12:42:06 2009
New Revision: 65137
URL: http://llvm.org/viewvc/llvm-project?rev=65137&view=rev
Log:
add note about sin
Modified:
llvm/trunk/lib/Target/README.txt
Modified: llvm/trunk/lib/Target/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/README.txt?rev=65137&r1=65136&r2=65137&view=diff
==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Fri Feb 20 12:42:06 2009
@@ -1689,3 +1689,18 @@
For example: store of float into { {{}}, float } could be turned into a store to
the float directly.
+//===---------------------------------------------------------------------===//
+#include <math.h>
+double foo(double a) { return sin(a); }
+
+This compiles into this on x86-64 Linux:
+foo:
+ subq $8, %rsp
+ call sin
+ addq $8, %rsp
+ ret
+vs:
+
+foo:
+ jmp sin
+
More information about the llvm-commits
mailing list