| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O3 -fdump-tree-forwprop1-details -Wno-psabi" } */ |
| 3 |
/* { dg-additional-options "-msse2" { target i?86-*-* x86_64-*-* } } */ |
| 4 |
|
| 5 |
typedef int vec __attribute__((vector_size(16))); |
| 6 |
vec f1_p_v_in, f1_sel00, f1_sel11, f1_sel, f1_v_out_2; |
| 7 |
void f1() { |
| 8 |
vec v_1, v_2, v_x, v_y; |
| 9 |
v_1 = __builtin_shuffle(f1_p_v_in, f1_sel00); |
| 10 |
v_2 = __builtin_shuffle(f1_p_v_in, f1_sel11); |
| 11 |
v_x = v_2 - v_1; |
| 12 |
v_y = v_1 + v_2; |
| 13 |
f1_v_out_2 = __builtin_shuffle(v_y, v_x, f1_sel); |
| 14 |
} |
| 15 |
|
| 16 |
/* Won't blend because masks (e.g. f1_sel00) are not VECTOR_CSTs. */ |
| 17 |
|
| 18 |
/* { dg-final { scan-tree-dump-not "Vec perm simplify sequences have been merged" "forwprop1" } } */ |