Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/vsetvl/avl_prop-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mrvv-vector-bits=scalable -march=rv64gc_zve32f -mabi=lp64d -O3 -mrvv-vector-bits=zvl" } */
3
4 int d0, sj, v0, rp, zi;
5
6 void
7 zn(void)
8 {
9 if (v0 != 0)
10 {
11 int *js, *r3;
12 int pm, gc;
13
14 for (gc = 0; gc < 1; ++gc)
15 {
16 sj = 1;
17 while (sj != 0)
18 ;
19 }
20 r3 = &pm;
21 *js = (long)&gc;
22 ka:
23 for (d0 = 0; d0 < 2; ++d0)
24 {
25 d0 = zi;
26 if (zi)
27 for (pm = 2; pm != 0; --pm)
28 ;
29 }
30 while (*r3 != 0)
31 {
32 while (pm)
33 ;
34 ++r3;
35 }
36 }
37 rp = 0;
38 goto ka;
39 }
40
41 /* { dg-final { scan-assembler-times {vsetivli\tzero,\s*1} 2 } } */