1  /* Verify that overloaded built-ins for vec_madd with
       2     double inputs produce the right results.  */
       3  
       4  /* { dg-do compile } */
       5  /* { dg-require-effective-target powerpc_vsx_ok } */
       6  /* { dg-options "-mvsx -O2" } */
       7  
       8  #include <altivec.h>
       9  
      10  vector double
      11  testd_l (vector double vd2, vector double vd3, vector double vd4)
      12  {
      13    return vec_madd (vd2, vd3, vd4);
      14  }
      15  
      16  /* { dg-final { scan-assembler-times "xvmaddmdp|xvmaddadp" 1 } } */
      17