1 ; RUN: llc -o - %s -verify-machineinstrs -mtriple=aarch64-linux-gnu -mattr=+neon | FileCheck %s
2 ; RUN: llc -o - %s -verify-machineinstrs -mtriple=aarch64-linux-gnu \
3 ; RUN: -mattr=+neon -global-isel -global-isel-abort=2 \
4 ; RUN: -pass-remarks-missed=gisel* \
5 ; RUN: 2>&1 | FileCheck %s --check-prefixes=FALLBACK,GISEL
7 ; FALLBACK-NOT: remark{{.*}}test_cos_v2f32
8 define <2 x float> @test_cos_v2f64(<2 x double> %v1) {
9 ; CHECK-LABEL: test_cos_v2f64:
12 ; GISEL-LABEL: test_cos_v2f64:
15 %1 = call <2 x double> @llvm.cos.v2f64(<2 x double> %v1)
16 %2 = fptrunc <2 x double> %1 to <2 x float>
20 ; FALLBACK-NOT: remark{{.*}}test_sin_v2f32
21 define <2 x float> @test_sin_v2f64(<2 x double> %v1) {
22 ; CHECK-LABEL: test_sin_v2f64:
25 ; GISEL-LABEL: test_sin_v2f64:
28 %1 = call <2 x double> @llvm.sin.v2f64(<2 x double> %v1)
29 %2 = fptrunc <2 x double> %1 to <2 x float>
33 define <2 x float> @test_pow_v2f64(<2 x double> %v1, <2 x double> %v2) {
34 ; CHECK-LABEL: test_pow_v2f64:
37 %1 = call <2 x double> @llvm.pow.v2f64(<2 x double> %v1, <2 x double> %v2)
38 %2 = fptrunc <2 x double> %1 to <2 x float>
42 declare <2 x double> @llvm.cos.v2f64(<2 x double>)
43 declare <2 x double> @llvm.sin.v2f64(<2 x double>)
44 declare <2 x double> @llvm.pow.v2f64(<2 x double>, <2 x double>)
46 ; FALLBACK-NOT: remark{{.*}}test_cos_v2f32
47 define <2 x float> @test_cos_v2f32(<2 x float> %v1) {
48 ; CHECK-LABEL: test_cos_v2f32:
51 ; GISEL-LABEL: test_cos_v2f32:
54 %1 = call <2 x float> @llvm.cos.v2f32(<2 x float> %v1)
58 ; FALLBACK-NOT: remark{{.*}}test_sin_v2f32
59 define <2 x float> @test_sin_v2f32(<2 x float> %v1) {
60 ; CHECK-LABEL: test_sin_v2f32:
63 ; GISEL-LABEL: test_sin_v2f32:
66 %1 = call <2 x float> @llvm.sin.v2f32(<2 x float> %v1)
70 define <2 x float> @test_pow_v2f32(<2 x float> %v1, <2 x float> %v2) {
71 ; CHECK-LABEL: test_pow_v2f32:
74 %1 = call <2 x float> @llvm.pow.v2f32(<2 x float> %v1, <2 x float> %v2)
78 declare <2 x float> @llvm.cos.v2f32(<2 x float>)
79 declare <2 x float> @llvm.sin.v2f32(<2 x float>)
80 declare <2 x float> @llvm.pow.v2f32(<2 x float>, <2 x float>)
82 ; FALLBACK-NOT: remark{{.*}}test_cos_v4f32
83 define <4 x float> @test_cos_v4f32(<4 x float> %v1) {
84 ; CHECK-LABEL: test_cos_v4f32:
89 ; GISEL-LABEL: test_cos_v4f32:
94 %1 = call <4 x float> @llvm.cos.v4f32(<4 x float> %v1)
98 ; FALLBACK-NOT: remark{{.*}}test_sin_v4f32
99 define <4 x float> @test_sin_v4f32(<4 x float> %v1) {
100 ; CHECK-LABEL: test_sin_v4f32:
105 ; GISEL-LABEL: test_sin_v4f32:
110 %1 = call <4 x float> @llvm.sin.v4f32(<4 x float> %v1)
114 define <4 x float> @test_pow_v4f32(<4 x float> %v1, <4 x float> %v2) {
115 ; CHECK-LABEL: test_pow_v4f32:
120 %1 = call <4 x float> @llvm.pow.v4f32(<4 x float> %v1, <4 x float> %v2)
124 declare <4 x float> @llvm.cos.v4f32(<4 x float>)
125 declare <4 x float> @llvm.sin.v4f32(<4 x float>)
126 declare <4 x float> @llvm.pow.v4f32(<4 x float>, <4 x float>)