* g++.dg/other/i386-2.C (dg-options): Add -mavx512pf.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr13366.c
blobf0dce0b2402011570582b183c7cf5e70642e20c3
1 /* { dg-do compile } */
2 /* { dg-options "-O -msse" } */
4 #include <xmmintrin.h>
6 typedef unsigned short v4hi __attribute__ ((vector_size (8)));
8 int f(unsigned short n)
10 __m64 vec = (__m64)(v4hi){ 0, 0, 1, n };
11 __m64 hw = _mm_mulhi_pi16 (vec, vec);
12 return _mm_extract_pi16 (hw, 0);