X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FREADME.txt;h=09e5433578cca167a85d32f1a0d680452ee0b237;hb=6140a8b0572c80383a67248e8b1c0cf2379b1c43;hp=78dcb12581c699ff3271d73fce612b6d8ca5b386;hpb=e46a686dc237735831cd4ce410a8cbe396ec08ab;p=oota-llvm.git diff --git a/lib/Target/README.txt b/lib/Target/README.txt index 78dcb12581c..09e5433578c 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 +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 +