Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/pr116059.c

raw
1 /* { dg-do run } */
2 /* { dg-require-effective-target riscv_v_ok } */
3 /* { dg-add-options riscv_v } */
4 /* { dg-additional-options "-O2 -std=gnu99" } */
5
6 char a;
7 _Bool b[11] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
8 int main() {
9 _Bool *c = b;
10 for (signed d = 0; d < 11; d += 1)
11 a = d % 2 == 0 ? c[d] / c[d]
12 : c[d];
13 if (a != 1)
14 __builtin_abort ();
15 }