mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-01 18:33:56 +00:00
add note about sin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a1fd5b386d
commit
474479fce7
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user