Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / pr46909.c
blobaffedab8676fd3b10f3af69bc0d31f198aef81c8
1 /* PR tree-optimization/46909 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-ifcombine" } */
5 extern void abort ();
7 int
8 __attribute__ ((__noinline__))
9 foo (unsigned int x)
11 if (! (x == 4 || x == 6) || (x == 2 || x == 6))
12 return 1;
13 return -1;
16 /* { dg-final { scan-tree-dump "optimizing two comparisons to x_\[0-9\]+\\(D\\) != 4" "ifcombine" } } */
17 /* { dg-final { cleanup-tree-dump "ifcombine" } } */