Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/dup_neonq_1.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-march=armv8.2-a+sve -std=c99 -Wall -Wextra" } */
3
4 #include <arm_neon_sve_bridge.h>
5
6 float64x2_t
7 f1 (int8x16_t s8, svint8_t sveS8, int64x2_t s64, int8x8x2_t s8x2)
8 {
9 float64x2_t f64;
10
11 sveS8 = svdup_neonq (s8);
12 sveS8 = svdup_neonq (); /* { dg-error {too few arguments to function 'svdup_neonq'} } */
13 sveS8 = svdup_neonq (s8, 1); /* { dg-error {too many arguments to function 'svdup_neonq'} } */
14 sveS8 = svdup_neonq (sveS8); /* { dg-error {passing 'svint8_t' to argument 1 of 'svdup_neonq', which expects a 128 bit NEON vector type} } */
15 f64 = svdup_neonq (s8); /* { dg-error {incompatible types when assigning to type 'float64x2_t' from type 'svint8_t'} } */
16 sveS8 = svdup_neonq (s8x2); /* { dg-error {passing 'int8x8x2_t' to argument 1 of 'svdup_neonq', which expects a 128 bit NEON vector type} } */
17 sveS8 = svdup_neonq (s64); /* { dg-error {incompatible types when assigning to type 'svint8_t' from type 'svint64_t'} } */
18
19 return f64;
20 }