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
7 extern void abort (void);
8
9 long long frame_size = 42;
10
11 int __attribute__((noinline))
12 foo (int a __attribute__((unused)), long long b)
13 {
14 return (int)b;
15 }
16
17 int
18 main ()
19 {
20 if (frame_size > 0)
21 {
22 if (foo (0, -frame_size) != -42)
23 abort ();
24 }
25 return 0;
26 }