| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -fdump-tree-cddce1-raw" } */ |
| 3 |
/* PR tree-optimization/115238 */ |
| 4 |
|
| 5 |
|
| 6 |
#define vector8 __attribute__((vector_size(2*sizeof(int)))) |
| 7 |
|
| 8 |
void f(int a, vector8 int *b) |
| 9 |
{ |
| 10 |
a = 1; |
| 11 |
*b = a | ((~a) ^ *b); |
| 12 |
} |
| 13 |
/* Scan early on in the phases before the vector has possibily been split |
| 14 |
but late enough after forwprop or other match-simplify has happened though. */ |
| 15 |
/* { dg-final { scan-tree-dump-not "bit_xor_expr, " "cddce1" } } */ |
| 16 |
/* { dg-final { scan-tree-dump-times "bit_ior_expr, " 1 "cddce1" } } */ |
| 17 |
/* { dg-final { scan-tree-dump-times "bit_not_expr, " 1 "cddce1" } } */ |