Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/pr117292.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-Os" } */
3
4 #pragma GCC target "+nosve"
5
6 typedef char v8u8;
7 typedef __attribute__((__vector_size__ (2))) char v16u8;
8 typedef __attribute__((__vector_size__ (4))) char v32u8;
9 typedef __attribute__((__vector_size__ (8))) char v64u8;
10 typedef short v128u8;
11 typedef __attribute__((__vector_size__ (32))) char v256u8;
12 typedef __attribute__((__vector_size__ (64))) char v512u8;
13 v16u8 foo0_v16s16_0;
14 __attribute__((__vector_size__ (16))) int foo0_v512u32_0;
15 v8u8 foo0_ret;
16
17 static __attribute__((__noinline__)) __attribute__((__noclone__)) void
18 foo0 (signed char s8_0, v512u8 v512u16_0, v512u8 v512s16_0,
19 v512u8 v512s32_0, v512u8 v512u64_0, v512u8 v512s64_0,
20 v512u8 v512u128_0, v512u8 v512s128_0)
21 {
22 char v8s8_0;
23 v8s8_0 ^= s8_0;
24 foo0_v512u32_0 /= foo0_v512u32_0 ^ s8_0;
25 v512u8 v512u8_r = v512u16_0 + v512s16_0 + v512s32_0 +
26 v512u64_0 + v512s64_0 + v512u128_0 + v512s128_0;
27 v16u8 v16u8_r = ((union { v64u8 a; v16u8 b;})
28 ((union { v128u8 a; v64u8 b;})
29 ((union { v256u8 a; v128u8 b;})
30 ((union { v512u8 a; v256u8 b;}) v512u8_r).b).b).b).b +
31 foo0_v16s16_0;
32 v8u8 v8u8_r = ((union { v16u8 a; v8u8 b;}) v16u8_r).b + v8s8_0;
33 foo0_ret = v8u8_r;
34 }
35
36 void
37 main ()
38 {
39 foo0 (3, (v512u8){}, (v512u8){}, (v512u8){}, (v512u8){},
40 (v512u8){}, (v512u8){}, (v512u8){});
41 }