summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-02-20 18:42:06 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-02-20 18:42:06 +0000
commit87d5ca083b8b8b684d98f897a2157ac00087ef75 (patch)
tree44991bee036f1a65e1ae5cebe8118b35a97d1dc2 /llvm/lib/Target
parentc380864d2c5838e2a66e465a8f5d87f120f70d78 (diff)
downloadbcm5719-llvm-87d5ca083b8b8b684d98f897a2157ac00087ef75.tar.gz
bcm5719-llvm-87d5ca083b8b8b684d98f897a2157ac00087ef75.zip
add note about sin
llvm-svn: 65137
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/README.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt
index 78dcb12581c..09e5433578c 100644
--- a/llvm/lib/Target/README.txt
+++ b/llvm/lib/Target/README.txt
@@ -1689,3 +1689,18 @@ for next field in struct (which is at same address).
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
+
OpenPOWER on IntegriCloud