ARM: use the proper target object format for WoA
[oota-llvm.git] / test / CodeGen / AArch64 / sincos-expansion.ll
1 ; RUN: llc -mtriple=aarch64-none-linux-gnu -verify-machineinstrs < %s | FileCheck %s
2 ; RUN: llc -mtriple=arm64-linux-gnu -verify-machineinstrs -o - %s | FileCheck %s
3
4 define float @test_sincos_f32(float %f) {
5   %sin = call float @sinf(float %f) readnone
6   %cos = call float @cosf(float %f) readnone
7 ; CHECK: bl sinf
8 ; CHECK: bl cosf
9   %val = fadd float %sin, %cos
10   ret float %val
11 }
12
13 define double @test_sincos_f64(double %f) {
14   %sin = call double @sin(double %f) readnone
15   %cos = call double @cos(double %f) readnone
16   %val = fadd double %sin, %cos
17 ; CHECK: bl sin
18 ; CHECK: bl cos
19   ret double %val
20 }
21
22 define fp128 @test_sincos_f128(fp128 %f) {
23   %sin = call fp128 @sinl(fp128 %f) readnone
24   %cos = call fp128 @cosl(fp128 %f) readnone
25   %val = fadd fp128 %sin, %cos
26 ; CHECK: bl sinl
27 ; CHECK: bl cosl
28   ret fp128 %val
29 }
30
31 declare float  @sinf(float) readonly
32 declare double @sin(double) readonly
33 declare fp128 @sinl(fp128) readonly
34 declare float @cosf(float) readonly
35 declare double @cos(double) readonly
36 declare fp128 @cosl(fp128) readonly