1 ; RUN: llc < %s -mtriple=i386-apple-darwin8 -mattr=+sse2 | FileCheck %s --check-prefix=X32 2 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+sse2 | FileCheck %s --check-prefix=X64 3 4 ; Sibcall optimization of expanded libcalls. 5 ; rdar://8707777 6 7 define double @foo(double %a) nounwind readonly ssp { 8 entry: 9 ; X32: foo: 10 ; X32: jmp _sin$stub 11 12 ; X64: foo: 13 ; X64: jmp _sin 14 %0 = tail call double @sin(double %a) nounwind readonly 15 ret double %0 16 } 17 18 define float @bar(float %a) nounwind readonly ssp { 19 ; X32: bar: 20 ; X32: jmp _sinf$stub 21 22 ; X64: bar: 23 ; X64: jmp _sinf 24 entry: 25 %0 = tail call float @sinf(float %a) nounwind readonly 26 ret float %0 27 } 28 29 declare float @sinf(float) nounwind readonly 30 31 declare double @sin(double) nounwind readonly 32