1; RUN: llc -mtriple=aarch64-linux-gnu -verify-machineinstrs -o - %s | FileCheck %s
2
3define float @test_sincos_f32(float %f) {
4  %sin = call float @sinf(float %f) readnone
5  %cos = call float @cosf(float %f) readnone
6; CHECK: bl sinf
7; CHECK: bl cosf
8  %val = fadd float %sin, %cos
9  ret float %val
10}
11
12define double @test_sincos_f64(double %f) {
13  %sin = call double @sin(double %f) readnone
14  %cos = call double @cos(double %f) readnone
15  %val = fadd double %sin, %cos
16; CHECK: bl sin
17; CHECK: bl cos
18  ret double %val
19}
20
21define fp128 @test_sincos_f128(fp128 %f) {
22  %sin = call fp128 @sinl(fp128 %f) readnone
23  %cos = call fp128 @cosl(fp128 %f) readnone
24  %val = fadd fp128 %sin, %cos
25; CHECK: bl sinl
26; CHECK: bl cosl
27  ret fp128 %val
28}
29
30declare float  @sinf(float) readonly
31declare double @sin(double) readonly
32declare fp128 @sinl(fp128) readonly
33declare float @cosf(float) readonly
34declare double @cos(double) readonly
35declare fp128 @cosl(fp128) readonly
36