Debian Codegraph @

gcc/testsuite/g++.target/aarch64/sve/acle/general-c++/create4_2.C

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-Wall -Wextra" } */
3
4 #include <arm_sve.h>
5
6 void
7 f1 (svint32x4_t *ptr, svbool_t pg, svint32_t s32, svfloat64_t f64,
8 svint32x4_t s32x4)
9 {
10 *ptr = svcreate4_s32 (s32); /* { dg-error {too few arguments to function '[^']*'} } */
11 *ptr = svcreate4_s32 (s32, s32); /* { dg-error {too few arguments to function '[^']*'} } */
12 *ptr = svcreate4_s32 (s32, s32, s32); /* { dg-error {too few arguments to function '[^']*'} } */
13 *ptr = svcreate4_s32 (s32, s32, s32, s32, s32); /* { dg-error {too many arguments to function '[^']*'} } */
14 *ptr = svcreate4_s32 (s32x4, s32x4, s32x4, s32x4); /* { dg-error {cannot convert 'svint32x4_t' to 'svint32_t'} } */
15 *ptr = svcreate4_s32 (s32, s32, s32, f64); /* { dg-error {cannot convert 'svfloat64_t' to 'svint32_t'} } */
16 *ptr = svcreate4_s32 (s32, pg, s32, s32); /* { dg-error {cannot convert 'svbool_t' to 'svint32_t'} } */
17 *ptr = svcreate4_s32 (s32, s32, s32, s32);
18 *ptr = svcreate4_f64 (f64, f64, f64, f64); /* { dg-error {cannot convert 'svfloat64x4_t' to 'svint32x4_t' in assignment} } */
19 }