Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv32gcv -mabi=ilp32d -O3 -fno-vect-cost-model -std=gnu17" } */
3
4 struct a {
5 int b;
6 int c : 1;
7 int : 1;
8 } d();
9 typedef struct
10 {
11 int e;
12 struct {
13 int f;
14 };
15 } g;
16 int i;
17 char k, l, n;
18 void *m;
19 char *o;
20 void h();
21 char *j();
22 void p(int buf, __builtin_va_list ab, int q) {
23 do {
24 void *r[] = {&&s, &&t, &&u, &&v, &&w};
25 int c;
26 goto *m;
27 s:
28 c = 1;
29 while (1) {
30 t:
31 u:
32 ae:
33 void *af = __builtin_va_arg(ab, void *);
34 h(p);
35 o = j(i);
36 if (o == 0)
37 goto ae;
38 l = 'S';
39 break;
40 v:
41 g ah;
42 __builtin_memset(&ah, '\0', sizeof(g));
43 h(n, __builtin_va_arg(ab, int), &ah);
44 break;
45 w:
46 if (__builtin_expect(q, 0))
47 c = 0;
48 struct a ai = {'S', c};
49 d(buf, ai, af);
50 }
51 } while (k);
52 }
53
54 /* { dg-final { scan-assembler-times {vsetivli\tzero,\s*8,\s*e8,\s*mf2,\s*t[au],\s*m[au]} 1 } } */