aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/fold-vec-madd-float.c
blob: 35be9f68a03c7f8c0dd112369a158a041eaee320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Verify that overloaded built-ins for vec_madd with float
   inputs produce the right results.  */

/* { dg-do compile } */
/* { dg-options "-mvsx -O2" } */
/* { dg-require-effective-target powerpc_vsx } */

#include <altivec.h>

vector float
testf_l (vector float vf2, vector float vf3, vector float vf4)
{
  return vec_madd (vf2, vf3, vf4);
}

/* { dg-final { scan-assembler-times "xvmaddmsp|xvmaddasp" 1 } } */