2010-12-02 21:17:34 +01:00
|
|
|
; RUN: llc < %s -mtriple=i386-apple-darwin8 -mattr=+sse2 | FileCheck %s --check-prefix=X32
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+sse2 | FileCheck %s --check-prefix=X64
|
2010-12-01 00:55:39 +01:00
|
|
|
|
|
|
|
; Sibcall optimization of expanded libcalls.
|
|
|
|
; rdar://8707777
|
|
|
|
|
|
|
|
define double @foo(double %a) nounwind readonly ssp {
|
|
|
|
entry:
|
2010-12-01 23:59:46 +01:00
|
|
|
; X32: foo:
|
|
|
|
; X32: jmp _sin$stub
|
|
|
|
|
|
|
|
; X64: foo:
|
|
|
|
; X64: jmp _sin
|
2010-12-01 00:55:39 +01:00
|
|
|
%0 = tail call double @sin(double %a) nounwind readonly
|
|
|
|
ret double %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define float @bar(float %a) nounwind readonly ssp {
|
2010-12-01 23:59:46 +01:00
|
|
|
; X32: bar:
|
|
|
|
; X32: jmp _sinf$stub
|
|
|
|
|
|
|
|
; X64: bar:
|
|
|
|
; X64: jmp _sinf
|
2010-12-01 00:55:39 +01:00
|
|
|
entry:
|
|
|
|
%0 = tail call float @sinf(float %a) nounwind readonly
|
|
|
|
ret float %0
|
|
|
|
}
|
|
|
|
|
|
|
|
declare float @sinf(float) nounwind readonly
|
|
|
|
|
|
|
|
declare double @sin(double) nounwind readonly
|