Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv -mabi=lp64d -w -O0" { target rv64 } } */
3 /* { dg-options "-march=rv32gcv -mabi=ilp32 -w -O0" { target rv32 } } */
4
5
6 typedef int a;
7 typedef signed char b;
8 typedef char c;
9 typedef short d;
10 typedef unsigned short e;
11 typedef a f;
12 typedef unsigned g;
13 typedef long h;
14 h j, k, l, m, n, o;
15 int p, q, r, s;
16 short t;
17 volatile a u;
18 a v[];
19 char w, x;
20 a *y, *z;
21 a **aa;
22 __attribute__((always_inline)) b __attribute__((vector_size(16)))
23 ab(f __attribute__((vector_size(8 * sizeof(f)))), d ac,
24 d __attribute__((vector_size(2 * sizeof(d)))), d) {
25 return __builtin_shufflevector(
26 (b __attribute__((vector_size(16)))) __builtin_convertvector(
27 (d __attribute__((vector_size(16 *sizeof(d))))){
28 ac, ac, ac, ac, ac, ac, ac, ac, ac, ac, ac, ac, ac},
29 c __attribute__((vector_size(16)))) |
30 __builtin_convertvector(
31 (d __attribute__((vector_size(16 *sizeof(d))))){
32 ac, ac, ac, ac, ac, ac, ac, ac, ac, ac, ac, ac, ac},
33 c __attribute__((vector_size(16)))),
34 __builtin_convertvector(
35 (d __attribute__((vector_size(16 *sizeof(d))))){
36 ac, ac, ac, ac, ac, ac, ac, ac, ac, ac, ac, ac, ac},
37 b __attribute__((vector_size(16)))),
38 3, 21, 0, 2, 2, 7, 1, 8, 4, 0, 8, 0, 8, 9, 5, 6);
39 }
40 __attribute__((always_inline)) g
41 ad(d ae, h __attribute__((vector_size(32 * sizeof(h))))) {
42 g f = 6318;
43 return (8 ? ae / 786856318u : 0) & ae;
44 }
45 a(af)(a, int);
46 void(ag)(long);
47 char(ah)(char, char);
48 char(ai)(char);
49 short(aj)(short, short);
50 int ak(long, int *, int *, char, int);
51 void al(signed, a *, int *, long);
52 char am(int *, short, short);
53 void an(int *, long, int);
54 void ao(int, int *, a *);
55 a ap() {
56 int *aq, *ar, *as;
57 short at;
58 char au, av, aw = 2;
59 long ax, ay, az = j;
60 int ba, i;
61 g __attribute__((vector_size(16 * sizeof(g)))) bb = {80};
62 b __attribute__((vector_size(4))) bc = {6};
63 int bd[1];
64 char *be = &w;
65 int bf, bg = q;
66 a **bh[] = {
67 &y, &z, &z, &y, &y, &y, &y, &y, &z, &z, &y, &z, &y, &y, &y, &y, &z, &y,
68 &z, &y, &y, &y, &z, &z, &z, &y, &z, &z, &z, &y, &z, &z, &y, &z, &z, &y,
69 &z, &z, &z, &y, 0, &z, 0, &y, 0, &y, &y, &z, &z, &y, &y, 0, &z, 0,
70 &z, 0, &y, &z, &z, 0, &z, 0, &z, &z, &z, &y, &z, &z, &y, &z, &z, &y,
71 0, &z, 0, &z, &z, &y, 0, &z, 0, &y, 0, &y, &y, &z, &z, &y, &y, 0,
72 &z, 0, &z, 0, &y, &z, &z, 0, &z, 0, &z, &z, &z, &y, &z, &z, &y, &z,
73 &z, &y, 0, &z, 0, &z, &z, &y, 0, &z, 0, &y, 0, &y, &y, &z, &z, &y,
74 &y, 0, &z, 0, &z, 0, &y, &z, &z, 0, &z, 0, &z, &z, &z, &y, &z, &z,
75 &y, &z, &z, &y, 0, &z, 0, &z, &z, &y, 0, &z, 0, &y, 0, &y, &y, &z,
76 &z, &y, &y, 0, &z, 0, &z, 0, &y, &z, &z, 0, 0, &z, 0, &z, &z, &z,
77 &y, &z, &z, &y, &z, &z, &y, 0, &z, 0, 0, &z, &z};
78 for (; i; i++)
79 bd[i] = p;
80 h __attribute__((vector_size(32 * sizeof(h))))
81 bi = {2681, 2681, 2681, 2681, 2681, 2681, 2681, 2681, 2681, 2681, 2681,
82 2681, 2681, 2681, 2681, 2681, 2681, 2681, 2681, 2681, 2681, 2681,
83 2681, 2681, 2681, 2681, 2681, 2681, 2681, 2681, 2681, 2681},
84 bj = __builtin_convertvector(
85 (c __attribute__((vector_size(32)))){
86 aw, aw, aw, aw, aw, aw, aw, aw, aw, aw, aw, aw, aw, aw, aw, aw,
87 aw, aw, aw, aw, aw, aw, aw, aw, aw, aw, aw, aw, aw, aw, aw, aw},
88 h __attribute__((vector_size(32 * sizeof(h))))),
89 bk = __builtin_convertvector(
90 __builtin_shufflevector(bb, bb, 4, 8, 7, 9, 1, 10, 4, 7, 0, 4, 3, 5, 6, 7,
91 6, 2, 2, 20, 6, 4, 7, 7, 9, 7, 4, 9, 8, 6, 1, 0,
92 6, 9),
93 h __attribute__((vector_size(32 * sizeof(h)))));
94 bb = __builtin_convertvector(
95 ab(__builtin_shufflevector(
96 __builtin_shufflevector(
97 __builtin_convertvector(
98 __builtin_shufflevector(bb, bb, 1, 31, 8, 2, 3, 7, 4, 0, 7,
99 3, 4, 6, 7, 1, 9, 3, 8, 7, 1, 8, 5,
100 3, 9, 9, 0, 3, 2, 8, 5, 2, 5, 3),
101 f __attribute__((vector_size(32 * sizeof(f))))),
102 (f __attribute__((vector_size(32 * sizeof(f))))){
103 800761418310502961587690471176286910032020044212442466872080013589354162852207417903424527024812447907811618435019152886919380169872910001752451018659493155196043018716516518746289614523948734758456011127254301274351182132760058399143431214610613191313926994549901191890929084305862034120561651877003645},
104 32, 44),
105 (f __attribute__((vector_size(2 * sizeof(f))))){o}, 1, 0, 3, 0, 2,
106 1, 3, 3),
107 ad(__builtin_clzg((g)aw, (f)bb[9]),
108 (h __attribute__((vector_size(32 * sizeof(h))))){
109 bi[0] ?: bk[0], bi[1] ? 1 : bk[1], bi[2] ? 2 : bk[2],
110 bi[3] ? 3 : bk[3], bi[4] ? 4 : bk[4], bi[5] ? 5 : bk[5],
111 bi[6] ? 6 : bk[6], bi[7] ? 7 : bk[7], bi[8] ? 8 : bk[8],
112 bi[9] ? 9 : bk[9], bi[0] ? 10 : bk[0], bi[1] ? 1 : bk[1],
113 bi[2] ? 2 : bk[2], bi[3] ? 3 : bk[3], bi[4] ? 4 : bk[4],
114 bi[5] ? 5 : bk[5], bi[6] ? 6 : bk[6], bi[7] ? 7 : bk[7],
115 bi[8] ? 8 : bk[8], bi[9] ? 9 : bk[9], bi[0] ? 20 : bk[0],
116 bi[1] ? 1 : bk[1], bi[2] ? 2 : bk[2], bi[3] ? 3 : bk[3],
117 bi[4] ? bj[4] : 4, bi[5] ?: 5, bi[6] ?: 6,
118 bi[7] ? 0 : 7, bi[8] ?: 8, bi[9] ? 0 : 9,
119 bi[0] ? 0 : 30, bi[1] ?: 1}),
120 (d __attribute__((vector_size(2 * sizeof(d)))))
121 __builtin_shufflevector(
122 __builtin_convertvector(
123 __builtin_shufflevector(bb, bb, 2, 7, 21, 6),
124 e __attribute__((vector_size(4 * sizeof(e))))),
125 __builtin_convertvector(
126 (c __attribute__((vector_size(4)))){aw, aw},
127 e __attribute__((vector_size(4 * sizeof(e))))),
128 5, 1) +
129 (__builtin_convertvector(
130 __builtin_shufflevector(bb, bb, 4, 5),
131 e __attribute__((vector_size(2 * sizeof(e))))) <=
132 __builtin_convertvector(
133 (c __attribute__((vector_size(2)))){aw},
134 e __attribute__((vector_size(2 * sizeof(e)))))),
135 n ? bb[5] << n : aw),
136 g __attribute__((vector_size(16 * sizeof(g)))));
137 ag(aw & t);
138 at = aj(aw, v[1]);
139 au = ah(at, aw);
140 ba = af((1 == ax != aw) <= aw <= au, aw);
141 ao(0, &bd[0], &r);
142 o = ay;
143 an(aq, aw, k);
144 av = am(ar, l, k);
145 *be = ai(*be);
146 al(x, as, &bd[0], aw);
147 bg = ak(u, &s, &bf, aw, aw);
148 as = *aa;
149 return m;
150 }