(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
pr103353.c
       1  /* { dg-require-effective-target powerpc_altivec_ok } */
       2  /* If the default cpu type is power10 or later, MMA is enabled by default.
       3     To keep the test point available all the time, this case specifies
       4     -mdejagnu-cpu=power6 to make it be tested without MMA.  */
       5  /* { dg-options "-maltivec -mdejagnu-cpu=power6" } */
       6  
       7  /* Verify there is no ICE and don't check the error messages on MMA
       8     requirement since they could be fragile and are not test points
       9     of this case.  */
      10  /* { dg-excess-errors "pr103353" } */
      11  
      12  void
      13  foo (__vector_pair *dst, double *x)
      14  {
      15    dst[0] = __builtin_vsx_lxvp (0, (__vector_pair *)(void *)x);
      16  }
      17  
      18  void
      19  bar (__vector_pair *src, double *x)
      20  {
      21    __builtin_vsx_stxvp (src[0], 0, (__vector_pair *)(void *)x);
      22  }