26 lines
817 B
C
26 lines
817 B
C
/* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */
|
|
/* { dg-require-effective-target powerpc_p9vector_ok } */
|
|
/* { dg-options "-mpower9-vector -O2 -mfloat128" } */
|
|
|
|
/* PR 81959, the compiler raised on unrecognizable insn message in converting
|
|
int to __float128, where the int had a PRE_INC in the address. */
|
|
|
|
#ifndef ARRAY_SIZE
|
|
#define ARRAY_SIZE 1024
|
|
#endif
|
|
|
|
void
|
|
convert_int_to_float128 (__float128 * __restrict__ p,
|
|
int * __restrict__ q)
|
|
{
|
|
unsigned long i;
|
|
|
|
for (i = 0; i < ARRAY_SIZE; i++)
|
|
p[i] = (__float128)q[i];
|
|
}
|
|
|
|
/* { dg-final { scan-assembler {\mlfiwax\M|\mlxsiwax\M} } } */
|
|
/* { dg-final { scan-assembler {\mxscvsdqp\M} } } */
|
|
/* { dg-final { scan-assembler-not {\mmtvsrd\M} } } */
|
|
/* { dg-final { scan-assembler-not {\mmtvsrw[sz]\M} } } */
|