gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112999.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-march=rv64gcv_zvl512b -mabi=lp64d -mrvv-max-lmul=m8 -mrvv-vector-bits=zvl -O3 -fno-vect-cost-model -fno-tree-loop-distribute-patterns" } */ |
| 3 | |
| 4 | int a[1024]; |
| 5 | int b[1024]; |
| 6 | |
| 7 | _Bool |
| 8 | fn1 () |
| 9 | { |
| 10 | _Bool tem; |
| 11 | for (int i = 0; i < 1024; ++i) |
| 12 | { |
| 13 | tem = !a[i]; |
| 14 | b[i] = tem; |
| 15 | } |
| 16 | return tem; |
| 17 | } |