| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target vect_float } */ |
| 3 |
/* { dg-require-effective-target vect_int } */ |
| 4 |
/* { dg-require-effective-target vect_cond_mixed } */ |
| 5 |
|
| 6 |
void foo (int *c, float *x, float *y) |
| 7 |
{ |
| 8 |
c = __builtin_assume_aligned (c, __BIGGEST_ALIGNMENT__); |
| 9 |
x = __builtin_assume_aligned (x, __BIGGEST_ALIGNMENT__); |
| 10 |
y = __builtin_assume_aligned (y, __BIGGEST_ALIGNMENT__); |
| 11 |
c[0] = x[0] < y[0]; |
| 12 |
c[1] = y[1] > x[1]; |
| 13 |
c[2] = x[2] < y[2]; |
| 14 |
c[3] = x[3] < y[3]; |
| 15 |
} |
| 16 |
|
| 17 |
/* { dg-final { scan-tree-dump "optimized: basic block" "slp2" } } */ |