f888d75bf7b57e17ae97eb42c97b32ae8e7f6ec7
[oota-llvm.git] / test / FrontendC / mmx-inline-asm.c
1 // RUN: %llvmgcc -S -o - %s | FileCheck %s
2 // XFAIL: *
3 // XTARGET: x86,i386,i686
4 // <rdar://problem/9091220>
5 #include <mmintrin.h>
6 #include <stdint.h>
7
8 // CHECK: type { x86_mmx, x86_mmx, x86_mmx, x86_mmx, x86_mmx, x86_mmx, x86_mmx }
9
10 void foo(int64_t fill) {
11   __m64 vfill = _mm_cvtsi64_m64(fill);
12   __m64 v1, v2, v3, v4, v5, v6, v7;
13
14   __asm__ __volatile__ (
15     "\tmovq  %7, %0\n"
16     "\tmovq  %7, %1\n"
17     "\tmovq  %7, %2\n"
18     "\tmovq  %7, %3\n"
19     "\tmovq  %7, %4\n"
20     "\tmovq  %7, %5\n"
21     "\tmovq  %7, %6"
22     : "=&y" (v1), "=&y" (v2), "=&y" (v3),
23       "=&y" (v4), "=&y" (v5), "=&y" (v6), "=y" (v7)
24     : "y" (vfill));
25 }