blob: 637abfde888ccf20e6994ba2128a2cfbac25d03d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* { dg-do compile } */
/* { dg-options "-O2 -msse" } */
typedef float v4sf __attribute__ ((__vector_size__ (16)));
void bench_1(float * out, float * in, float f, unsigned int n)
{
n /= 4;
v4sf scalar = { f, f, f, f };
do
{
v4sf arg = *(v4sf *)in;
v4sf result = arg + scalar;
*(v4sf *) out = result;
in += 4;
out += 4;
}
while (--n);
}
/* { dg-final { scan-assembler-not "addps\[^\\n\]*%\[er\]" } } */
|