111
|
1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
|
|
2 /* { dg-options "-mgeneral-regs-only" } */
|
|
3
|
|
4 extern void foo (void);
|
|
5 extern void bad (void);
|
|
6
|
|
7 void
|
|
8 __attribute__ ((no_caller_saved_registers))
|
|
9 bar0 (int i0, int i1, int i2, int i3, int i4, int i5, int i6,
|
|
10 int i7, int i8)
|
|
11 {
|
|
12 if (i0 != 0)
|
|
13 bad ();
|
|
14
|
|
15 if (i1 != 1)
|
|
16 bad ();
|
|
17
|
|
18 if (i2 != 2)
|
|
19 bad ();
|
|
20
|
|
21 if (i3 != 3)
|
|
22 bad ();
|
|
23
|
|
24 if (i4 != 4)
|
|
25 bad ();
|
|
26
|
|
27 if (i5 != 5)
|
|
28 bad ();
|
|
29
|
|
30 if (i6 != 6)
|
|
31 bad ();
|
|
32
|
|
33 if (i7 != 7)
|
|
34 bad ();
|
|
35
|
|
36 if (i8 != 8)
|
|
37 bad ();
|
|
38 }
|
|
39
|
|
40 int
|
|
41 main ()
|
|
42 {
|
|
43 foo ();
|
|
44 return 0;
|
|
45 }
|