aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/epiphany/fmadd-1.c
blob: 868d5bd0226c2f2bebbe5c806c95716b43d8f8b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-times "fmadd\[ \ta-zA-Z0-9\]*," 2 } } */

#include <epiphany_intrinsics.h>

float
f1 (float a, float b, float c)
{
  return __builtin_epiphany_fmadd (a, b, c);
}

float
f2 (float a, float b, float c)
{
  return a + b * c;
}