gcc/testsuite/gcc.target/aarch64/vec-init-19.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3" } */ |
| 3 | |
| 4 | #include <arm_neon.h> |
| 5 | |
| 6 | int8x16_t f_s8(int8_t x) |
| 7 | { |
| 8 | return (int8x16_t) { x, 1, x, 2, x, 3, x, 4, |
| 9 | x, 5, x, 6, x, 7, x, 8 }; |
| 10 | } |
| 11 | |
| 12 | /* { dg-final { scan-assembler {\tdup\tv[0-9]+\.8b, w[0-9]+} } } */ |
| 13 | /* { dg-final { scan-assembler {\tldr\td[0-9]+,} } } */ |
| 14 | /* { dg-final { scan-assembler {\tzip1\tv[0-9]+\.16b, v[0-9]+\.16b, v[0-9]+\.16b} } } */ |