gcc/testsuite/g++.target/aarch64/sve/acle/general-c++/gnu_vectors_4.C
raw| 1 | /* { dg-options "-msve-vector-bits=256 -flax-vector-conversions" } */ |
| 2 | |
| 3 | #include <arm_sve.h> |
| 4 | |
| 5 | typedef uint8_t gnu_uint8_t __attribute__ ((vector_size (32))); |
| 6 | typedef int8_t gnu_int8_t __attribute__ ((vector_size (32))); |
| 7 | |
| 8 | void |
| 9 | f (svuint8_t sve_u1, svint8_t sve_s1, |
| 10 | gnu_uint8_t gnu_u1, gnu_int8_t gnu_s1) |
| 11 | { |
| 12 | gnu_uint8_t arr1[] = { gnu_u1, sve_u1 }; |
| 13 | gnu_uint8_t arr2[] = { gnu_s1 }; |
| 14 | gnu_uint8_t arr3[] = { sve_s1 }; |
| 15 | } |