aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/epiphany/fmsub-1.c
blob: ff7fefa7f200cd10aa24370a438e15d54c06da1a (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 "fmsub\[ \ta-zA-Z0-9\]*," 2 } } */

#include <epiphany_intrinsics.h>

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

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