aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr97360.c
blob: 2328d28a283afb719cdb17ffcab662a5b13d6f24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR target/97360 */
/* { dg-do compile } */
/* { dg-require-effective-target power10_ok } */
/* { dg-options "-O2 -mdejagnu-cpu=power10" } */

/* Verify we do not ICE on the test below.  */

typedef unsigned char vec_t __attribute__((vector_size(16)));

void
foo (__vector_quad *dst, __vector_pair *vpair, vec_t *vec)
{
  __vector_quad acc = *dst;
  for (;;)
    {
      __builtin_mma_xvf64gerpp(&acc, *vpair, vec[7]);
    }
}