2 /* { dg-do compile } */
3 /* { dg-options "-O2 -msse4" } */
5 typedef float v4sf
__attribute__((vector_size(16)));
6 typedef int v4si
__attribute__((vector_size(16)));
7 v4sf
foo1 (v4sf x
, v4sf y
)
11 return __builtin_shuffle (tem0
, tem1
, (v4si
) { 0, 5, 2, 7 });
14 v4sf
foo2 (v4sf x
, v4sf y
)
18 return __builtin_shuffle (tem0
, tem1
, (v4si
) { 0, 5, 2, 7 });
21 v4sf
foo3 (v4sf x
, v4sf y
)
25 return __builtin_shuffle (tem0
, tem1
, (v4si
) { 4, 1, 6, 3 });
28 v4sf
foo4 (v4sf x
, v4sf y
)
32 return __builtin_shuffle (tem0
, tem1
, (v4si
) { 4, 1, 6, 3 });
35 /* { dg-final { scan-assembler-times "addsubps" 4 } } */