1 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve2 -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve2 -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-llvm -o - -x c++ %s | FileCheck %s
3 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve2 -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s
4 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve2 -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-llvm -o - -x c++ %s | FileCheck %s
5 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -fsyntax-only -verify -verify-ignore-unexpected=error %s
6 // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -fsyntax-only -verify=overload -verify-ignore-unexpected=error %s
7
8 #include <arm_sve.h>
9
10 #ifdef SVE_OVERLOADED_FORMS
11 // A simple used,unused... macro, long enough to represent any SVE builtin.
12 #define SVE_ACLE_FUNC(A1,A2_UNUSED,A3,A4_UNUSED) A1##A3
13 #else
14 #define SVE_ACLE_FUNC(A1,A2,A3,A4) A1##A2##A3##A4
15 #endif
16
test_svmaxp_s8_m(svbool_t pg,svint8_t op1,svint8_t op2)17 svint8_t test_svmaxp_s8_m(svbool_t pg, svint8_t op1, svint8_t op2)
18 {
19 // CHECK-LABEL: test_svmaxp_s8_m
20 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 16 x i8> @llvm.aarch64.sve.smaxp.nxv16i8(<vscale x 16 x i1> %pg, <vscale x 16 x i8> %op1, <vscale x 16 x i8> %op2)
21 // CHECK: ret <vscale x 16 x i8> %[[INTRINSIC]]
22 // overload-warning@+2 {{implicit declaration of function 'svmaxp_m'}}
23 // expected-warning@+1 {{implicit declaration of function 'svmaxp_s8_m'}}
24 return SVE_ACLE_FUNC(svmaxp,_s8,_m,)(pg, op1, op2);
25 }
26
test_svmaxp_s16_m(svbool_t pg,svint16_t op1,svint16_t op2)27 svint16_t test_svmaxp_s16_m(svbool_t pg, svint16_t op1, svint16_t op2)
28 {
29 // CHECK-LABEL: test_svmaxp_s16_m
30 // CHECK: %[[PG:.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> %pg)
31 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 8 x i16> @llvm.aarch64.sve.smaxp.nxv8i16(<vscale x 8 x i1> %[[PG]], <vscale x 8 x i16> %op1, <vscale x 8 x i16> %op2)
32 // CHECK: ret <vscale x 8 x i16> %[[INTRINSIC]]
33 // overload-warning@+2 {{implicit declaration of function 'svmaxp_m'}}
34 // expected-warning@+1 {{implicit declaration of function 'svmaxp_s16_m'}}
35 return SVE_ACLE_FUNC(svmaxp,_s16,_m,)(pg, op1, op2);
36 }
37
test_svmaxp_s32_m(svbool_t pg,svint32_t op1,svint32_t op2)38 svint32_t test_svmaxp_s32_m(svbool_t pg, svint32_t op1, svint32_t op2)
39 {
40 // CHECK-LABEL: test_svmaxp_s32_m
41 // CHECK: %[[PG:.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> %pg)
42 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 4 x i32> @llvm.aarch64.sve.smaxp.nxv4i32(<vscale x 4 x i1> %[[PG]], <vscale x 4 x i32> %op1, <vscale x 4 x i32> %op2)
43 // CHECK: ret <vscale x 4 x i32> %[[INTRINSIC]]
44 // overload-warning@+2 {{implicit declaration of function 'svmaxp_m'}}
45 // expected-warning@+1 {{implicit declaration of function 'svmaxp_s32_m'}}
46 return SVE_ACLE_FUNC(svmaxp,_s32,_m,)(pg, op1, op2);
47 }
48
test_svmaxp_s64_m(svbool_t pg,svint64_t op1,svint64_t op2)49 svint64_t test_svmaxp_s64_m(svbool_t pg, svint64_t op1, svint64_t op2)
50 {
51 // CHECK-LABEL: test_svmaxp_s64_m
52 // CHECK: %[[PG:.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> %pg)
53 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 2 x i64> @llvm.aarch64.sve.smaxp.nxv2i64(<vscale x 2 x i1> %[[PG]], <vscale x 2 x i64> %op1, <vscale x 2 x i64> %op2)
54 // CHECK: ret <vscale x 2 x i64> %[[INTRINSIC]]
55 // overload-warning@+2 {{implicit declaration of function 'svmaxp_m'}}
56 // expected-warning@+1 {{implicit declaration of function 'svmaxp_s64_m'}}
57 return SVE_ACLE_FUNC(svmaxp,_s64,_m,)(pg, op1, op2);
58 }
59
test_svmaxp_u8_m(svbool_t pg,svuint8_t op1,svuint8_t op2)60 svuint8_t test_svmaxp_u8_m(svbool_t pg, svuint8_t op1, svuint8_t op2)
61 {
62 // CHECK-LABEL: test_svmaxp_u8_m
63 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 16 x i8> @llvm.aarch64.sve.umaxp.nxv16i8(<vscale x 16 x i1> %pg, <vscale x 16 x i8> %op1, <vscale x 16 x i8> %op2)
64 // CHECK: ret <vscale x 16 x i8> %[[INTRINSIC]]
65 // overload-warning@+2 {{implicit declaration of function 'svmaxp_m'}}
66 // expected-warning@+1 {{implicit declaration of function 'svmaxp_u8_m'}}
67 return SVE_ACLE_FUNC(svmaxp,_u8,_m,)(pg, op1, op2);
68 }
69
test_svmaxp_u16_m(svbool_t pg,svuint16_t op1,svuint16_t op2)70 svuint16_t test_svmaxp_u16_m(svbool_t pg, svuint16_t op1, svuint16_t op2)
71 {
72 // CHECK-LABEL: test_svmaxp_u16_m
73 // CHECK: %[[PG:.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> %pg)
74 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 8 x i16> @llvm.aarch64.sve.umaxp.nxv8i16(<vscale x 8 x i1> %[[PG]], <vscale x 8 x i16> %op1, <vscale x 8 x i16> %op2)
75 // CHECK: ret <vscale x 8 x i16> %[[INTRINSIC]]
76 // overload-warning@+2 {{implicit declaration of function 'svmaxp_m'}}
77 // expected-warning@+1 {{implicit declaration of function 'svmaxp_u16_m'}}
78 return SVE_ACLE_FUNC(svmaxp,_u16,_m,)(pg, op1, op2);
79 }
80
test_svmaxp_u32_m(svbool_t pg,svuint32_t op1,svuint32_t op2)81 svuint32_t test_svmaxp_u32_m(svbool_t pg, svuint32_t op1, svuint32_t op2)
82 {
83 // CHECK-LABEL: test_svmaxp_u32_m
84 // CHECK: %[[PG:.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> %pg)
85 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 4 x i32> @llvm.aarch64.sve.umaxp.nxv4i32(<vscale x 4 x i1> %[[PG]], <vscale x 4 x i32> %op1, <vscale x 4 x i32> %op2)
86 // CHECK: ret <vscale x 4 x i32> %[[INTRINSIC]]
87 // overload-warning@+2 {{implicit declaration of function 'svmaxp_m'}}
88 // expected-warning@+1 {{implicit declaration of function 'svmaxp_u32_m'}}
89 return SVE_ACLE_FUNC(svmaxp,_u32,_m,)(pg, op1, op2);
90 }
91
test_svmaxp_u64_m(svbool_t pg,svuint64_t op1,svuint64_t op2)92 svuint64_t test_svmaxp_u64_m(svbool_t pg, svuint64_t op1, svuint64_t op2)
93 {
94 // CHECK-LABEL: test_svmaxp_u64_m
95 // CHECK: %[[PG:.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> %pg)
96 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 2 x i64> @llvm.aarch64.sve.umaxp.nxv2i64(<vscale x 2 x i1> %[[PG]], <vscale x 2 x i64> %op1, <vscale x 2 x i64> %op2)
97 // CHECK: ret <vscale x 2 x i64> %[[INTRINSIC]]
98 // overload-warning@+2 {{implicit declaration of function 'svmaxp_m'}}
99 // expected-warning@+1 {{implicit declaration of function 'svmaxp_u64_m'}}
100 return SVE_ACLE_FUNC(svmaxp,_u64,_m,)(pg, op1, op2);
101 }
102
test_svmaxp_s8_x(svbool_t pg,svint8_t op1,svint8_t op2)103 svint8_t test_svmaxp_s8_x(svbool_t pg, svint8_t op1, svint8_t op2)
104 {
105 // CHECK-LABEL: test_svmaxp_s8_x
106 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 16 x i8> @llvm.aarch64.sve.smaxp.nxv16i8(<vscale x 16 x i1> %pg, <vscale x 16 x i8> %op1, <vscale x 16 x i8> %op2)
107 // CHECK: ret <vscale x 16 x i8> %[[INTRINSIC]]
108 // overload-warning@+2 {{implicit declaration of function 'svmaxp_x'}}
109 // expected-warning@+1 {{implicit declaration of function 'svmaxp_s8_x'}}
110 return SVE_ACLE_FUNC(svmaxp,_s8,_x,)(pg, op1, op2);
111 }
112
test_svmaxp_s16_x(svbool_t pg,svint16_t op1,svint16_t op2)113 svint16_t test_svmaxp_s16_x(svbool_t pg, svint16_t op1, svint16_t op2)
114 {
115 // CHECK-LABEL: test_svmaxp_s16_x
116 // CHECK: %[[PG:.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> %pg)
117 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 8 x i16> @llvm.aarch64.sve.smaxp.nxv8i16(<vscale x 8 x i1> %[[PG]], <vscale x 8 x i16> %op1, <vscale x 8 x i16> %op2)
118 // CHECK: ret <vscale x 8 x i16> %[[INTRINSIC]]
119 // overload-warning@+2 {{implicit declaration of function 'svmaxp_x'}}
120 // expected-warning@+1 {{implicit declaration of function 'svmaxp_s16_x'}}
121 return SVE_ACLE_FUNC(svmaxp,_s16,_x,)(pg, op1, op2);
122 }
123
test_svmaxp_s32_x(svbool_t pg,svint32_t op1,svint32_t op2)124 svint32_t test_svmaxp_s32_x(svbool_t pg, svint32_t op1, svint32_t op2)
125 {
126 // CHECK-LABEL: test_svmaxp_s32_x
127 // CHECK: %[[PG:.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> %pg)
128 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 4 x i32> @llvm.aarch64.sve.smaxp.nxv4i32(<vscale x 4 x i1> %[[PG]], <vscale x 4 x i32> %op1, <vscale x 4 x i32> %op2)
129 // CHECK: ret <vscale x 4 x i32> %[[INTRINSIC]]
130 // overload-warning@+2 {{implicit declaration of function 'svmaxp_x'}}
131 // expected-warning@+1 {{implicit declaration of function 'svmaxp_s32_x'}}
132 return SVE_ACLE_FUNC(svmaxp,_s32,_x,)(pg, op1, op2);
133 }
134
test_svmaxp_s64_x(svbool_t pg,svint64_t op1,svint64_t op2)135 svint64_t test_svmaxp_s64_x(svbool_t pg, svint64_t op1, svint64_t op2)
136 {
137 // CHECK-LABEL: test_svmaxp_s64_x
138 // CHECK: %[[PG:.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> %pg)
139 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 2 x i64> @llvm.aarch64.sve.smaxp.nxv2i64(<vscale x 2 x i1> %[[PG]], <vscale x 2 x i64> %op1, <vscale x 2 x i64> %op2)
140 // CHECK: ret <vscale x 2 x i64> %[[INTRINSIC]]
141 // overload-warning@+2 {{implicit declaration of function 'svmaxp_x'}}
142 // expected-warning@+1 {{implicit declaration of function 'svmaxp_s64_x'}}
143 return SVE_ACLE_FUNC(svmaxp,_s64,_x,)(pg, op1, op2);
144 }
145
test_svmaxp_u8_x(svbool_t pg,svuint8_t op1,svuint8_t op2)146 svuint8_t test_svmaxp_u8_x(svbool_t pg, svuint8_t op1, svuint8_t op2)
147 {
148 // CHECK-LABEL: test_svmaxp_u8_x
149 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 16 x i8> @llvm.aarch64.sve.umaxp.nxv16i8(<vscale x 16 x i1> %pg, <vscale x 16 x i8> %op1, <vscale x 16 x i8> %op2)
150 // CHECK: ret <vscale x 16 x i8> %[[INTRINSIC]]
151 // overload-warning@+2 {{implicit declaration of function 'svmaxp_x'}}
152 // expected-warning@+1 {{implicit declaration of function 'svmaxp_u8_x'}}
153 return SVE_ACLE_FUNC(svmaxp,_u8,_x,)(pg, op1, op2);
154 }
155
test_svmaxp_u16_x(svbool_t pg,svuint16_t op1,svuint16_t op2)156 svuint16_t test_svmaxp_u16_x(svbool_t pg, svuint16_t op1, svuint16_t op2)
157 {
158 // CHECK-LABEL: test_svmaxp_u16_x
159 // CHECK: %[[PG:.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> %pg)
160 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 8 x i16> @llvm.aarch64.sve.umaxp.nxv8i16(<vscale x 8 x i1> %[[PG]], <vscale x 8 x i16> %op1, <vscale x 8 x i16> %op2)
161 // CHECK: ret <vscale x 8 x i16> %[[INTRINSIC]]
162 // overload-warning@+2 {{implicit declaration of function 'svmaxp_x'}}
163 // expected-warning@+1 {{implicit declaration of function 'svmaxp_u16_x'}}
164 return SVE_ACLE_FUNC(svmaxp,_u16,_x,)(pg, op1, op2);
165 }
166
test_svmaxp_u32_x(svbool_t pg,svuint32_t op1,svuint32_t op2)167 svuint32_t test_svmaxp_u32_x(svbool_t pg, svuint32_t op1, svuint32_t op2)
168 {
169 // CHECK-LABEL: test_svmaxp_u32_x
170 // CHECK: %[[PG:.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> %pg)
171 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 4 x i32> @llvm.aarch64.sve.umaxp.nxv4i32(<vscale x 4 x i1> %[[PG]], <vscale x 4 x i32> %op1, <vscale x 4 x i32> %op2)
172 // CHECK: ret <vscale x 4 x i32> %[[INTRINSIC]]
173 // overload-warning@+2 {{implicit declaration of function 'svmaxp_x'}}
174 // expected-warning@+1 {{implicit declaration of function 'svmaxp_u32_x'}}
175 return SVE_ACLE_FUNC(svmaxp,_u32,_x,)(pg, op1, op2);
176 }
177
test_svmaxp_u64_x(svbool_t pg,svuint64_t op1,svuint64_t op2)178 svuint64_t test_svmaxp_u64_x(svbool_t pg, svuint64_t op1, svuint64_t op2)
179 {
180 // CHECK-LABEL: test_svmaxp_u64_x
181 // CHECK: %[[PG:.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> %pg)
182 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 2 x i64> @llvm.aarch64.sve.umaxp.nxv2i64(<vscale x 2 x i1> %[[PG]], <vscale x 2 x i64> %op1, <vscale x 2 x i64> %op2)
183 // CHECK: ret <vscale x 2 x i64> %[[INTRINSIC]]
184 // overload-warning@+2 {{implicit declaration of function 'svmaxp_x'}}
185 // expected-warning@+1 {{implicit declaration of function 'svmaxp_u64_x'}}
186 return SVE_ACLE_FUNC(svmaxp,_u64,_x,)(pg, op1, op2);
187 }
188
test_svmaxp_f16_m(svbool_t pg,svfloat16_t op1,svfloat16_t op2)189 svfloat16_t test_svmaxp_f16_m(svbool_t pg, svfloat16_t op1, svfloat16_t op2)
190 {
191 // CHECK-LABEL: test_svmaxp_f16_m
192 // CHECK: %[[PG:.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> %pg)
193 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 8 x half> @llvm.aarch64.sve.fmaxp.nxv8f16(<vscale x 8 x i1> %[[PG]], <vscale x 8 x half> %op1, <vscale x 8 x half> %op2)
194 // CHECK: ret <vscale x 8 x half> %[[INTRINSIC]]
195 // overload-warning@+2 {{implicit declaration of function 'svmaxp_m'}}
196 // expected-warning@+1 {{implicit declaration of function 'svmaxp_f16_m'}}
197 return SVE_ACLE_FUNC(svmaxp,_f16,_m,)(pg, op1, op2);
198 }
199
test_svmaxp_f32_m(svbool_t pg,svfloat32_t op1,svfloat32_t op2)200 svfloat32_t test_svmaxp_f32_m(svbool_t pg, svfloat32_t op1, svfloat32_t op2)
201 {
202 // CHECK-LABEL: test_svmaxp_f32_m
203 // CHECK: %[[PG:.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> %pg)
204 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 4 x float> @llvm.aarch64.sve.fmaxp.nxv4f32(<vscale x 4 x i1> %[[PG]], <vscale x 4 x float> %op1, <vscale x 4 x float> %op2)
205 // CHECK: ret <vscale x 4 x float> %[[INTRINSIC]]
206 // overload-warning@+2 {{implicit declaration of function 'svmaxp_m'}}
207 // expected-warning@+1 {{implicit declaration of function 'svmaxp_f32_m'}}
208 return SVE_ACLE_FUNC(svmaxp,_f32,_m,)(pg, op1, op2);
209 }
210
test_svmaxp_f64_m(svbool_t pg,svfloat64_t op1,svfloat64_t op2)211 svfloat64_t test_svmaxp_f64_m(svbool_t pg, svfloat64_t op1, svfloat64_t op2)
212 {
213 // CHECK-LABEL: test_svmaxp_f64_m
214 // CHECK: %[[PG:.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> %pg)
215 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 2 x double> @llvm.aarch64.sve.fmaxp.nxv2f64(<vscale x 2 x i1> %[[PG]], <vscale x 2 x double> %op1, <vscale x 2 x double> %op2)
216 // CHECK: ret <vscale x 2 x double> %[[INTRINSIC]]
217 // overload-warning@+2 {{implicit declaration of function 'svmaxp_m'}}
218 // expected-warning@+1 {{implicit declaration of function 'svmaxp_f64_m'}}
219 return SVE_ACLE_FUNC(svmaxp,_f64,_m,)(pg, op1, op2);
220 }
221
test_svmaxp_f16_x(svbool_t pg,svfloat16_t op1,svfloat16_t op2)222 svfloat16_t test_svmaxp_f16_x(svbool_t pg, svfloat16_t op1, svfloat16_t op2)
223 {
224 // CHECK-LABEL: test_svmaxp_f16_x
225 // CHECK: %[[PG:.*]] = call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> %pg)
226 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 8 x half> @llvm.aarch64.sve.fmaxp.nxv8f16(<vscale x 8 x i1> %[[PG]], <vscale x 8 x half> %op1, <vscale x 8 x half> %op2)
227 // CHECK: ret <vscale x 8 x half> %[[INTRINSIC]]
228 // overload-warning@+2 {{implicit declaration of function 'svmaxp_x'}}
229 // expected-warning@+1 {{implicit declaration of function 'svmaxp_f16_x'}}
230 return SVE_ACLE_FUNC(svmaxp,_f16,_x,)(pg, op1, op2);
231 }
232
test_svmaxp_f32_x(svbool_t pg,svfloat32_t op1,svfloat32_t op2)233 svfloat32_t test_svmaxp_f32_x(svbool_t pg, svfloat32_t op1, svfloat32_t op2)
234 {
235 // CHECK-LABEL: test_svmaxp_f32_x
236 // CHECK: %[[PG:.*]] = call <vscale x 4 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv4i1(<vscale x 16 x i1> %pg)
237 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 4 x float> @llvm.aarch64.sve.fmaxp.nxv4f32(<vscale x 4 x i1> %[[PG]], <vscale x 4 x float> %op1, <vscale x 4 x float> %op2)
238 // CHECK: ret <vscale x 4 x float> %[[INTRINSIC]]
239 // overload-warning@+2 {{implicit declaration of function 'svmaxp_x'}}
240 // expected-warning@+1 {{implicit declaration of function 'svmaxp_f32_x'}}
241 return SVE_ACLE_FUNC(svmaxp,_f32,_x,)(pg, op1, op2);
242 }
243
test_svmaxp_f64_x(svbool_t pg,svfloat64_t op1,svfloat64_t op2)244 svfloat64_t test_svmaxp_f64_x(svbool_t pg, svfloat64_t op1, svfloat64_t op2)
245 {
246 // CHECK-LABEL: test_svmaxp_f64_x
247 // CHECK: %[[PG:.*]] = call <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1> %pg)
248 // CHECK: %[[INTRINSIC:.*]] = call <vscale x 2 x double> @llvm.aarch64.sve.fmaxp.nxv2f64(<vscale x 2 x i1> %[[PG]], <vscale x 2 x double> %op1, <vscale x 2 x double> %op2)
249 // CHECK: ret <vscale x 2 x double> %[[INTRINSIC]]
250 // overload-warning@+2 {{implicit declaration of function 'svmaxp_x'}}
251 // expected-warning@+1 {{implicit declaration of function 'svmaxp_f64_x'}}
252 return SVE_ACLE_FUNC(svmaxp,_f64,_x,)(pg, op1, op2);
253 }
254