Debian Codegraph @

gcc/testsuite/gcc.dg/pr116372.c

raw
1 /* PR rtl-optimization/116372 */
2 /* { dg-do run } */
3 /* { dg-options "-O1" } */
4 /* { dg-additional-options "-march=z13" { target s390x-*-* } } */
5
6 long x = -0x7fffffff - 1;
7 int main (void)
8 {
9 long y = x % (-0xf - 1);
10 if (-0x7fffffff - 1 + y == x == 0)
11 __builtin_abort ();
12 return 0;
13 }