kusano 2b45e8
/*********************************************************************/
kusano 2b45e8
/* Copyright 2009, 2010 The University of Texas at Austin.           */
kusano 2b45e8
/* All rights reserved.                                              */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/* Redistribution and use in source and binary forms, with or        */
kusano 2b45e8
/* without modification, are permitted provided that the following   */
kusano 2b45e8
/* conditions are met:                                               */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/*   1. Redistributions of source code must retain the above         */
kusano 2b45e8
/*      copyright notice, this list of conditions and the following  */
kusano 2b45e8
/*      disclaimer.                                                  */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/*   2. Redistributions in binary form must reproduce the above      */
kusano 2b45e8
/*      copyright notice, this list of conditions and the following  */
kusano 2b45e8
/*      disclaimer in the documentation and/or other materials       */
kusano 2b45e8
/*      provided with the distribution.                              */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/*    THIS  SOFTWARE IS PROVIDED  BY THE  UNIVERSITY OF  TEXAS AT    */
kusano 2b45e8
/*    AUSTIN  ``AS IS''  AND ANY  EXPRESS OR  IMPLIED WARRANTIES,    */
kusano 2b45e8
/*    INCLUDING, BUT  NOT LIMITED  TO, THE IMPLIED  WARRANTIES OF    */
kusano 2b45e8
/*    MERCHANTABILITY  AND FITNESS FOR  A PARTICULAR  PURPOSE ARE    */
kusano 2b45e8
/*    DISCLAIMED.  IN  NO EVENT SHALL THE UNIVERSITY  OF TEXAS AT    */
kusano 2b45e8
/*    AUSTIN OR CONTRIBUTORS BE  LIABLE FOR ANY DIRECT, INDIRECT,    */
kusano 2b45e8
/*    INCIDENTAL,  SPECIAL, EXEMPLARY,  OR  CONSEQUENTIAL DAMAGES    */
kusano 2b45e8
/*    (INCLUDING, BUT  NOT LIMITED TO,  PROCUREMENT OF SUBSTITUTE    */
kusano 2b45e8
/*    GOODS  OR  SERVICES; LOSS  OF  USE,  DATA,  OR PROFITS;  OR    */
kusano 2b45e8
/*    BUSINESS INTERRUPTION) HOWEVER CAUSED  AND ON ANY THEORY OF    */
kusano 2b45e8
/*    LIABILITY, WHETHER  IN CONTRACT, STRICT  LIABILITY, OR TORT    */
kusano 2b45e8
/*    (INCLUDING NEGLIGENCE OR OTHERWISE)  ARISING IN ANY WAY OUT    */
kusano 2b45e8
/*    OF  THE  USE OF  THIS  SOFTWARE,  EVEN  IF ADVISED  OF  THE    */
kusano 2b45e8
/*    POSSIBILITY OF SUCH DAMAGE.                                    */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/* The views and conclusions contained in the software and           */
kusano 2b45e8
/* documentation are those of the authors and should not be          */
kusano 2b45e8
/* interpreted as representing official policies, either expressed   */
kusano 2b45e8
/* or implied, of The University of Texas at Austin.                 */
kusano 2b45e8
/*********************************************************************/
kusano 2b45e8
kusano 2b45e8
#define ASSEMBLER
kusano 2b45e8
#include "common.h"
kusano 2b45e8
kusano 2b45e8
#define STACK	16
kusano 2b45e8
#define ARGS	 0
kusano 2b45e8
	
kusano 2b45e8
#define STACK_M		 4 + STACK + ARGS(%esp)
kusano 2b45e8
#define ALPHA		16 + STACK + ARGS(%esp)
kusano 2b45e8
#define STACK_X		24 + STACK + ARGS(%esp)
kusano 2b45e8
#define STACK_INCX	28 + STACK + ARGS(%esp)
kusano 2b45e8
#define STACK_Y		32 + STACK + ARGS(%esp)
kusano 2b45e8
#define STACK_INCY	36 + STACK + ARGS(%esp)
kusano 2b45e8
kusano 2b45e8
#define M	 %ebx
kusano 2b45e8
#define X	 %esi
kusano 2b45e8
#define Y	 %edi
kusano 2b45e8
#define INCX	 %ecx
kusano 2b45e8
#define INCY	 %edx
kusano 2b45e8
	
kusano 2b45e8
#define PREFETCHSIZE	 64
kusano 2b45e8
kusano 2b45e8
	PROLOGUE
kusano 2b45e8
kusano 2b45e8
	pushl	%edi
kusano 2b45e8
	pushl	%esi
kusano 2b45e8
	pushl	%ebx
kusano 2b45e8
	pushl	%ebp
kusano 2b45e8
kusano 2b45e8
	PROFCODE
kusano 2b45e8
kusano 2b45e8
	movlpd	ALPHA, %xmm7
kusano 2b45e8
	unpcklpd %xmm7, %xmm7
kusano 2b45e8
kusano 2b45e8
	movl	STACK_M,    M
kusano 2b45e8
	movl	STACK_X,    X
kusano 2b45e8
	movl	STACK_INCX, INCX
kusano 2b45e8
	movl	STACK_Y,    Y
kusano 2b45e8
	movl	STACK_INCY, INCY
kusano 2b45e8
kusano 2b45e8
	leal	(, INCX, SIZE), INCX
kusano 2b45e8
	leal	(, INCY, SIZE), INCY
kusano 2b45e8
kusano 2b45e8
	testl	M, M
kusano 2b45e8
	jle	.L999
kusano 2b45e8
kusano 2b45e8
	cmpl	$SIZE, INCX
kusano 2b45e8
	jne	.L100
kusano 2b45e8
	cmpl	$SIZE, INCY
kusano 2b45e8
	jne	.L100
kusano 2b45e8
kusano 2b45e8
	testl	$SIZE, Y
kusano 2b45e8
	je	.L00
kusano 2b45e8
kusano 2b45e8
	movlpd	0 * SIZE(X), %xmm0
kusano 2b45e8
	mulsd	%xmm7, %xmm0
kusano 2b45e8
	addsd	0 * SIZE(Y), %xmm0
kusano 2b45e8
	movlpd	%xmm0, 0 * SIZE(Y)
kusano 2b45e8
	addl	$1 * SIZE, X
kusano 2b45e8
	addl	$1 * SIZE, Y
kusano 2b45e8
	decl	M
kusano 2b45e8
	jle	.L999
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L00:
kusano 2b45e8
	testl	$SIZE, X
kusano 2b45e8
	jne	.L20
kusano 2b45e8
kusano 2b45e8
	movl	M,  %eax
kusano 2b45e8
	sarl	$4,  %eax
kusano 2b45e8
	jle	.L15
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L11:
kusano 2b45e8
	prefetch     (PREFETCHSIZE + 0) * SIZE(X)
kusano 2b45e8
kusano 2b45e8
	movapd	 0 * SIZE(X), %xmm0
kusano 2b45e8
	mulpd	%xmm7, %xmm0
kusano 2b45e8
	addpd	 0 * SIZE(Y), %xmm0
kusano 2b45e8
	movapd	%xmm0,  0 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movapd	 2 * SIZE(X), %xmm1
kusano 2b45e8
	mulpd	%xmm7, %xmm1
kusano 2b45e8
	addpd	 2 * SIZE(Y), %xmm1
kusano 2b45e8
	movapd	%xmm1,  2 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	prefetchw      (PREFETCHSIZE + 0) * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movapd	 4 * SIZE(X), %xmm2
kusano 2b45e8
	mulpd	%xmm7, %xmm2
kusano 2b45e8
	addpd	 4 * SIZE(Y), %xmm2
kusano 2b45e8
	movapd	%xmm2,  4 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movapd	 6 * SIZE(X), %xmm3
kusano 2b45e8
	mulpd	%xmm7, %xmm3
kusano 2b45e8
	addpd	 6 * SIZE(Y), %xmm3
kusano 2b45e8
	movapd	%xmm3,  6 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	prefetch     (PREFETCHSIZE + 8) * SIZE(X)
kusano 2b45e8
kusano 2b45e8
	movapd	 8 * SIZE(X), %xmm0
kusano 2b45e8
	mulpd	%xmm7, %xmm0
kusano 2b45e8
	addpd	 8 * SIZE(Y), %xmm0
kusano 2b45e8
	movapd	%xmm0, 8 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movapd	10 * SIZE(X), %xmm1
kusano 2b45e8
	mulpd	%xmm7, %xmm1
kusano 2b45e8
	addpd	10 * SIZE(Y), %xmm1
kusano 2b45e8
	movapd	%xmm1, 10 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	prefetchw      (PREFETCHSIZE + 8) * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movapd	12 * SIZE(X), %xmm2
kusano 2b45e8
	mulpd	%xmm7, %xmm2
kusano 2b45e8
	addpd	12 * SIZE(Y), %xmm2
kusano 2b45e8
	movapd	%xmm2, 12 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movapd	14 * SIZE(X), %xmm3
kusano 2b45e8
	mulpd	%xmm7, %xmm3
kusano 2b45e8
	addpd	14 * SIZE(Y), %xmm3
kusano 2b45e8
	movapd	%xmm3, 14 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	addl	$16 * SIZE, X
kusano 2b45e8
	addl	$16 * SIZE, Y
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L11
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L15:
kusano 2b45e8
	movl	M,  %eax
kusano 2b45e8
	testl	$8, %eax
kusano 2b45e8
	jle	.L16
kusano 2b45e8
kusano 2b45e8
	movapd	 0 * SIZE(X), %xmm0
kusano 2b45e8
	mulpd	%xmm7, %xmm0
kusano 2b45e8
	addpd	 0 * SIZE(Y), %xmm0
kusano 2b45e8
	movapd	%xmm0,  0 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movapd	 2 * SIZE(X), %xmm1
kusano 2b45e8
	mulpd	%xmm7, %xmm1
kusano 2b45e8
	addpd	 2 * SIZE(Y), %xmm1
kusano 2b45e8
	movapd	%xmm1,  2 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movapd	 4 * SIZE(X), %xmm2
kusano 2b45e8
	mulpd	%xmm7, %xmm2
kusano 2b45e8
	addpd	 4 * SIZE(Y), %xmm2
kusano 2b45e8
	movapd	%xmm2,  4 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movapd	 6 * SIZE(X), %xmm3
kusano 2b45e8
	mulpd	%xmm7, %xmm3
kusano 2b45e8
	addpd	 6 * SIZE(Y), %xmm3
kusano 2b45e8
	movapd	%xmm3,  6 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	addl	$8 * SIZE, X
kusano 2b45e8
	addl	$8 * SIZE, Y
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L16:
kusano 2b45e8
	testl	$4, %eax
kusano 2b45e8
	jle	.L17
kusano 2b45e8
kusano 2b45e8
	movapd	 0 * SIZE(X), %xmm0
kusano 2b45e8
	mulpd	%xmm7, %xmm0
kusano 2b45e8
	addpd	 0 * SIZE(Y), %xmm0
kusano 2b45e8
	movapd	%xmm0,  0 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movapd	 2 * SIZE(X), %xmm1
kusano 2b45e8
	mulpd	%xmm7, %xmm1
kusano 2b45e8
	addpd	 2 * SIZE(Y), %xmm1
kusano 2b45e8
	movapd	%xmm1,  2 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	addl	$4 * SIZE, X
kusano 2b45e8
	addl	$4 * SIZE, Y
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L17:
kusano 2b45e8
	testl	$2, %eax
kusano 2b45e8
	jle	.L18
kusano 2b45e8
kusano 2b45e8
	movapd	 0 * SIZE(X), %xmm0
kusano 2b45e8
	mulpd	%xmm7, %xmm0
kusano 2b45e8
	addpd	 0 * SIZE(Y), %xmm0
kusano 2b45e8
	movapd	%xmm0,  0 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, X
kusano 2b45e8
	addl	$2 * SIZE, Y
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L18:
kusano 2b45e8
	testl	$1, %eax
kusano 2b45e8
	jle	.L99
kusano 2b45e8
kusano 2b45e8
	movlpd	0 * SIZE(X), %xmm0
kusano 2b45e8
	mulsd	%xmm7, %xmm0
kusano 2b45e8
	addsd	0 * SIZE(Y), %xmm0
kusano 2b45e8
	movlpd	%xmm0, 	0 * SIZE(Y)
kusano 2b45e8
	jmp	.L99
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L20:
kusano 2b45e8
	movl	M, %eax
kusano 2b45e8
	sarl	$4,   %eax
kusano 2b45e8
	jle	.L25
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L21:
kusano 2b45e8
#ifdef OPTERON
kusano 2b45e8
	prefetcht0     (PREFETCHSIZE + 0) * SIZE(X)
kusano 2b45e8
	prefetchw      (PREFETCHSIZE + 0) * SIZE(Y)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movlpd	 0 * SIZE(X), %xmm0
kusano 2b45e8
	movhpd	 1 * SIZE(X), %xmm0
kusano 2b45e8
	mulpd	%xmm7, %xmm0
kusano 2b45e8
	addpd	 0 * SIZE(Y), %xmm0
kusano 2b45e8
	movapd	%xmm0,  0 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movlpd	 2 * SIZE(X), %xmm1
kusano 2b45e8
	movhpd	 3 * SIZE(X), %xmm1
kusano 2b45e8
	mulpd	%xmm7, %xmm1
kusano 2b45e8
	addpd	 2 * SIZE(Y), %xmm1
kusano 2b45e8
	movapd	%xmm1,  2 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movlpd	 4 * SIZE(X), %xmm2
kusano 2b45e8
	movhpd	 5 * SIZE(X), %xmm2
kusano 2b45e8
	mulpd	%xmm7, %xmm2
kusano 2b45e8
	addpd	 4 * SIZE(Y), %xmm2
kusano 2b45e8
	movapd	%xmm2,  4 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movlpd	 6 * SIZE(X), %xmm3
kusano 2b45e8
	movhpd	 7 * SIZE(X), %xmm3
kusano 2b45e8
	mulpd	%xmm7, %xmm3
kusano 2b45e8
	addpd	 6 * SIZE(Y), %xmm3
kusano 2b45e8
	movapd	%xmm3,  6 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
#ifdef OPTERON
kusano 2b45e8
	prefetcht0     (PREFETCHSIZE + 8) * SIZE(X)
kusano 2b45e8
	prefetchw      (PREFETCHSIZE + 8) * SIZE(Y)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movlpd	 8 * SIZE(X), %xmm0
kusano 2b45e8
	movhpd	 9 * SIZE(X), %xmm0
kusano 2b45e8
	mulpd	%xmm7, %xmm0
kusano 2b45e8
	addpd	 8 * SIZE(Y), %xmm0
kusano 2b45e8
	movapd	%xmm0, 8 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movlpd	10 * SIZE(X), %xmm1
kusano 2b45e8
	movhpd	11 * SIZE(X), %xmm1
kusano 2b45e8
	mulpd	%xmm7, %xmm1
kusano 2b45e8
	addpd	10 * SIZE(Y), %xmm1
kusano 2b45e8
	movapd	%xmm1, 10 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movlpd	12 * SIZE(X), %xmm2
kusano 2b45e8
	movhpd	13 * SIZE(X), %xmm2
kusano 2b45e8
	mulpd	%xmm7, %xmm2
kusano 2b45e8
	addpd	12 * SIZE(Y), %xmm2
kusano 2b45e8
	movapd	%xmm2, 12 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movlpd	14 * SIZE(X), %xmm3
kusano 2b45e8
	movhpd	15 * SIZE(X), %xmm3
kusano 2b45e8
	mulpd	%xmm7, %xmm3
kusano 2b45e8
	addpd	14 * SIZE(Y), %xmm3
kusano 2b45e8
	movapd	%xmm3, 14 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	addl	$16 * SIZE, X
kusano 2b45e8
	addl	$16 * SIZE, Y
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L21
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L25:
kusano 2b45e8
	movl	M,  %eax
kusano 2b45e8
	testl	$8, %eax
kusano 2b45e8
	jle	.L26
kusano 2b45e8
kusano 2b45e8
	movlpd	 0 * SIZE(X), %xmm0
kusano 2b45e8
	movhpd	 1 * SIZE(X), %xmm0
kusano 2b45e8
	mulpd	%xmm7, %xmm0
kusano 2b45e8
	addpd	 0 * SIZE(Y), %xmm0
kusano 2b45e8
	movapd	%xmm0,  0 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movlpd	 2 * SIZE(X), %xmm1
kusano 2b45e8
	movhpd	 3 * SIZE(X), %xmm1
kusano 2b45e8
	mulpd	%xmm7, %xmm1
kusano 2b45e8
	addpd	 2 * SIZE(Y), %xmm1
kusano 2b45e8
	movapd	%xmm1,  2 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movlpd	 4 * SIZE(X), %xmm2
kusano 2b45e8
	movhpd	 5 * SIZE(X), %xmm2
kusano 2b45e8
	mulpd	%xmm7, %xmm2
kusano 2b45e8
	addpd	 4 * SIZE(Y), %xmm2
kusano 2b45e8
	movapd	%xmm2,  4 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movlpd	 6 * SIZE(X), %xmm3
kusano 2b45e8
	movhpd	 7 * SIZE(X), %xmm3
kusano 2b45e8
	mulpd	%xmm7, %xmm3
kusano 2b45e8
	addpd	 6 * SIZE(Y), %xmm3
kusano 2b45e8
	movapd	%xmm3,  6 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	addl	$8 * SIZE, X
kusano 2b45e8
	addl	$8 * SIZE, Y
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L26:
kusano 2b45e8
	testl	$4, %eax
kusano 2b45e8
	jle	.L27
kusano 2b45e8
kusano 2b45e8
	movlpd	 0 * SIZE(X), %xmm0
kusano 2b45e8
	movhpd	 1 * SIZE(X), %xmm0
kusano 2b45e8
	mulpd	%xmm7, %xmm0
kusano 2b45e8
	addpd	 0 * SIZE(Y), %xmm0
kusano 2b45e8
	movapd	%xmm0,  0 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	movlpd	 2 * SIZE(X), %xmm1
kusano 2b45e8
	movhpd	 3 * SIZE(X), %xmm1
kusano 2b45e8
	mulpd	%xmm7, %xmm1
kusano 2b45e8
	addpd	 2 * SIZE(Y), %xmm1
kusano 2b45e8
	movapd	%xmm1,  2 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	addl	$4 * SIZE, X
kusano 2b45e8
	addl	$4 * SIZE, Y
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L27:
kusano 2b45e8
	testl	$2, %eax
kusano 2b45e8
	jle	.L28
kusano 2b45e8
kusano 2b45e8
	movlpd	 0 * SIZE(X), %xmm0
kusano 2b45e8
	movhpd	 1 * SIZE(X), %xmm0
kusano 2b45e8
	mulpd	%xmm7, %xmm0
kusano 2b45e8
	addpd	 0 * SIZE(Y), %xmm0
kusano 2b45e8
	movapd	%xmm0,  0 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, X
kusano 2b45e8
	addl	$2 * SIZE, Y
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L28:
kusano 2b45e8
	testl	$1, %eax
kusano 2b45e8
	jle	.L99
kusano 2b45e8
kusano 2b45e8
	movlpd	0 * SIZE(X), %xmm0
kusano 2b45e8
	mulsd	%xmm7, %xmm0
kusano 2b45e8
	addsd	0 * SIZE(Y), %xmm0
kusano 2b45e8
	movlpd	%xmm0, 	0 * SIZE(Y)
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L99:
kusano 2b45e8
	xorl	%eax,%eax
kusano 2b45e8
	popl	%ebp
kusano 2b45e8
	popl	%ebx
kusano 2b45e8
	popl	%esi
kusano 2b45e8
	popl	%edi
kusano 2b45e8
	ret
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L100:
kusano 2b45e8
	movl	M, %eax
kusano 2b45e8
	movl	Y, %ebp
kusano 2b45e8
	sarl	$3,   %eax
kusano 2b45e8
	jle	.L114
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L110:
kusano 2b45e8
	movlpd	0 * SIZE(X), %xmm0
kusano 2b45e8
	addl	INCX, X
kusano 2b45e8
	movhpd	0 * SIZE(X), %xmm0
kusano 2b45e8
	addl	INCX, X
kusano 2b45e8
	mulpd	%xmm7, %xmm0
kusano 2b45e8
kusano 2b45e8
	movlpd	0 * SIZE(%ebp), %xmm6
kusano 2b45e8
	addl	INCY, %ebp
kusano 2b45e8
	movhpd	0 * SIZE(%ebp), %xmm6
kusano 2b45e8
	addl	INCY, %ebp
kusano 2b45e8
	addpd	%xmm6, %xmm0
kusano 2b45e8
kusano 2b45e8
	movlpd	0 * SIZE(X), %xmm1
kusano 2b45e8
	addl	INCX, X
kusano 2b45e8
	movhpd	0 * SIZE(X), %xmm1
kusano 2b45e8
	addl	INCX, X
kusano 2b45e8
	mulpd	%xmm7, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlpd	0 * SIZE(%ebp), %xmm6
kusano 2b45e8
	addl	INCY, %ebp
kusano 2b45e8
	movhpd	0 * SIZE(%ebp), %xmm6
kusano 2b45e8
	addl	INCY, %ebp
kusano 2b45e8
	addpd	%xmm6, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlpd	0 * SIZE(X), %xmm2
kusano 2b45e8
	addl	INCX, X
kusano 2b45e8
	movhpd	0 * SIZE(X), %xmm2
kusano 2b45e8
	addl	INCX, X
kusano 2b45e8
	mulpd	%xmm7, %xmm2
kusano 2b45e8
kusano 2b45e8
	movlpd	0 * SIZE(%ebp), %xmm6
kusano 2b45e8
	addl	INCY, %ebp
kusano 2b45e8
	movhpd	0 * SIZE(%ebp), %xmm6
kusano 2b45e8
	addl	INCY, %ebp
kusano 2b45e8
	addpd	%xmm6, %xmm2
kusano 2b45e8
kusano 2b45e8
	movlpd	0 * SIZE(X), %xmm3
kusano 2b45e8
	addl	INCX, X
kusano 2b45e8
	movhpd	0 * SIZE(X), %xmm3
kusano 2b45e8
	addl	INCX, X
kusano 2b45e8
	mulpd	%xmm7, %xmm3
kusano 2b45e8
kusano 2b45e8
	movlpd	0 * SIZE(%ebp), %xmm6
kusano 2b45e8
	addl	INCY, %ebp
kusano 2b45e8
	movhpd	0 * SIZE(%ebp), %xmm6
kusano 2b45e8
	addl	INCY, %ebp
kusano 2b45e8
	addpd	%xmm6, %xmm3
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm0, 0 * SIZE(Y)
kusano 2b45e8
	addl	INCY, Y
kusano 2b45e8
	movhpd	%xmm0, 0 * SIZE(Y)
kusano 2b45e8
	addl	INCY, Y
kusano 2b45e8
	movlpd	%xmm1, 0 * SIZE(Y)
kusano 2b45e8
	addl	INCY, Y
kusano 2b45e8
	movhpd	%xmm1, 0 * SIZE(Y)
kusano 2b45e8
	addl	INCY, Y
kusano 2b45e8
	movlpd	%xmm2, 0 * SIZE(Y)
kusano 2b45e8
	addl	INCY, Y
kusano 2b45e8
	movhpd	%xmm2, 0 * SIZE(Y)
kusano 2b45e8
	addl	INCY, Y
kusano 2b45e8
	movlpd	%xmm3, 0 * SIZE(Y)
kusano 2b45e8
	addl	INCY, Y
kusano 2b45e8
	movhpd	%xmm3, 0 * SIZE(Y)
kusano 2b45e8
	addl	INCY, Y
kusano 2b45e8
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L110
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L114:
kusano 2b45e8
	movl	M, %eax
kusano 2b45e8
	andl	$7,   %eax
kusano 2b45e8
	jle	.L999
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L115:
kusano 2b45e8
	movlpd	(X), %xmm0
kusano 2b45e8
	addl	INCX, X
kusano 2b45e8
	mulsd	%xmm7, %xmm0
kusano 2b45e8
	addsd	(Y), %xmm0
kusano 2b45e8
	movlpd	%xmm0, (Y)
kusano 2b45e8
	addl	INCY, Y
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L115
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L999:
kusano 2b45e8
	xorl	%eax,%eax
kusano 2b45e8
	popl	%ebp
kusano 2b45e8
	popl	%ebx
kusano 2b45e8
	popl	%esi
kusano 2b45e8
	popl	%edi
kusano 2b45e8
	ret
kusano 2b45e8
kusano 2b45e8
	EPILOGUE