blob: b66137c3c2215d7cfdfd2ab736769312853ce65a [file] [log] [blame]
Bill Wendling5100c002011-03-09 01:37:39 +00001// RUN: %llvmgcc -mmmx -S -o - %s | FileCheck %s
Bill Wendling05334da2011-03-08 10:27:58 +00002// XFAIL: *
3// XTARGET: x86,i386,i686
4// <rdar://problem/9091220>
5#include <mmintrin.h>
Bill Wendling2e1e1c12011-03-08 19:39:35 +00006#include <stdint.h>
Bill Wendling05334da2011-03-08 10:27:58 +00007
8// CHECK: type { x86_mmx, x86_mmx, x86_mmx, x86_mmx, x86_mmx, x86_mmx, x86_mmx }
9
Bill Wendlingc90ca362011-03-08 21:36:29 +000010void foo(__m64 vfill) {
Bill Wendling05334da2011-03-08 10:27:58 +000011 __m64 v1, v2, v3, v4, v5, v6, v7;
12
13 __asm__ __volatile__ (
14 "\tmovq %7, %0\n"
15 "\tmovq %7, %1\n"
16 "\tmovq %7, %2\n"
17 "\tmovq %7, %3\n"
18 "\tmovq %7, %4\n"
19 "\tmovq %7, %5\n"
20 "\tmovq %7, %6"
21 : "=&y" (v1), "=&y" (v2), "=&y" (v3),
22 "=&y" (v4), "=&y" (v5), "=&y" (v6), "=y" (v7)
23 : "y" (vfill));
24}