arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / cond-1.c
blob478a818b20652b5fc8f4e2ee63d6ef0ca3821e7a
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized-raw" } */
4 int sub(int a, int b, int c, int d) {
5 int e = (a == 0);
6 int f = !e;
7 c = b;
8 d = b - a ;
9 return ((-e & c) | (-f & d));
12 /* In the end we end up with `(a == 0) ? (b - a) : b`
13 which then can be optimized to just `(b - a)`. */
15 /* { dg-final { scan-tree-dump-not "cond_expr," "optimized" } } */
16 /* { dg-final { scan-tree-dump-not "eq_expr," "optimized" } } */
17 /* { dg-final { scan-tree-dump-times "minus_expr," 1 "optimized" } } */