* gcc.target/powerpc/builtins-1-be.c <vclzb>: Rename duplicate test
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr81959.c
blobc4cc3733841954ce683f7fc95256b06323b723ff
1 /* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */
2 /* { dg-require-effective-target powerpc_p9vector_ok } */
3 /* { dg-options "-mpower9-vector -O2 -mfloat128" } */
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. */
8 #ifndef ARRAY_SIZE
9 #define ARRAY_SIZE 1024
10 #endif
12 void
13 convert_int_to_float128 (__float128 * __restrict__ p,
14 int * __restrict__ q)
16 unsigned long i;
18 for (i = 0; i < ARRAY_SIZE; i++)
19 p[i] = (__float128)q[i];
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} } } */