diff options
author | Torok Edwin <edwintorok@gmail.com> | 2009-02-20 18:42:06 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2009-02-20 18:42:06 +0000 |
commit | 87d5ca083b8b8b684d98f897a2157ac00087ef75 (patch) | |
tree | 44991bee036f1a65e1ae5cebe8118b35a97d1dc2 /llvm/lib/Target | |
parent | c380864d2c5838e2a66e465a8f5d87f120f70d78 (diff) | |
download | bcm5719-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.txt | 15 |
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 + |