No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.target / i386 / pr13685.c
blob7c4446abf950f7cc38ff5611ff2e4919a111c049
1 /* PR target/13685 */
2 /* { dg-do run } */
3 /* { dg-options "-Os -msse" } */
4 #include <stdlib.h>
5 #include <stdio.h>
6 #include <xmmintrin.h>
7 #include "../../gcc.dg/i386-cpuid.h"
9 void foo (__m128 *, __m64 *, int);
11 __m128 xmm0 = { 0 };
12 __m64 mm0 = { 0 };
14 int
15 main ()
17 unsigned long cpu_facilities = i386_cpuid ();
19 if ((cpu_facilities & (bit_MMX | bit_SSE | bit_CMOV))
20 != (bit_MMX | bit_SSE | bit_CMOV))
21 /* If host has no SSE support, pass. */
22 return 0;
24 foo (&xmm0, &mm0, 4);
25 return 0;
28 void
29 foo (__m128 *dst, __m64 *src, int n)
31 __m128 xmm0 = { 0 };
32 while (n > 64)
34 puts ("");
35 xmm0 = _mm_cvtpi32_ps (xmm0, *src);
36 *dst = xmm0;
37 n--;