Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr109583.c
blobe3fea3d510c6759e3846442fcc086300c4ef4a40
1 /* PR tree-optimization/109583 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -Wno-psabi" } */
4 /* { dg-additional-options "-mno-avx" { target i?86-*-* x86_64-*-* } } */
6 typedef float v8sf __attribute__((vector_size (8 * sizeof (float))));
7 typedef int v8si __attribute__((vector_size (8 * sizeof (int))));
9 #if __SIZEOF_INT__ == __SIZEOF_FLOAT__
10 v8sf
11 foo (v8sf x, v8sf y)
13 v8sf a = x - y;
14 v8sf b = x + y;
15 return __builtin_shuffle (a, b, (v8si) { 0, 9, 2, 11, 4, 13, 6, 15 });
18 v8sf
19 bar (v8sf x, v8sf y)
21 v8sf a = x + y;
22 v8sf b = x - y;
23 return __builtin_shuffle (a, b, (v8si) { 0, 9, 2, 11, 4, 13, 6, 15 });
25 #endif