gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-4.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-march=rv64gcv -mabi=lp64d" } */ |
| 3 | |
| 4 | #include <stdint-gcc.h> |
| 5 | |
| 6 | typedef int64_t vnx8di __attribute__ ((vector_size (64))); |
| 7 | |
| 8 | __attribute__ ((noipa)) void |
| 9 | f_vnx8di (int64_t a, int64_t b, int64_t c, int64_t d, int64_t *out) |
| 10 | { |
| 11 | vnx8di v = {a, b, c, d, a, b, c, d}; |
| 12 | *(vnx8di *) out = v; |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-assembler-times {vslide1down\.vx\tv[0-9]+,\s*v[0-9]+,\s*[a-x0-9]+} 7 } } */ |