1 /* PR target/48678 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -msse2" } */
4 
5 #include <emmintrin.h>
6 
7 typedef short T __attribute__((may_alias));
8 struct S { __m128i d; };
9 
10 __m128i
foo(short * x,struct S * y,__m128i * z)11 foo (short *x, struct S *y, __m128i *z)
12 {
13   struct S s = *y;
14   ((T *) &s.d)[0] = *x;
15   return _mm_cmpeq_epi16 (s.d, *z);
16 }
17