summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/fma.h
blob: 0812c2d73a2e008731bb2f974a5448dd985169dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
extern double fma (double, double, double);
extern float fmaf (float, float, float);

float
vfma32 (float x, float y, float z)
{
  return fmaf (x, y, z);
}

float
vfms32 (float x, float y, float z)
{
  return fmaf (-x, y, z);
}

float
vfnms32 (float x, float y, float z)
{
  return fmaf (x, y, -z);
}

float
vfnma32 (float x, float y, float z)
{
  return fmaf (-x, y, -z);
}

double
vfma64 (double x, double y, double z)
{
  return fma (x, y, z);
}

double
vfms64 (double x, double y, double z)
{
  return fma (-x, y, z);
}

double
vfnms64 (double x, double y, double z)
{
  return fma (x, y, -z);
}

double
vfnma64 (double x, double y, double z)
{
  return fma (-x, y, -z);
}