blob: b518aa82827d82390de5977f14053c2270085fa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do compile { target { ! { ia32 } } } } */
/* { dg-options "-O2 -mfma4 -ftree-vectorize -mtune=generic -mno-fma" } */
float r[256], s[256];
float x[256];
float y[256];
float z[256];
void foo (void)
{
int i;
for (i = 0; i < 256; ++i)
{
r[i] = x[i] * y[i] - z[i];
s[i] = x[i] * y[i] + z[i];
}
}
/* { dg-final { scan-assembler "vfmaddps" } } */
/* { dg-final { scan-assembler "vfmsubps" } } */
|