(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
pr81959.c
       1  /* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */
       2  /* { dg-require-effective-target powerpc_p9vector_ok } */
       3  /* { dg-options "-mpower9-vector -O2 -mfloat128" } */
       4  
       5  /* PR 81959, the compiler raised on unrecognizable insn message in converting
       6     int to __float128, where the int had a PRE_INC in the address.  */
       7  
       8  #ifndef ARRAY_SIZE
       9  #define ARRAY_SIZE 1024
      10  #endif
      11  
      12  void
      13  convert_int_to_float128 (__float128 * __restrict__ p,
      14  			 int * __restrict__ q)
      15  {
      16    unsigned long i;
      17  
      18    for (i = 0; i < ARRAY_SIZE; i++)
      19      p[i] = (__float128)q[i];
      20  }
      21  
      22  /* { dg-final { scan-assembler     {\mlfiwax\M|\mlxsiwax\M} } } */
      23  /* { dg-final { scan-assembler     {\mxscvsdqp\M}           } } */
      24  /* { dg-final { scan-assembler-not {\mmtvsrd\M}             } } */
      25  /* { dg-final { scan-assembler-not {\mmtvsrw[sz]\M}         } } */