1 ; RUN: llc -mcpu=i686 -mattr=+mmx < %s | FileCheck %s 2 ; ModuleID = 'tq.c' 3 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32" 4 target triple = "i386-apple-macosx10.6.6" 5 6 %0 = type { x86_mmx, x86_mmx, x86_mmx, x86_mmx, x86_mmx, x86_mmx, x86_mmx } 7 8 define i32 @pixman_fill_mmx(i32* nocapture %bits, i32 %stride, i32 %bpp, i32 %x, i32 %y, i32 %width, i32 %height, i32 %xor) nounwind ssp { 9 entry: 10 %conv = zext i32 %xor to i64 11 %shl = shl nuw i64 %conv, 32 12 %or = or i64 %shl, %conv 13 %0 = bitcast i64 %or to x86_mmx 14 ; CHECK: movq [[MMXR:%mm[0-7],]] {{%mm[0-7]}} 15 ; CHECK-NEXT: movq [[MMXR]] {{%mm[0-7]}} 16 ; CHECK-NEXT: movq [[MMXR]] {{%mm[0-7]}} 17 ; CHECK-NEXT: movq [[MMXR]] {{%mm[0-7]}} 18 ; CHECK-NEXT: movq [[MMXR]] {{%mm[0-7]}} 19 ; CHECK-NEXT: movq [[MMXR]] {{%mm[0-7]}} 20 ; CHECK-NEXT: movq [[MMXR]] {{%mm[0-7]}} 21 %1 = tail call %0 asm "movq\09\09$7,\09$0\0Amovq\09\09$7,\09$1\0Amovq\09\09$7,\09$2\0Amovq\09\09$7,\09$3\0Amovq\09\09$7,\09$4\0Amovq\09\09$7,\09$5\0Amovq\09\09$7,\09$6\0A", "=&y,=&y,=&y,=&y,=&y,=&y,=y,y,~{dirflag},~{fpsr},~{flags}"(x86_mmx %0) nounwind, !srcloc !0 22 %asmresult = extractvalue %0 %1, 0 23 %asmresult6 = extractvalue %0 %1, 1 24 %asmresult7 = extractvalue %0 %1, 2 25 %asmresult8 = extractvalue %0 %1, 3 26 %asmresult9 = extractvalue %0 %1, 4 27 %asmresult10 = extractvalue %0 %1, 5 28 %asmresult11 = extractvalue %0 %1, 6 29 ; CHECK: movq {{%mm[0-7]}}, 30 ; CHECK-NEXT: movq {{%mm[0-7]}}, 31 ; CHECK-NEXT: movq {{%mm[0-7]}}, 32 ; CHECK-NEXT: movq {{%mm[0-7]}}, 33 ; CHECK-NEXT: movq {{%mm[0-7]}}, 34 ; CHECK-NEXT: movq {{%mm[0-7]}}, 35 ; CHECK-NEXT: movq {{%mm[0-7]}}, 36 ; CHECK-NEXT: movq {{%mm[0-7]}}, 37 tail call void asm sideeffect "movq\09$1,\09 ($0)\0Amovq\09$2,\09 8($0)\0Amovq\09$3,\0916($0)\0Amovq\09$4,\0924($0)\0Amovq\09$5,\0932($0)\0Amovq\09$6,\0940($0)\0Amovq\09$7,\0948($0)\0Amovq\09$8,\0956($0)\0A", "r,y,y,y,y,y,y,y,y,~{memory},~{dirflag},~{fpsr},~{flags}"(i8* undef, x86_mmx %0, x86_mmx %asmresult, x86_mmx %asmresult6, x86_mmx %asmresult7, x86_mmx %asmresult8, x86_mmx %asmresult9, x86_mmx %asmresult10, x86_mmx %asmresult11) nounwind, !srcloc !1 38 tail call void @llvm.x86.mmx.emms() nounwind 39 ret i32 1 40 } 41 42 declare void @llvm.x86.mmx.emms() nounwind 43 44 !0 = !{i32 888, i32 917, i32 945, i32 973, i32 1001, i32 1029, i32 1057} 45 !1 = !{i32 1390, i32 1430, i32 1469, i32 1508, i32 1547, i32 1586, i32 1625, i32 1664} 46