Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / i386 / pr13685.c
bloba50681bea268e9c20c37f2266a4bed92537d5666
1 /* PR target/13685 */
2 /* { dg-do run } */
3 /* { dg-options "-Os -msse" } */
4 /* { dg-require-effective-target sse } */
6 #include "sse-check.h"
8 #include <xmmintrin.h>
10 void foo (__m128 *, __m64 *, int);
12 __m128 xmm0 = { 0 };
13 __m64 mm0 = { 0 };
15 static void
16 sse_test (void)
18 foo (&xmm0, &mm0, 4);
21 void
22 foo (__m128 *dst, __m64 *src, int n)
24 __m128 xmm0 = { 0 };
25 while (n > 64)
27 puts ("");
28 xmm0 = _mm_cvtpi32_ps (xmm0, *src);
29 *dst = xmm0;
30 n--;