gcc/testsuite/gcc.target/riscv/rvv/base/movqi-1.c
raw| 1 | /* Test that we do not use QI vector to initilize the memory if the |
| 2 | * size of QI vector isn't larger than UNITS_PER_WORD */ |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-march=rv32gcv -mabi=ilp32 -O3" } */ |
| 5 | |
| 6 | struct s { |
| 7 | int a; |
| 8 | int b : 1; |
| 9 | }; |
| 10 | |
| 11 | void q(struct s*); |
| 12 | |
| 13 | void g() { |
| 14 | struct s r = { 15, 0 }; |
| 15 | q(&r); |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-assembler-times {sw\tzero,12\(sp\)} 1 } } */ |