No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / tree-ssa / pr20470.c
blobb0d7492de98cde3f953fa2457d93e123d9a0303a
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-gimple" } */
4 /* PR tree-optimization/20470:
5 Missing fold to abs(x) when x == MINUS_EXPR. */
6 #define abs(x) ((x) >= 0 ? (x) : -(x))
8 int i,j,k;
9 void f1()
11 i = abs(j-k);
14 /* { dg-final { scan-tree-dump-times "ABS_EXPR" 1 "gimple" } } */
15 /* { dg-final { cleanup-tree-dump "gimple" } } */