[RTL ifcvt] PR 67786, 67787: Check that intermediate instructions in the basic block...
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-abs-5.c
blob4a892afe8ea9e4cf71a88c9b07b032fa3e266b7a
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-original" } */
4 int test (int a, int b, int sum)
6 sum += ((a - b) > 0 ? (a - b) : -(a - b));
7 return sum;
10 /* { dg-final { scan-tree-dump "ABS" "original" } } */