aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr116372.c
blob: e9878ac5042b1e8571f9e567eef8aa21082ebab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR rtl-optimization/116372 */
/* { dg-do run } */
/* { dg-options "-O1" } */ 
/* { dg-additional-options "-march=z13" { target s390x-*-* } } */

long x = -0x7fffffff - 1;
int main (void)
{
  long y = x % (-0xf - 1);
  if (-0x7fffffff - 1 + y == x == 0)
    __builtin_abort ();
  return 0;
}