mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-05 19:29:01 +00:00
7b7ff9e152
The most substantial changes are again for watchOS: libcalls are hard-float if needed and sincos has a different calling convention. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251571 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
434 B
LLVM
17 lines
434 B
LLVM
; RUN: llc -mtriple=thumbv7k-apple-watchos2.0 -o - %s | FileCheck %s
|
|
|
|
declare double @sin(double) nounwind readnone
|
|
declare double @cos(double) nounwind readnone
|
|
|
|
define double @test_stret(double %in) {
|
|
; CHECK-LABEL: test_stret:
|
|
; CHECK: blx ___sincos_stret
|
|
; CHECK-NOT: ldr
|
|
; CHECK: vadd.f64 d0, d0, d1
|
|
|
|
%sin = call double @sin(double %in)
|
|
%cos = call double @cos(double %in)
|
|
%sum = fadd double %sin, %cos
|
|
ret double %sum
|
|
}
|