i386.md: Add two new peephole2 to avoid mov followed by arithmetic with memory operands.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr38824.c
blob637abfde888ccf20e6994ba2128a2cfbac25d03d
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -msse" } */
4 typedef float v4sf __attribute__ ((__vector_size__ (16)));
6 void bench_1(float * out, float * in, float f, unsigned int n)
8 n /= 4;
9 v4sf scalar = { f, f, f, f };
12 v4sf arg = *(v4sf *)in;
13 v4sf result = arg + scalar;
14 *(v4sf *) out = result;
15 in += 4;
16 out += 4;
18 while (--n);
21 /* { dg-final { scan-assembler-not "addps\[^\\n\]*%\[er\]" } } */