2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr46909.c
blobc4d2f92686a6df379debbe0108798079b8e33576
1 /* PR tree-optimization/46909 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
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-times "x_\[0-9\]+\\(D\\) != 4" 1 "optimized" } } */
17 /* { dg-final { scan-tree-dump-times "x_\[0-9\]+\\(D\\) != 6" 0 "optimized" } } */
18 /* { dg-final { scan-tree-dump-times "x_\[0-9\]+\\(D\\) == 2" 0 "optimized" } } */
19 /* { dg-final { scan-tree-dump-times "x_\[0-9\]+\\(D\\) == 6" 0 "optimized" } } */