Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr112532.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-msse4 -O2" } */
3
4 typedef char __attribute__((__vector_size__(2))) v16u8;
5 typedef int __attribute__((__vector_size__(8))) v64u8;
6 typedef unsigned short __attribute__((__vector_size__(2))) v16u16;
7 typedef unsigned short __attribute__((__vector_size__(8))) v64u16;
8 v64u16 foo0_v64u16_0;
9 int __attribute__((__vector_size__(4 * sizeof(int)))) foo0_v128u32_0;
10 __attribute__((__vector_size__(8 * sizeof(short)))) unsigned short foo0_v128u16_0;
11 v16u16 foo0_v16u16_0;
12 v16u8 foo0() {
13 v16u16 v16u16_1 = __builtin_shufflevector(__builtin_shufflevector(__builtin_convertvector(foo0_v128u32_0, v64u16),foo0_v16u16_0, 1, 4, 2, 0, 0, 2, 2, 2),foo0_v16u16_0, 7);
14 foo0_v64u16_0 -= (short)v16u16_1;
15 v64u16 v64u16_3 = __builtin_shufflevector(v16u16_1, __builtin_shufflevector((v16u16){}, foo0_v128u16_0, 7, 0), 0, 1, 2, 2);
16 return (union {v16u8 b;})
17 {((union {
18 v64u8 a;
19 int b;
20 })(v64u8)v64u16_3).b}.b + (v16u8)v16u16_1;
21 }