]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/i386/mpx/pr79770.c
Daily bump.
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / pr79770.c
1 /* { dg-do compile { target lp64 } } */
2 /* { dg-options "-fcheck-pointer-bounds -mmpx -mabi=ms -Wno-psabi" } */
3
4 typedef unsigned U __attribute__ ((vector_size (64)));
5 typedef unsigned __int128 V __attribute__ ((vector_size (64)));
6
7 static inline V
8 bar (U u, U x, V v)
9 {
10 v = (V)(U) { 0, ~0 };
11 v[x[0]] <<= u[-63];
12 return v;
13 }
14
15 V
16 foo (U u)
17 {
18 return bar (u, (U) {}, (V) {});
19 }