Debian Codegraph @

gcc/testsuite/gcc.target/riscv/core_bench_list.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-rtl-ext_dce" } */
3 /* { dg-final { scan-rtl-dump {Successfully transformed} "ext_dce" } } */
4
5 short
6 core_bench_list (int N) {
7
8 short a = 0;
9 for (int i = 0; i < 4; i++) {
10 if (i > N) {
11 a++;
12 }
13 }
14 return a * 4;
15 }