PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr48335-1.c
blob08c5284ea80ddb4e90927d499b1d433cf34c0b3c
1 /* PR middle-end/48335 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fno-tree-sra -msse2" } */
5 #include <emmintrin.h>
7 typedef __float128 T __attribute__((may_alias));
9 struct S
11 _Complex double d __attribute__((aligned (16)));
14 void bar (struct S);
16 void
17 f1 (T x)
19 struct S s;
20 *(T *) &s.d = x;
21 __real__ s.d *= 7.0;
22 bar (s);
25 void
26 f2 (__m128d x)
28 struct S s;
29 _mm_store_pd ((double *) &s.d, x);
30 __real__ s.d *= 7.0;
31 bar (s);