55// 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 -check-prefix=CPP-CHECK
66// 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
77// 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 -check-prefix=CPP-CHECK
8- // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -fsyntax-only -Wno-error=implicit-function-declaration -verify -verify-ignore-unexpected=error %s
9- // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -fsyntax-only -Wno-error=implicit-function-declaration -verify=overload -verify-ignore-unexpected=error %s
108
119#include <arm_sve.h>
1210
2927//
3028svint8_t test_svaba_s8 (svint8_t op1 , svint8_t op2 , svint8_t op3 )
3129{
32- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
33- // expected-warning@+1 {{call to undeclared function 'svaba_s8'; ISO C99 and later do not support implicit function declarations}}
3430 return SVE_ACLE_FUNC (svaba ,_s8 ,,)(op1 , op2 , op3 );
3531}
3632
@@ -46,8 +42,6 @@ svint8_t test_svaba_s8(svint8_t op1, svint8_t op2, svint8_t op3)
4642//
4743svint16_t test_svaba_s16 (svint16_t op1 , svint16_t op2 , svint16_t op3 )
4844{
49- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
50- // expected-warning@+1 {{call to undeclared function 'svaba_s16'; ISO C99 and later do not support implicit function declarations}}
5145 return SVE_ACLE_FUNC (svaba ,_s16 ,,)(op1 , op2 , op3 );
5246}
5347
@@ -63,8 +57,6 @@ svint16_t test_svaba_s16(svint16_t op1, svint16_t op2, svint16_t op3)
6357//
6458svint32_t test_svaba_s32 (svint32_t op1 , svint32_t op2 , svint32_t op3 )
6559{
66- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
67- // expected-warning@+1 {{call to undeclared function 'svaba_s32'; ISO C99 and later do not support implicit function declarations}}
6860 return SVE_ACLE_FUNC (svaba ,_s32 ,,)(op1 , op2 , op3 );
6961}
7062
@@ -80,8 +72,6 @@ svint32_t test_svaba_s32(svint32_t op1, svint32_t op2, svint32_t op3)
8072//
8173svint64_t test_svaba_s64 (svint64_t op1 , svint64_t op2 , svint64_t op3 )
8274{
83- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
84- // expected-warning@+1 {{call to undeclared function 'svaba_s64'; ISO C99 and later do not support implicit function declarations}}
8575 return SVE_ACLE_FUNC (svaba ,_s64 ,,)(op1 , op2 , op3 );
8676}
8777
@@ -97,8 +87,6 @@ svint64_t test_svaba_s64(svint64_t op1, svint64_t op2, svint64_t op3)
9787//
9888svuint8_t test_svaba_u8 (svuint8_t op1 , svuint8_t op2 , svuint8_t op3 )
9989{
100- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
101- // expected-warning@+1 {{call to undeclared function 'svaba_u8'; ISO C99 and later do not support implicit function declarations}}
10290 return SVE_ACLE_FUNC (svaba ,_u8 ,,)(op1 , op2 , op3 );
10391}
10492
@@ -114,8 +102,6 @@ svuint8_t test_svaba_u8(svuint8_t op1, svuint8_t op2, svuint8_t op3)
114102//
115103svuint16_t test_svaba_u16 (svuint16_t op1 , svuint16_t op2 , svuint16_t op3 )
116104{
117- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
118- // expected-warning@+1 {{call to undeclared function 'svaba_u16'; ISO C99 and later do not support implicit function declarations}}
119105 return SVE_ACLE_FUNC (svaba ,_u16 ,,)(op1 , op2 , op3 );
120106}
121107
@@ -131,8 +117,6 @@ svuint16_t test_svaba_u16(svuint16_t op1, svuint16_t op2, svuint16_t op3)
131117//
132118svuint32_t test_svaba_u32 (svuint32_t op1 , svuint32_t op2 , svuint32_t op3 )
133119{
134- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
135- // expected-warning@+1 {{call to undeclared function 'svaba_u32'; ISO C99 and later do not support implicit function declarations}}
136120 return SVE_ACLE_FUNC (svaba ,_u32 ,,)(op1 , op2 , op3 );
137121}
138122
@@ -148,8 +132,6 @@ svuint32_t test_svaba_u32(svuint32_t op1, svuint32_t op2, svuint32_t op3)
148132//
149133svuint64_t test_svaba_u64 (svuint64_t op1 , svuint64_t op2 , svuint64_t op3 )
150134{
151- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
152- // expected-warning@+1 {{call to undeclared function 'svaba_u64'; ISO C99 and later do not support implicit function declarations}}
153135 return SVE_ACLE_FUNC (svaba ,_u64 ,,)(op1 , op2 , op3 );
154136}
155137
@@ -169,8 +151,6 @@ svuint64_t test_svaba_u64(svuint64_t op1, svuint64_t op2, svuint64_t op3)
169151//
170152svint8_t test_svaba_n_s8 (svint8_t op1 , svint8_t op2 , int8_t op3 )
171153{
172- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
173- // expected-warning@+1 {{call to undeclared function 'svaba_n_s8'; ISO C99 and later do not support implicit function declarations}}
174154 return SVE_ACLE_FUNC (svaba ,_n_s8 ,,)(op1 , op2 , op3 );
175155}
176156
@@ -190,8 +170,6 @@ svint8_t test_svaba_n_s8(svint8_t op1, svint8_t op2, int8_t op3)
190170//
191171svint16_t test_svaba_n_s16 (svint16_t op1 , svint16_t op2 , int16_t op3 )
192172{
193- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
194- // expected-warning@+1 {{call to undeclared function 'svaba_n_s16'; ISO C99 and later do not support implicit function declarations}}
195173 return SVE_ACLE_FUNC (svaba ,_n_s16 ,,)(op1 , op2 , op3 );
196174}
197175
@@ -211,8 +189,6 @@ svint16_t test_svaba_n_s16(svint16_t op1, svint16_t op2, int16_t op3)
211189//
212190svint32_t test_svaba_n_s32 (svint32_t op1 , svint32_t op2 , int32_t op3 )
213191{
214- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
215- // expected-warning@+1 {{call to undeclared function 'svaba_n_s32'; ISO C99 and later do not support implicit function declarations}}
216192 return SVE_ACLE_FUNC (svaba ,_n_s32 ,,)(op1 , op2 , op3 );
217193}
218194
@@ -232,8 +208,6 @@ svint32_t test_svaba_n_s32(svint32_t op1, svint32_t op2, int32_t op3)
232208//
233209svint64_t test_svaba_n_s64 (svint64_t op1 , svint64_t op2 , int64_t op3 )
234210{
235- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
236- // expected-warning@+1 {{call to undeclared function 'svaba_n_s64'; ISO C99 and later do not support implicit function declarations}}
237211 return SVE_ACLE_FUNC (svaba ,_n_s64 ,,)(op1 , op2 , op3 );
238212}
239213
@@ -253,8 +227,6 @@ svint64_t test_svaba_n_s64(svint64_t op1, svint64_t op2, int64_t op3)
253227//
254228svuint8_t test_svaba_n_u8 (svuint8_t op1 , svuint8_t op2 , uint8_t op3 )
255229{
256- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
257- // expected-warning@+1 {{call to undeclared function 'svaba_n_u8'; ISO C99 and later do not support implicit function declarations}}
258230 return SVE_ACLE_FUNC (svaba ,_n_u8 ,,)(op1 , op2 , op3 );
259231}
260232
@@ -274,8 +246,6 @@ svuint8_t test_svaba_n_u8(svuint8_t op1, svuint8_t op2, uint8_t op3)
274246//
275247svuint16_t test_svaba_n_u16 (svuint16_t op1 , svuint16_t op2 , uint16_t op3 )
276248{
277- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
278- // expected-warning@+1 {{call to undeclared function 'svaba_n_u16'; ISO C99 and later do not support implicit function declarations}}
279249 return SVE_ACLE_FUNC (svaba ,_n_u16 ,,)(op1 , op2 , op3 );
280250}
281251
@@ -295,8 +265,6 @@ svuint16_t test_svaba_n_u16(svuint16_t op1, svuint16_t op2, uint16_t op3)
295265//
296266svuint32_t test_svaba_n_u32 (svuint32_t op1 , svuint32_t op2 , uint32_t op3 )
297267{
298- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
299- // expected-warning@+1 {{call to undeclared function 'svaba_n_u32'; ISO C99 and later do not support implicit function declarations}}
300268 return SVE_ACLE_FUNC (svaba ,_n_u32 ,,)(op1 , op2 , op3 );
301269}
302270
@@ -316,7 +284,5 @@ svuint32_t test_svaba_n_u32(svuint32_t op1, svuint32_t op2, uint32_t op3)
316284//
317285svuint64_t test_svaba_n_u64 (svuint64_t op1 , svuint64_t op2 , uint64_t op3 )
318286{
319- // overload-warning@+2 {{call to undeclared function 'svaba'; ISO C99 and later do not support implicit function declarations}}
320- // expected-warning@+1 {{call to undeclared function 'svaba_n_u64'; ISO C99 and later do not support implicit function declarations}}
321287 return SVE_ACLE_FUNC (svaba ,_n_u64 ,,)(op1 , op2 , op3 );
322288}
0 commit comments