ADR was added with the wrong encoding for inst{24-21}, and the ARM decoder was fooled.
[oota-llvm.git] / test / FrontendC / mmx-inline-asm.c
1 // RUN: %llvmgcc -mmmx -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(__m64 vfill) {
11   __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 }