Debian Codegraph @

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

raw
1 /* { dg-do run } */
2 /* { dg-require-effective-target riscv_v_ok } */
3 /* { dg-add-options riscv_v } */
4 /* { dg-additional-options "-std=gnu99 -Wno-pedantic" } */
5
6 long long a;
7 _Bool d;
8 char e;
9 _Bool f[17];
10 _Bool f_3;
11
12 int main() {
13 for (char g = 3; g < 16; g++) {
14 d |= ({
15 int h = f[g - 1] ? 2 : 0;
16 _Bool t;
17 if (f[g - 1])
18 t = f_3;
19 else
20 t = 0;
21 int i = t;
22 h > i;
23 });
24 e += f[g + 1];
25 }
26
27 if (d != 0)
28 __builtin_abort ();
29 }