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
4 define float @test_sincos_f32(float %f) {
5 %sin = call float @sinf(float %f) readnone
6 %cos = call float @cosf(float %f) readnone
9 %val = fadd float %sin, %cos
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
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
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