summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/v7k-sincos.ll
blob: b89d4dc8120bf6d40e9d389dbad8120d14af12e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; 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
}
OpenPOWER on IntegriCloud