Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr69097-2.c
blob8fe991bb81950057d834fb444cea2e306a989d34
1 /* PR tree-optimization/69097 */
3 __attribute__((noinline, noclone)) int
4 f1 (int x, int y)
6 return x % y;
9 __attribute__((noinline, noclone)) int
10 f2 (int x, int y)
12 return x % -y;
15 __attribute__((noinline, noclone)) int
16 f3 (int x, int y)
18 int z = -y;
19 return x % z;
22 int
23 main ()
25 if (f1 (-__INT_MAX__ - 1, 1) != 0
26 || f2 (-__INT_MAX__ - 1, -1) != 0
27 || f3 (-__INT_MAX__ - 1, -1) != 0)
28 __builtin_abort ();
29 return 0;