]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr93430.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr93430.c
CommitLineData
322db86f
JJ
1/* PR target/93430 */
2/* { dg-do compile } */
3/* { dg-options "-O2" } */
4/* { dg-additional-options "-mavx -mno-avx2" { target avx } } */
5
6typedef double V __attribute__((vector_size (4 * sizeof (double))));
7typedef long long VI __attribute__((vector_size (4 * sizeof (long long))));
8
9#if __SIZEOF_DOUBLE__ == __SIZEOF_LONG_LONG__
10void
11foo (V *x, V *y)
12{
13 y[0] = __builtin_shuffle (x[0], x[0], (VI) { 0, 0, 0, 0 });
14}
15
16void
17bar (V *x, V *y)
18{
19 y[0] = __builtin_shuffle (x[0], x[0], (VI) { 1, 1, 1, 1 });
20}
21
22void
23baz (V *x, V *y)
24{
25 y[0] = __builtin_shuffle (x[0], x[0], (VI) { 2, 2, 2, 2 });
26}
27
28void
29qux (V *x, V *y)
30{
31 y[0] = __builtin_shuffle (x[0], x[0], (VI) { 3, 3, 3, 3 });
32}
33#endif