Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/pr122627.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 signed char int8_t;
7 typedef short int16_t;
8 typedef int int32_t;
9 typedef long int64_t;
10 typedef char uint8_t;
11 typedef unsigned short uint16_t;
12 typedef unsigned long uint64_t;
13 uint64_t BS_CHECKSUM_ARR_7;
14 struct S0 {
15 unsigned f0 : 9;
16 signed : 26
17 } * g_108, g_148, g_150;
18 int32_t g_8[];
19 int32_t g_44, g_130_0;
20 uint16_t g_76_0;
21 int64_t g_158[];
22 int64_t g_158_1_0_3;
23 uint8_t *func_56_l_165;
24 __attribute__((always_inline)) int32_t
25 backsmith_snippet_544(int16_t __attribute__((vector_size(32 * sizeof(int16_t))))
26 BS_ARG_0) {
27 BS_ARG_0 = BS_ARG_0 =
28 (int16_t __attribute__((vector_size(32 * sizeof(int16_t))))) -
29 __builtin_convertvector(
30 (int16_t __attribute__((vector_size(32 *sizeof(int16_t))))){
31 ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3],
32 ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3],
33 ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3],
34 ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3],
35 ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3],
36 ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3],
37 ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3],
38 ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3], ~BS_ARG_0[3]},
39 uint16_t __attribute__((vector_size(32 * sizeof(uint16_t)))));
40 return ((union {
41 int16_t __attribute__((vector_size(2 * sizeof(int16_t)))) src;
42 int32_t dst
43 })__builtin_shufflevector(BS_ARG_0, BS_ARG_0, 43, 7))
44 .dst;
45 }
46 int8_t(safe_add_func_int8_t_s_s)(int8_t);
47 uint8_t(safe_lshift_func_uint8_t_u_s)(uint8_t);
48 unsigned safe_mul_func_uint32_t_u_u(int, int);
49 uint8_t func_56(uint64_t p_57, int32_t *, int8_t p_59, uint16_t p_60,
50 int32_t *p_61) {
51 int64_t __attribute__((vector_size(8 * sizeof(int64_t))))
52 BS_VAR_0 = {30330355581};
53 int8_t __attribute__((vector_size(2))) BS_VAR_1 = {7};
54 int64_t __attribute__((vector_size(32 * sizeof(int64_t)))) BS_VAR_2[33] = {};
55 int64_t BS_VAR_2_3_0;
56 int16_t __attribute__((vector_size(32 * sizeof(int16_t)))) BS_VAR_3 = {};
57 int volatile BS_COND_18 = BS_COND_18, BS_COND_19 = 2046083389,
58 BS_COND_20 = BS_COND_20;
59 int64_t __attribute__((vector_size(32 * sizeof(int64_t)))) BS_VAR_5 = {};
60 int16_t __attribute__((vector_size(sizeof(int16_t))))
61 BS_VAR_6 = {90173011178118114616913331460};
62 int64_t __attribute__((vector_size(16))) BS_VAR_7 = {20385270170872471};
63 switch (BS_COND_19)
64 case 4044:
65 case 6463:
66 case 7825:
67 case 40964:
68 case 71504:
69 case 50913903:
70 case 3624:
71 case 3379:
72 case 80451787:
73 case 4004383:
74 case 4133:
75 case 2098801:
76 case 2000071388:
77 case 400611:
78 case 4155:
79 case 6888:
80 case 3506:
81 case 9734:
82 case 100094276:
83 case 3121:
84 case 9659:
85 case 5892:
86 case 9507:
87 case 1067596166:
88 case 2099438381:
89 case 2406:
90 case 5442:
91 case 60746:
92 case 31236:
93 case 3574:
94 case 42025:
95 case 3315:
96 case 2096976873:
97 case 6082416:
98 case 909667:
99 case 5535:
100 case 2554:
101 case 31179:
102 case 2046083389:
103 case 7309:
104 case 4706:
105 case 6816:
106 case 7189:
107 case 3402:
108 case 706316781:
109 case 3570:
110 case 4376:
111 case 9698:
112 case 4190:
113 case 6195:
114 case 6714:
115 case 7540:
116 case 2145:
117 case 61108:
118 case 2442:
119 case 1049158:
120 case 60055:
121 case 4302:
122 break;
123 int64_t __attribute__((vector_size(2 * sizeof(int64_t))))
124 BS_VAR_8[] = {52623717371,
125 908827026188589,
126 3253451771131199467,
127 3253451771131199467,
128 8379,
129 1,
130 500143520836,
131 0,
132 5884817202404184392,
133 5884817202404184392,
134 (int64_t __attribute__((vector_size(2 * sizeof(int64_t))))){
135 8741271462101646089, 8741271462101646089}};
136 int BS_VAR_9 = 2177;
137 int64_t __attribute__((vector_size(32 * sizeof(int64_t)))) BS_VAR_10[37] = {};
138 int16_t __attribute__((vector_size(8 * sizeof(int16_t)))) BS_VAR_11[5] = {};
139 uint8_t __attribute__((vector_size(2))) BS_VAR_12 = {4};
140 uint64_t LOCAL_CHECKSUM = BS_CHECKSUM_ARR_7;
141 struct S0 **l_160 = &g_108;
142 int32_t l_161 = 3842;
143 int64_t *l_162[] = {&g_158_1_0_3, &g_158_1_0_3, &g_158_1_0_3, &g_158_1_0_3};
144 struct S0 ***l_176 = &l_160;
145 int32_t l_181 = g_44;
146 int32_t *l_180 = &l_181;
147 *func_56_l_165 = p_60;
148 l_162[7] == g_158 != safe_lshift_func_uint8_t_u_s(*func_56_l_165);
149 g_130_0 |= l_160 != (g_148.f0 & 1 < l_161 >= ((g_76_0 = 0) < g_8[5]), l_160);
150 if (g_148.f0)
151 BS_VAR_8[p_57 < 7 ? p_57 : 0] = __builtin_shufflevector(
152 __builtin_shufflevector(BS_VAR_8[0], BS_VAR_8[0], 1, 0, 1, 2),
153 __builtin_convertvector(
154 (uint64_t __attribute__((vector_size(4 *sizeof(uint64_t))))){
155 p_57, p_57, p_57, p_57},
156 int64_t __attribute__((vector_size(4 * sizeof(int64_t))))),
157 6, 0);
158 l_161 = safe_add_func_int8_t_s_s(l_161);
159 for (; l_161 != 20;)
160 p_57 = 9;
161 p_57 = safe_add_func_int8_t_s_s(p_57);
162 for (; p_57 > 2;) {
163 int BS_TEMP_89 = 7760,
164 BS_TEMP_90 = backsmith_snippet_544(__builtin_convertvector(
165 __builtin_shufflevector(BS_VAR_8[4], BS_VAR_8[4], 3, 2, 1, 2, 2, 2,
166 0, 0, 0, 2, 3, 0, 2, 0, 1, 3, 3, 1, 1, 2, 2,
167 0, 2, 3, 3, 0, 1, 3, 0, 1, 3, 3),
168 int16_t __attribute__((vector_size(32 * sizeof(int16_t))))));
169 BS_VAR_2[__builtin_bswap32(BS_TEMP_89 < 2 ? (unsigned)l_161 << BS_TEMP_89
170 : BS_VAR_2_3_0) < 3
171 ? __builtin_bswap32(BS_TEMP_89 < 2
172 ? (unsigned)l_161 << BS_TEMP_89
173 : BS_VAR_2_3_0)
174 : 0] =
175 __builtin_convertvector(
176 (int32_t __attribute__((vector_size(32 *sizeof(int32_t))))){
177 BS_TEMP_90, BS_TEMP_90, BS_TEMP_90, BS_TEMP_90, BS_TEMP_90,
178 BS_TEMP_90, BS_TEMP_90, BS_TEMP_90, BS_TEMP_90, BS_TEMP_90,
179 BS_TEMP_90, BS_TEMP_90, BS_TEMP_90, BS_TEMP_90, BS_TEMP_90,
180 BS_TEMP_90, BS_TEMP_90, BS_TEMP_90, BS_TEMP_90, BS_TEMP_90,
181 BS_TEMP_90, BS_TEMP_90, BS_TEMP_90, BS_TEMP_90, BS_TEMP_90,
182 BS_TEMP_90, BS_TEMP_90, BS_TEMP_90, BS_TEMP_90, BS_TEMP_90,
183 BS_TEMP_90, BS_TEMP_90},
184 int64_t __attribute__((vector_size(32 * sizeof(int64_t)))));
185 }
186 *p_61 &= l_161 >=
187 safe_mul_func_uint32_t_u_u(
188 g_150.f0, ((*l_176 = l_160) != g_108) > l_160 == 0 == g_148.f0);
189 *l_180 = 0;
190 BS_VAR_3 = __builtin_shufflevector(
191 BS_VAR_11[p_59 < (uint64_t)5 ? (uint64_t)p_59 : 0],
192 BS_VAR_11[p_59 < (uint64_t)5 ? (uint64_t)p_59 : 0], 0, 4, 5, 4, 0, 3, 3,
193 2, 5, 4, 3, 0, 4, 3, 9, 1, 8, 8, 4, 3, 4, 0, 1, 9, 0, 0, 0, 1, 5, 2, 0,
194 9);
195 return p_57;
196 }