/* Verify that overloaded built-ins for vec_perm with float
   inputs produce the right code.  */

/* { dg-do compile } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */

#include <altivec.h>

vector float
testf (vector float vf2, vector float vf3, vector unsigned char vuc)
{
  return vec_perm (vf2, vf3, vuc);
}

/* { dg-final { scan-assembler-times "vperm" 1 } } */
