[WebAssembly] Don't perform the returned-argument optimization on constants.
[oota-llvm.git] / test / CodeGen / ARM / v7k-sincos.ll
1 ; RUN: llc -mtriple=thumbv7k-apple-watchos2.0 -o - %s | FileCheck %s
2
3 declare double @sin(double) nounwind readnone
4 declare double @cos(double) nounwind readnone
5
6 define double @test_stret(double %in) {
7 ; CHECK-LABEL: test_stret:
8 ; CHECK: blx ___sincos_stret
9 ; CHECK-NOT: ldr
10 ; CHECK: vadd.f64 d0, d0, d1
11
12   %sin = call double @sin(double %in)
13   %cos = call double @cos(double %in)
14   %sum = fadd double %sin, %cos
15   ret double %sum
16 }