Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

17 lines
433 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: bl ___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
}