annotate gcc/testsuite/gcc.dg/spill-1.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* This caused an ICE during register spilling when targeting thumb.
kono
parents:
diff changeset
2 There are 8 registers available for arithmetic operations (r0-r7)
kono
parents:
diff changeset
3 r7 is the frame pointer, and r0-r3 are used to pass arguments.
kono
parents:
diff changeset
4 Combine was extending the lives of the arguments (in r0-r3) up until the
kono
parents:
diff changeset
5 call to z. This leaves only 3 regs free which isn't enough to preform the
kono
parents:
diff changeset
6 doubleword addition. */
kono
parents:
diff changeset
7 /* { dg-do compile } */
kono
parents:
diff changeset
8 /* { dg-options "-O2 -fno-omit-frame-pointer" } */
kono
parents:
diff changeset
9 void z(int);
kono
parents:
diff changeset
10 int foo(int a, int b, int c, int d, long long *q)
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 *q=*q+1;
kono
parents:
diff changeset
13 z (a+b+c+d);
kono
parents:
diff changeset
14 }
kono
parents:
diff changeset
15