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 | 474479fce79e8d042bfbab2b8d021e9354fa4760 (patch) | |
tree | 1eb65e9bfa3316503b3fba3013a8c937f80e00f6 /lib/Target/README.txt | |
parent | a1fd5b386dd8eb4c86bfd2b9659c219a1c4f56db (diff) | |
download | llvm-474479fce79e8d042bfbab2b8d021e9354fa4760.tar.gz llvm-474479fce79e8d042bfbab2b8d021e9354fa4760.tar.bz2 llvm-474479fce79e8d042bfbab2b8d021e9354fa4760.tar.xz |
add note about sin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/README.txt')
-rw-r--r-- | lib/Target/README.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt index 78dcb12581..09e5433578 100644 --- a/lib/Target/README.txt +++ b/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 + |