Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr79498.c

raw
1 /* PR target/79498 */
2 /* { dg-do compile { target lp64 } } */
3 /* { dg-options "-O2 -mno-avx512f -mcmodel=large -Wno-psabi" } */
4
5 typedef unsigned U __attribute__ ((vector_size (64)));
6 typedef unsigned __int128 V __attribute__ ((vector_size (64)));
7
8 static inline V
9 bar (U u, U x, V v)
10 {
11 v = (V)(U) { 0, ~0 };
12 v[x[0]] <<= u[-63];
13 return v;
14 }
15
16 V
17 foo (U u)
18 {
19 return bar (u, (U) {}, (V) {});
20 }