PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sse2-movd-1.c
blob67f0a87eaeac6f318cc41c3adf8a829aa959d394
1 /* { dg-do run } */
2 /* { dg-options "-O2 -msse2" } */
3 /* { dg-require-effective-target sse2 } */
5 #ifndef CHECK_H
6 #define CHECK_H "sse2-check.h"
7 #endif
9 #ifndef TEST
10 #define TEST sse2_test
11 #endif
13 #include CHECK_H
15 #include <emmintrin.h>
17 static __m128i
18 __attribute__((noinline, unused))
19 test (int b)
21 return _mm_cvtsi32_si128 (b);
24 static void
25 TEST (void)
27 union128i_d u;
28 int b = 128;
29 int e[4] = {0};
31 u.x = test (b);
33 e[0] = b;
35 if (check_union128i_d (u, e))
36 abort ();