Handle T_HRESULT types in CodeView records
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / sse4_1-pmovzxbq.c
blob1dbe1265c3d53f247248d796f884daf1d305e958
1 /* { dg-do run } */
2 /* { dg-require-effective-target vsx_hw } */
3 /* { dg-options "-O2 -mvsx" } */
5 #ifndef CHECK_H
6 #define CHECK_H "sse4_1-check.h"
7 #endif
9 #ifndef TEST
10 #define TEST sse4_1_test
11 #endif
13 #include CHECK_H
15 #include <smmintrin.h>
17 #define NUM 128
19 static void
20 TEST (void)
22 union
24 __m128i x[NUM / 2];
25 unsigned long long ll[NUM];
26 unsigned char c[NUM * 8];
27 } dst, src;
28 int i;
30 for (i = 0; i < NUM; i++)
32 src.c[(i % 2) + (i / 2) * 16] = i * i;
33 if ((i % 2))
34 src.c[(i % 2) + (i / 2) * 16] |= 0x80;
37 for (i = 0; i < NUM; i += 2)
38 dst.x [i / 2] = _mm_cvtepu8_epi64 (src.x [i / 2]);
40 for (i = 0; i < NUM; i++)
41 if (src.c[(i % 2) + (i / 2) * 16] != dst.ll[i])
42 abort ();