blob: 225681d386751234b868be7ef4bffc6847c40609 [file] [log] [blame]
/* { dg-do compile { target { powerpc*-*-linux* && lp64 } } } */
/* { dg-require-effective-target powerpc_p8vector_ok } */
/* { dg-options "-O2 -mdejagnu-cpu=power8 -mfloat128" } */
#ifndef TYPE
#define TYPE __float128
#endif
void foo (TYPE *p, TYPE *q)
{
TYPE r = *q;
#ifndef NO_ASM
__asm__ (" # %0" : "+r" (r));
#endif
*p = -r;
}
/* { dg-final { scan-assembler "mfvsrd" } } */
/* { dg-final { scan-assembler "mtvsrd" } } */
/* { dg-final { scan-assembler-times "stxvd2x" 1 } } */
/* { dg-final { scan-assembler-times "lxvd2x" 1 } } */