1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* Test for reload ICE arising from POWER9 Vector Dform code generation. */
/* { dg-do compile } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-options "-O1 -mpower9-vector" } */
typedef __attribute__((altivec(vector__))) int type_t;
type_t
func (type_t *src)
{
asm volatile ("# force the base reg on the load below to be spilled"
: /* no outputs */
: /* no inputs */
: "r0", "r3", "r4", "r5", "r6", "r7",
"r8", "r9", "r10", "r11", "r12", "r14", "r15",
"r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23",
"r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31");
return src[1];
}
|