1/* This testcase is extracted from s390_emit_prologue.  The negation
2   of a 64bit value got split incorrectly on 31 bit.  */
3
4/* { dg-do run { target { ! lp64 } } } */
5/* { dg-options "-O2 -mesa" } */
6
7extern void abort (void);
8
9long long frame_size = 42;
10
11int __attribute__((noinline))
12foo  (int a __attribute__((unused)), long long b)
13{
14  return (int)b;
15}
16
17int
18main ()
19{
20    if (frame_size > 0)
21    {
22      if (foo (0, -frame_size) != -42)
23	abort ();
24    }
25    return 0;
26}
27