gcc/testsuite/gcc.target/riscv/rvv/base/vf_avl-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -march=rv32gcv -mabi=ilp32d -mrvv-vector-bits=zvl" } */ |
| 3 | |
| 4 | #include <stdint-gcc.h> |
| 5 | |
| 6 | typedef int8_t vnx2qi __attribute__ ((vector_size (2))); |
| 7 | |
| 8 | __attribute__ ((noipa)) void |
| 9 | f_vnx2qi (int8_t a, int8_t b, int8_t *out) |
| 10 | { |
| 11 | vnx2qi v = {a, b}; |
| 12 | *(vnx2qi *) out = v; |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-assembler {vsetivli\s+zero,\s*2,\s*e8,\s*mf8,\s*t[au],\s*m[au]} } } */ |