Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr94026.c
blobdeb4efd57dc69942563c57b9fee7734de4a33e85
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 int f1(int x) { return ((x >> 8) & 6) != 0; }
5 int f2(int x) { return ((x << 2) & 24) != 0; }
6 int f3(unsigned x) { return ((x << 2) & 15) != 0; }
7 int f4(unsigned x) { return ((x >> 2) & 14) != 0; }
9 int fifth (int c)
11 int a = (c >> 8) & 7;
13 if (a >= 2) {
14 return 1;
15 } else {
16 return 0;
19 /* { dg-final { scan-tree-dump-not " << " "optimized" } } */
20 /* { dg-final { scan-tree-dump-not " >> " "optimized" } } */