Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sse-1.c
blob15d38f9d5dd8bdbddaaee0d1f6da1064591c3526
1 /* PR 12902 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -msse" } */
5 #include <xmmintrin.h>
7 typedef union
9 int i[4];
10 float f[4];
11 __m128 v;
12 } vector4_t;
14 void
15 swizzle (const void *a, vector4_t * b, vector4_t * c)
17 __m64 *t = __builtin_assume_aligned (a, 64);
19 b->v = _mm_loadl_pi (b->v, t);
20 c->v = _mm_loadl_pi (c->v, t + 1);
23 /* While one legal rendering of each statement would be movaps;movlps;movaps,
24 we can implmenent this with just movlps;movlps. Since we do now, anything
25 less would be a regression. */
26 /* { dg-final { scan-assembler-not "movaps" } } */
27 /* { dg-final { scan-assembler "movlps" } } */