Expand Up
@@ -3,8 +3,8 @@
// 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
// 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
// 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
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -fsyntax-only -std=c99 -verify -verify-ignore-unexpected=error %s
// RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -fsyntax-only -std=c99 -verify=overload -verify-ignore-unexpected=error %s
// 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
// 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
// REQUIRES: aarch64-registered-target
Expand All
@@ -29,8 +29,8 @@
//
svint8_t test_svaddp_s8_m (svbool_t pg , svint8_t op1 , svint8_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_m'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_s8_m'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_m'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_s8_m'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_s8 ,_m , )(pg , op1 , op2 );
}
Expand All
@@ -48,8 +48,8 @@ svint8_t test_svaddp_s8_m(svbool_t pg, svint8_t op1, svint8_t op2)
//
svint16_t test_svaddp_s16_m (svbool_t pg , svint16_t op1 , svint16_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_m'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_s16_m'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_m'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_s16_m'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_s16 ,_m , )(pg , op1 , op2 );
}
Expand All
@@ -67,8 +67,8 @@ svint16_t test_svaddp_s16_m(svbool_t pg, svint16_t op1, svint16_t op2)
//
svint32_t test_svaddp_s32_m (svbool_t pg , svint32_t op1 , svint32_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_m'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_s32_m'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_m'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_s32_m'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_s32 ,_m , )(pg , op1 , op2 );
}
Expand All
@@ -86,8 +86,8 @@ svint32_t test_svaddp_s32_m(svbool_t pg, svint32_t op1, svint32_t op2)
//
svint64_t test_svaddp_s64_m (svbool_t pg , svint64_t op1 , svint64_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_m'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_s64_m'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_m'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_s64_m'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_s64 ,_m , )(pg , op1 , op2 );
}
Expand All
@@ -103,8 +103,8 @@ svint64_t test_svaddp_s64_m(svbool_t pg, svint64_t op1, svint64_t op2)
//
svuint8_t test_svaddp_u8_m (svbool_t pg , svuint8_t op1 , svuint8_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_m'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_u8_m'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_m'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_u8_m'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_u8 ,_m , )(pg , op1 , op2 );
}
Expand All
@@ -122,8 +122,8 @@ svuint8_t test_svaddp_u8_m(svbool_t pg, svuint8_t op1, svuint8_t op2)
//
svuint16_t test_svaddp_u16_m (svbool_t pg , svuint16_t op1 , svuint16_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_m'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_u16_m'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_m'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_u16_m'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_u16 ,_m , )(pg , op1 , op2 );
}
Expand All
@@ -141,8 +141,8 @@ svuint16_t test_svaddp_u16_m(svbool_t pg, svuint16_t op1, svuint16_t op2)
//
svuint32_t test_svaddp_u32_m (svbool_t pg , svuint32_t op1 , svuint32_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_m'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_u32_m'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_m'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_u32_m'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_u32 ,_m , )(pg , op1 , op2 );
}
Expand All
@@ -160,8 +160,8 @@ svuint32_t test_svaddp_u32_m(svbool_t pg, svuint32_t op1, svuint32_t op2)
//
svuint64_t test_svaddp_u64_m (svbool_t pg , svuint64_t op1 , svuint64_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_m'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_u64_m'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_m'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_u64_m'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_u64 ,_m , )(pg , op1 , op2 );
}
Expand All
@@ -177,8 +177,8 @@ svuint64_t test_svaddp_u64_m(svbool_t pg, svuint64_t op1, svuint64_t op2)
//
svint8_t test_svaddp_s8_x (svbool_t pg , svint8_t op1 , svint8_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_x'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_s8_x'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_x'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_s8_x'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_s8 ,_x , )(pg , op1 , op2 );
}
Expand All
@@ -196,8 +196,8 @@ svint8_t test_svaddp_s8_x(svbool_t pg, svint8_t op1, svint8_t op2)
//
svint16_t test_svaddp_s16_x (svbool_t pg , svint16_t op1 , svint16_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_x'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_s16_x'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_x'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_s16_x'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_s16 ,_x , )(pg , op1 , op2 );
}
Expand All
@@ -215,8 +215,8 @@ svint16_t test_svaddp_s16_x(svbool_t pg, svint16_t op1, svint16_t op2)
//
svint32_t test_svaddp_s32_x (svbool_t pg , svint32_t op1 , svint32_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_x'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_s32_x'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_x'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_s32_x'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_s32 ,_x , )(pg , op1 , op2 );
}
Expand All
@@ -234,8 +234,8 @@ svint32_t test_svaddp_s32_x(svbool_t pg, svint32_t op1, svint32_t op2)
//
svint64_t test_svaddp_s64_x (svbool_t pg , svint64_t op1 , svint64_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_x'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_s64_x'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_x'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_s64_x'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_s64 ,_x , )(pg , op1 , op2 );
}
Expand All
@@ -251,8 +251,8 @@ svint64_t test_svaddp_s64_x(svbool_t pg, svint64_t op1, svint64_t op2)
//
svuint8_t test_svaddp_u8_x (svbool_t pg , svuint8_t op1 , svuint8_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_x'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_u8_x'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_x'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_u8_x'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_u8 ,_x , )(pg , op1 , op2 );
}
Expand All
@@ -270,8 +270,8 @@ svuint8_t test_svaddp_u8_x(svbool_t pg, svuint8_t op1, svuint8_t op2)
//
svuint16_t test_svaddp_u16_x (svbool_t pg , svuint16_t op1 , svuint16_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_x'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_u16_x'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_x'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_u16_x'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_u16 ,_x , )(pg , op1 , op2 );
}
Expand All
@@ -289,8 +289,8 @@ svuint16_t test_svaddp_u16_x(svbool_t pg, svuint16_t op1, svuint16_t op2)
//
svuint32_t test_svaddp_u32_x (svbool_t pg , svuint32_t op1 , svuint32_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_x'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_u32_x'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_x'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_u32_x'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_u32 ,_x , )(pg , op1 , op2 );
}
Expand All
@@ -308,8 +308,8 @@ svuint32_t test_svaddp_u32_x(svbool_t pg, svuint32_t op1, svuint32_t op2)
//
svuint64_t test_svaddp_u64_x (svbool_t pg , svuint64_t op1 , svuint64_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_x'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_u64_x'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_x'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_u64_x'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_u64 ,_x , )(pg , op1 , op2 );
}
Expand All
@@ -327,8 +327,8 @@ svuint64_t test_svaddp_u64_x(svbool_t pg, svuint64_t op1, svuint64_t op2)
//
svfloat16_t test_svaddp_f16_m (svbool_t pg , svfloat16_t op1 , svfloat16_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_m'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_f16_m'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_m'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_f16_m'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_f16 ,_m , )(pg , op1 , op2 );
}
Expand All
@@ -346,8 +346,8 @@ svfloat16_t test_svaddp_f16_m(svbool_t pg, svfloat16_t op1, svfloat16_t op2)
//
svfloat32_t test_svaddp_f32_m (svbool_t pg , svfloat32_t op1 , svfloat32_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_m'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_f32_m'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_m'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_f32_m'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_f32 ,_m , )(pg , op1 , op2 );
}
Expand All
@@ -365,8 +365,8 @@ svfloat32_t test_svaddp_f32_m(svbool_t pg, svfloat32_t op1, svfloat32_t op2)
//
svfloat64_t test_svaddp_f64_m (svbool_t pg , svfloat64_t op1 , svfloat64_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_m'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_f64_m'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_m'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_f64_m'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_f64 ,_m , )(pg , op1 , op2 );
}
Expand All
@@ -384,8 +384,8 @@ svfloat64_t test_svaddp_f64_m(svbool_t pg, svfloat64_t op1, svfloat64_t op2)
//
svfloat16_t test_svaddp_f16_x (svbool_t pg , svfloat16_t op1 , svfloat16_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_x'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_f16_x'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_x'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_f16_x'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_f16 ,_x , )(pg , op1 , op2 );
}
Expand All
@@ -403,8 +403,8 @@ svfloat16_t test_svaddp_f16_x(svbool_t pg, svfloat16_t op1, svfloat16_t op2)
//
svfloat32_t test_svaddp_f32_x (svbool_t pg , svfloat32_t op1 , svfloat32_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_x'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_f32_x'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_x'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_f32_x'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_f32 ,_x , )(pg , op1 , op2 );
}
Expand All
@@ -422,7 +422,7 @@ svfloat32_t test_svaddp_f32_x(svbool_t pg, svfloat32_t op1, svfloat32_t op2)
//
svfloat64_t test_svaddp_f64_x (svbool_t pg , svfloat64_t op1 , svfloat64_t op2 )
{
// overload-warning@+2 {{implicit declaration of function 'svaddp_x'}}
// expected-warning@+1 {{implicit declaration of function 'svaddp_f64_x'}}
// overload-warning@+2 {{call to undeclared function 'svaddp_x'; ISO C99 and later do not support implicit function declarations }}
// expected-warning@+1 {{call to undeclared function 'svaddp_f64_x'; ISO C99 and later do not support implicit function declarations }}
return SVE_ACLE_FUNC (svaddp ,_f64 ,_x , )(pg , op1 , op2 );
}