2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sse2-movd-2.c
blobf986e6e255848cc8796126f929f0d71ab0069ecf
1 /* { dg-do run } */
2 /* { dg-options "-O2 -msse2" } */
4 #ifndef CHECK_H
5 #define CHECK_H "sse2-check.h"
6 #endif
8 #ifndef TEST
9 #define TEST sse2_test
10 #endif
12 #include CHECK_H
14 #include <emmintrin.h>
16 static int
17 __attribute__((noinline, unused))
18 test (__m128i b)
20 return _mm_cvtsi128_si32 (b);
23 static void
24 TEST (void)
26 union128i_d u;
27 int e;
29 u.x = _mm_set_epi32 (2134, -128, 655366, 9999);
30 e = test (u.x);
31 if (e != u.a[0])
32 abort ();