diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/aarch64/sve_dup_lane_1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/sve_dup_lane_1.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/gcc/testsuite/gcc.target/aarch64/sve_dup_lane_1.c b/gcc/testsuite/gcc.target/aarch64/sve_dup_lane_1.c index d4de247b05e..ea977207226 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve_dup_lane_1.c +++ b/gcc/testsuite/gcc.target/aarch64/sve_dup_lane_1.c @@ -1,12 +1,15 @@ /* { dg-do compile } */ /* { dg-options "-O -march=armv8-a+sve -msve-vector-bits=256" } */ -typedef long v4di __attribute__((vector_size (32))); -typedef int v8si __attribute__((vector_size (32))); -typedef short v16hi __attribute__((vector_size (32))); -typedef char v32qi __attribute__((vector_size (32))); +#include <stdint.h> + +typedef int64_t v4di __attribute__((vector_size (32))); +typedef int32_t v8si __attribute__((vector_size (32))); +typedef int16_t v16hi __attribute__((vector_size (32))); +typedef int8_t v32qi __attribute__((vector_size (32))); typedef double v4df __attribute__((vector_size (32))); typedef float v8sf __attribute__((vector_size (32))); +typedef _Float16 v16hf __attribute__((vector_size (32))); #define MASK_2(X) X, X #define MASK_4(X) MASK_2 (X), MASK_2 (X) @@ -44,7 +47,10 @@ typedef float v8sf __attribute__((vector_size (32))); T (v4df, 4, 3) \ T (v8sf, 8, 0) \ T (v8sf, 8, 5) \ - T (v8sf, 8, 7) + T (v8sf, 8, 7) \ + T (v16hf, 16, 0) \ + T (v16hf, 16, 6) \ + T (v16hf, 16, 15) \ TEST_ALL (DUP_LANE) @@ -56,9 +62,9 @@ TEST_ALL (DUP_LANE) /* { dg-final { scan-assembler-times {\tdup\tz[0-9]+\.s, z[0-9]+\.s\[0\]} 2 } } */ /* { dg-final { scan-assembler-times {\tdup\tz[0-9]+\.s, z[0-9]+\.s\[5\]} 2 } } */ /* { dg-final { scan-assembler-times {\tdup\tz[0-9]+\.s, z[0-9]+\.s\[7\]} 2 } } */ -/* { dg-final { scan-assembler-times {\tdup\tz[0-9]+\.h, z[0-9]+\.h\[0\]} 1 } } */ -/* { dg-final { scan-assembler-times {\tdup\tz[0-9]+\.h, z[0-9]+\.h\[6\]} 1 } } */ -/* { dg-final { scan-assembler-times {\tdup\tz[0-9]+\.h, z[0-9]+\.h\[15\]} 1 } } */ +/* { dg-final { scan-assembler-times {\tdup\tz[0-9]+\.h, z[0-9]+\.h\[0\]} 2 } } */ +/* { dg-final { scan-assembler-times {\tdup\tz[0-9]+\.h, z[0-9]+\.h\[6\]} 2 } } */ +/* { dg-final { scan-assembler-times {\tdup\tz[0-9]+\.h, z[0-9]+\.h\[15\]} 2 } } */ /* { dg-final { scan-assembler-times {\tdup\tz[0-9]+\.b, z[0-9]+\.b\[0\]} 1 } } */ /* { dg-final { scan-assembler-times {\tdup\tz[0-9]+\.b, z[0-9]+\.b\[19\]} 1 } } */ /* { dg-final { scan-assembler-times {\tdup\tz[0-9]+\.b, z[0-9]+\.b\[31\]} 1 } } */ |