(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
pr70669.c
       1  /* { dg-do compile { target { powerpc*-*-linux* && lp64 } } } */
       2  /* { dg-require-effective-target powerpc_p8vector_ok } */
       3  /* { dg-options "-O2 -mdejagnu-cpu=power8 -mfloat128" } */
       4  
       5  #ifndef TYPE
       6  #define TYPE __float128
       7  #endif
       8  
       9  void foo (TYPE *p, TYPE *q)
      10  {
      11    TYPE r = *q;
      12  #ifndef NO_ASM
      13    __asm__ (" # %0" : "+r" (r));
      14  #endif
      15    *p = -r;
      16  }
      17  
      18  /* { dg-final { scan-assembler       "mfvsrd"    } } */
      19  /* { dg-final { scan-assembler       "mtvsrd"    } } */
      20  /* { dg-final { scan-assembler-times "stxvd2x" 1 } } */
      21  /* { dg-final { scan-assembler-times "lxvd2x"  1 } } */