2 /* { dg-do compile } */
3 /* { dg-options "-O2 -mavx" } */
5 typedef float v8sf
__attribute__((vector_size(32)));
6 typedef int v8si
__attribute__((vector_size(32)));
7 v8sf
foo1 (v8sf x
, v8sf y
)
11 return __builtin_shuffle (tem0
, tem1
, (v8si
) { 0, 9, 2, 11, 4, 13, 6, 15 });
14 v8sf
foo2 (v8sf x
, v8sf y
)
18 return __builtin_shuffle (tem0
, tem1
, (v8si
) { 0, 9, 2, 11, 4, 13, 6, 15 });
21 v8sf
foo3 (v8sf x
, v8sf y
)
25 return __builtin_shuffle (tem0
, tem1
, (v8si
) { 8, 1, 10, 3, 12, 5, 14, 7 });
28 v8sf
foo4 (v8sf x
, v8sf y
)
32 return __builtin_shuffle (tem0
, tem1
, (v8si
) { 8, 1, 10, 3, 12, 5, 14, 7 });
35 /* { dg-final { scan-assembler-times "vaddsubps" 4 } } */