From 474479fce79e8d042bfbab2b8d021e9354fa4760 Mon Sep 17 00:00:00 2001 From: Torok Edwin Date: Fri, 20 Feb 2009 18:42:06 +0000 Subject: [PATCH] add note about sin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65137 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/README.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 + -- 2.34.1