aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/fold-vec-madd-float.c
blob: fcfe0c386564333148d165fc5fa60e4f2586d061 (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-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-mvsx -O2" } */

#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 } } */