1 ; RUN: llc -o - %s -verify-machineinstrs -mtriple=aarch64-linux-gnu -mattr=+neon | FileCheck %s
4 define <2 x float> @test_cos_v2f64(<2 x double> %v1) {
5 ; CHECK-LABEL: test_cos_v2f64:
8 %1 = call <2 x double> @llvm.cos.v2f64(<2 x double> %v1)
9 %2 = fptrunc <2 x double> %1 to <2 x float>
13 define <2 x float> @test_sin_v2f64(<2 x double> %v1) {
14 ; CHECK-LABEL: test_sin_v2f64:
17 %1 = call <2 x double> @llvm.sin.v2f64(<2 x double> %v1)
18 %2 = fptrunc <2 x double> %1 to <2 x float>
22 define <2 x float> @test_pow_v2f64(<2 x double> %v1, <2 x double> %v2) {
23 ; CHECK-LABEL: test_pow_v2f64:
26 %1 = call <2 x double> @llvm.pow.v2f64(<2 x double> %v1, <2 x double> %v2)
27 %2 = fptrunc <2 x double> %1 to <2 x float>
31 declare <2 x double> @llvm.cos.v2f64(<2 x double>)
32 declare <2 x double> @llvm.sin.v2f64(<2 x double>)
33 declare <2 x double> @llvm.pow.v2f64(<2 x double>, <2 x double>)
35 define <2 x float> @test_cos_v2f32(<2 x float> %v1) {
36 ; CHECK-LABEL: test_cos_v2f32:
39 %1 = call <2 x float> @llvm.cos.v2f32(<2 x float> %v1)
43 define <2 x float> @test_sin_v2f32(<2 x float> %v1) {
44 ; CHECK-LABEL: test_sin_v2f32:
47 %1 = call <2 x float> @llvm.sin.v2f32(<2 x float> %v1)
51 define <2 x float> @test_pow_v2f32(<2 x float> %v1, <2 x float> %v2) {
52 ; CHECK-LABEL: test_pow_v2f32:
55 %1 = call <2 x float> @llvm.pow.v2f32(<2 x float> %v1, <2 x float> %v2)
59 declare <2 x float> @llvm.cos.v2f32(<2 x float>)
60 declare <2 x float> @llvm.sin.v2f32(<2 x float>)
61 declare <2 x float> @llvm.pow.v2f32(<2 x float>, <2 x float>)
63 define <4 x float> @test_cos_v4f32(<4 x float> %v1) {
64 ; CHECK-LABEL: test_cos_v4f32:
69 %1 = call <4 x float> @llvm.cos.v4f32(<4 x float> %v1)
73 define <4 x float> @test_sin_v4f32(<4 x float> %v1) {
74 ; CHECK-LABEL: test_sin_v4f32:
79 %1 = call <4 x float> @llvm.sin.v4f32(<4 x float> %v1)
83 define <4 x float> @test_pow_v4f32(<4 x float> %v1, <4 x float> %v2) {
84 ; CHECK-LABEL: test_pow_v4f32:
89 %1 = call <4 x float> @llvm.pow.v4f32(<4 x float> %v1, <4 x float> %v2)
93 declare <4 x float> @llvm.cos.v4f32(<4 x float>)
94 declare <4 x float> @llvm.sin.v4f32(<4 x float>)
95 declare <4 x float> @llvm.pow.v4f32(<4 x float>, <4 x float>)