| 1 |
// RUN: %clang_cc1 -emit-llvm -triple i386 -target-feature +mmx -target-feature +sse2 %s -o - | FileCheck %s |
| 2 |
#include <mmintrin.h> |
| 3 |
|
| 4 |
// CHECK: { <1 x i64>, <1 x i64>, <1 x i64>, <1 x i64>, <1 x i64>, <1 x i64>, <1 x i64> } |
| 5 |
|
| 6 |
void foo(long long fill) { |
| 7 |
__m64 vfill = _mm_cvtsi64_m64(fill); |
| 8 |
__m64 v1, v2, v3, v4, v5, v6, v7; |
| 9 |
|
| 10 |
__asm__ __volatile__ ( |
| 11 |
"\tmovq %7, %0\n" |
| 12 |
"\tmovq %7, %1\n" |
| 13 |
"\tmovq %7, %2\n" |
| 14 |
"\tmovq %7, %3\n" |
| 15 |
"\tmovq %7, %4\n" |
| 16 |
"\tmovq %7, %5\n" |
| 17 |
"\tmovq %7, %6" |
| 18 |
: "=&y" (v1), "=&y" (v2), "=&y" (v3), |
| 19 |
"=&y" (v4), "=&y" (v5), "=&y" (v6), "=y" (v7) |
| 20 |
: "y" (vfill)); |
| 21 |
} |