* gcc.dg/const-elim-1.c: Remove xfail for xtensa-*-*.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr20922-4.c
blob664a62f4e4c707c74f41bf4d0ac898f6c27e5167
1 /* { dg-do compile } */
2 /* { dg-options "-fno-wrapv -fdump-tree-generic" } */
3 int f(int i)
5 return i < (i - 2);
8 int g(int i)
10 return i > (i + 2);
13 int h(int i)
15 return i < (i + (-2));
18 int j(int i)
20 return i > (i - (-2));
23 int x(double i)
25 return i < (i - 2.0);
28 int y(double i)
30 return i > (i + 2.0);
33 int z(double i)
35 return i < (i + (-2.0));
37 /* { dg-final { scan-tree-dump-times " = 0" 7 "generic" } } */
38 /* { dg-final { cleanup-tree-dump "generic" } } */