Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang -mmmx -ccc-host-triple i386-unknown-unknown -emit-llvm -S %s -o - | FileCheck %s
      2 // <rdar://problem/9091220>
      3 #include <mmintrin.h>
      4 
      5 // CHECK: { x86_mmx, x86_mmx, x86_mmx, x86_mmx, x86_mmx, x86_mmx, x86_mmx }
      6 
      7 void foo(long long fill) {
      8   __m64 vfill = _mm_cvtsi64_m64(fill);
      9   __m64 v1, v2, v3, v4, v5, v6, v7;
     10 
     11   __asm__ __volatile__ (
     12     "\tmovq  %7, %0\n"
     13     "\tmovq  %7, %1\n"
     14     "\tmovq  %7, %2\n"
     15     "\tmovq  %7, %3\n"
     16     "\tmovq  %7, %4\n"
     17     "\tmovq  %7, %5\n"
     18     "\tmovq  %7, %6"
     19     : "=&y" (v1), "=&y" (v2), "=&y" (v3),
     20       "=&y" (v4), "=&y" (v5), "=&y" (v6), "=y" (v7)
     21     : "y" (vfill));
     22 }
     23