Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / i386 / sse-20.c
blobfc0744f255434a8c4b71e23e51e1352f42afe161
1 /* PR target/13685 */
2 /* { dg-options "-Os -msse" } */
3 /* { dg-require-effective-target sse } */
5 typedef float __m128 __attribute__ ((vector_size (16)));
6 typedef int __m64 __attribute__ ((vector_size (8)));
8 int puts (const char *s);
9 void foo (__m128 *, __m64 *, int);
11 int main (void)
13 foo (0, 0, 0);
14 return 0;
17 void foo (__m128 *dst, __m64 *src, int n)
19 __m128 xmm0 = { 0 };
20 while (n > 64)
22 puts ("");
23 xmm0 = __builtin_ia32_cvtpi2ps (xmm0, *src);
24 *dst = xmm0;
25 n --;