Debian Codegraph @

gcc/testsuite/gcc.target/riscv/zicond-ice-4.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gc_zicond -mabi=lp64d" { target { rv64 } } } */
3 /* { dg-options "-march=rv32gc_zicond -mabi=ilp32d" { target { rv32 } } } */
4
5 short a, c;
6 int b, d, i;
7 volatile char e;
8 static int f[] = {1, 1};
9 long g;
10 int volatile h;
11 short(j)() { return b ? a : 0; }
12 void k() {
13 l:
14 h;
15 g = 0;
16 for (; g <= 2; g++) {
17 d | ((i || j() & (0 == f[g])) ^ i) && e;
18 if (c)
19 goto l;
20 }
21 }
22