Blame thirdparty/openblas/xianyi-OpenBLAS-e6e87a2/kernel/x86/zgemm3m_kernel_4x4_prescott.S

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
	
kusano 2b45e8
#define OLD_M	 4 + STACK(%esi)
kusano 2b45e8
#define OLD_N	 8 + STACK(%esi)
kusano 2b45e8
#define OLD_K	12 + STACK(%esi)
kusano 2b45e8
#define OLD_ALPHA_R	16 + STACK(%esi)
kusano 2b45e8
#define OLD_ALPHA_I	20 + STACK(%esi)
kusano 2b45e8
#define OLD_A	24 + STACK(%esi)
kusano 2b45e8
#define OLD_B	28 + STACK(%esi)
kusano 2b45e8
#define OLD_C	32 + STACK(%esi)
kusano 2b45e8
#define OLD_LDC	36 + STACK(%esi)
kusano 2b45e8
kusano 2b45e8
#define ALPHA	 0(%esp)
kusano 2b45e8
#define K	16(%esp)
kusano 2b45e8
#define N	20(%esp)
kusano 2b45e8
#define M	24(%esp)
kusano 2b45e8
#define A	28(%esp)
kusano 2b45e8
#define C	32(%esp)
kusano 2b45e8
#define J	36(%esp)
kusano 2b45e8
#define OLD_STACK 40(%esp)
kusano 2b45e8
#define OFFSET  44(%esp)
kusano 2b45e8
#define KK	48(%esp)
kusano 2b45e8
#define KKK	52(%esp)
kusano 2b45e8
#define BUFFER 128(%esp)
kusano 2b45e8
kusano 2b45e8
#if defined(PENRYN) || defined(DUNNINGTON)
kusano 2b45e8
#define PREFETCH     prefetcht0
kusano 2b45e8
#define PREFETCHSIZE   96
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef PENTIUM4
kusano 2b45e8
#define PREFETCH     prefetcht0
kusano 2b45e8
#define PREFETCHSIZE   96
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef PENTIUMM
kusano 2b45e8
#define PREFETCH     prefetcht0
kusano 2b45e8
#define PREFETCHSIZE   96
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#define AA	%edx
kusano 2b45e8
#define	BB	%ecx
kusano 2b45e8
#define LDC	%ebp
kusano 2b45e8
kusano 2b45e8
#define KERNEL1(address) \
kusano 2b45e8
	mulps	%xmm0, %xmm2; \
kusano 2b45e8
	PREFETCH  (PREFETCHSIZE +  0) * SIZE + (address) * SIZE(AA); \
kusano 2b45e8
	addps	%xmm2, %xmm4; \
kusano 2b45e8
	movshdup  0 * SIZE + 2 * (address) * SIZE(BB), %xmm2; \
kusano 2b45e8
	mulps	%xmm0, %xmm2; \
kusano 2b45e8
	addps	%xmm2, %xmm5; \
kusano 2b45e8
	movsldup  4 * SIZE + 2 * (address) * SIZE(BB), %xmm2; \
kusano 2b45e8
	mulps	%xmm0, %xmm2; \
kusano 2b45e8
	addps	%xmm2, %xmm6; \
kusano 2b45e8
	movshdup  4 * SIZE + 2 * (address) * SIZE(BB), %xmm2; \
kusano 2b45e8
	mulps	%xmm0, %xmm2; \
kusano 2b45e8
	movaps	  4 * SIZE + 1 * (address) * SIZE(AA), %xmm0; \
kusano 2b45e8
	addps	%xmm2, %xmm7; \
kusano 2b45e8
	movsldup  8 * SIZE + 2 * (address) * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
#define KERNEL2(address) \
kusano 2b45e8
	mulps	%xmm0, %xmm2; \
kusano 2b45e8
	addps	%xmm2, %xmm4; \
kusano 2b45e8
	movshdup  8 * SIZE + 2 * (address) * SIZE(BB), %xmm2; \
kusano 2b45e8
	mulps	%xmm0, %xmm2; \
kusano 2b45e8
	addps	%xmm2, %xmm5; \
kusano 2b45e8
	movsldup 12 * SIZE + 2 * (address) * SIZE(BB), %xmm2; \
kusano 2b45e8
	mulps	%xmm0, %xmm2; \
kusano 2b45e8
	addps	%xmm2, %xmm6; \
kusano 2b45e8
	movshdup 12 * SIZE + 2 * (address) * SIZE(BB), %xmm2; \
kusano 2b45e8
	mulps	%xmm0, %xmm2; \
kusano 2b45e8
	movaps	  8 * SIZE + 1 * (address) * SIZE(AA), %xmm0; \
kusano 2b45e8
	addps	%xmm2, %xmm7; \
kusano 2b45e8
	movsldup 32 * SIZE + 2 * (address) * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
#define KERNEL3(address) \
kusano 2b45e8
	mulps	%xmm0, %xmm3; \
kusano 2b45e8
	addps	%xmm3, %xmm4; \
kusano 2b45e8
	movshdup 16 * SIZE + 2 * (address) * SIZE(BB), %xmm3; \
kusano 2b45e8
	mulps	%xmm0, %xmm3; \
kusano 2b45e8
	addps	%xmm3, %xmm5; \
kusano 2b45e8
	movsldup 20 * SIZE + 2 * (address) * SIZE(BB), %xmm3; \
kusano 2b45e8
	mulps	%xmm0, %xmm3; \
kusano 2b45e8
	addps	%xmm3, %xmm6; \
kusano 2b45e8
	movshdup 20 * SIZE + 2 * (address) * SIZE(BB), %xmm3; \
kusano 2b45e8
	mulps	%xmm0, %xmm3; \
kusano 2b45e8
	movaps	 12 * SIZE + 1 * (address) * SIZE(AA), %xmm0; \
kusano 2b45e8
	addps	%xmm3, %xmm7; \
kusano 2b45e8
	movsldup 24 * SIZE + 2 * (address) * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
#define KERNEL4(address) \
kusano 2b45e8
	mulps	%xmm0, %xmm3; \
kusano 2b45e8
	addps	%xmm3, %xmm4; \
kusano 2b45e8
	movshdup 24 * SIZE + 2 * (address) * SIZE(BB), %xmm3; \
kusano 2b45e8
	mulps	%xmm0, %xmm3; \
kusano 2b45e8
	addps	%xmm3, %xmm5; \
kusano 2b45e8
	movsldup 28 * SIZE + 2 * (address) * SIZE(BB), %xmm3; \
kusano 2b45e8
	mulps	%xmm0, %xmm3; \
kusano 2b45e8
	addps	%xmm3, %xmm6; \
kusano 2b45e8
	movshdup 28 * SIZE + 2 * (address) * SIZE(BB), %xmm3; \
kusano 2b45e8
	mulps	%xmm0, %xmm3; \
kusano 2b45e8
	movaps	 32 * SIZE + 1 * (address) * SIZE(AA), %xmm0; \
kusano 2b45e8
	addps	%xmm3, %xmm7; \
kusano 2b45e8
	movsldup 48 * SIZE + 2 * (address) * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
#define KERNEL5(address) \
kusano 2b45e8
	mulps	%xmm1, %xmm2; \
kusano 2b45e8
	addps	%xmm2, %xmm4; \
kusano 2b45e8
	movshdup 32 * SIZE + 2 * (address) * SIZE(BB), %xmm2; \
kusano 2b45e8
	mulps	%xmm1, %xmm2; \
kusano 2b45e8
	addps	%xmm2, %xmm5; \
kusano 2b45e8
	movsldup 36 * SIZE + 2 * (address) * SIZE(BB), %xmm2; \
kusano 2b45e8
	mulps	%xmm1, %xmm2; \
kusano 2b45e8
	addps	%xmm2, %xmm6; \
kusano 2b45e8
	movshdup 36 * SIZE + 2 * (address) * SIZE(BB), %xmm2; \
kusano 2b45e8
	mulps	%xmm1, %xmm2; \
kusano 2b45e8
	movaps	 20 * SIZE + 1 * (address) * SIZE(AA), %xmm1; \
kusano 2b45e8
	addps	%xmm2, %xmm7
kusano 2b45e8
kusano 2b45e8
#define KERNEL6(address) \
kusano 2b45e8
	movsldup 40 * SIZE + 2 * (address) * SIZE(BB), %xmm2; \
kusano 2b45e8
	mulps	%xmm1, %xmm2; \
kusano 2b45e8
	addps	%xmm2, %xmm4; \
kusano 2b45e8
	movshdup 40 * SIZE + 2 * (address) * SIZE(BB), %xmm2; \
kusano 2b45e8
	mulps	%xmm1, %xmm2; \
kusano 2b45e8
	addps	%xmm2, %xmm5; \
kusano 2b45e8
	movsldup 44 * SIZE + 2 * (address) * SIZE(BB), %xmm2; \
kusano 2b45e8
	mulps	%xmm1, %xmm2; \
kusano 2b45e8
	addps	%xmm2, %xmm6; \
kusano 2b45e8
	movshdup 44 * SIZE + 2 * (address) * SIZE(BB), %xmm2; \
kusano 2b45e8
	mulps	%xmm1, %xmm2; \
kusano 2b45e8
	movaps	 24 * SIZE + 1 * (address) * SIZE(AA), %xmm1; \
kusano 2b45e8
	addps	%xmm2, %xmm7; \
kusano 2b45e8
	movsldup 64 * SIZE + 2 * (address) * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
#define KERNEL7(address) \
kusano 2b45e8
	mulps	%xmm1, %xmm3; \
kusano 2b45e8
	addps	%xmm3, %xmm4; \
kusano 2b45e8
	movshdup 48 * SIZE + 2 * (address) * SIZE(BB), %xmm3; \
kusano 2b45e8
	mulps	%xmm1, %xmm3; \
kusano 2b45e8
	addps	%xmm3, %xmm5; \
kusano 2b45e8
	movsldup 52 * SIZE + 2 * (address) * SIZE(BB), %xmm3; \
kusano 2b45e8
	mulps	%xmm1, %xmm3; \
kusano 2b45e8
	addps	%xmm3, %xmm6; \
kusano 2b45e8
	movshdup 52 * SIZE + 2 * (address) * SIZE(BB), %xmm3; \
kusano 2b45e8
	mulps	%xmm1, %xmm3; \
kusano 2b45e8
	movaps	 28 * SIZE + 1 * (address) * SIZE(AA), %xmm1; \
kusano 2b45e8
	addps	%xmm3, %xmm7; \
kusano 2b45e8
	movsldup 56 * SIZE + 2 * (address) * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
#define KERNEL8(address) \
kusano 2b45e8
	mulps	%xmm1, %xmm3; \
kusano 2b45e8
	addps	%xmm3, %xmm4; \
kusano 2b45e8
	movshdup 56 * SIZE + 2 * (address) * SIZE(BB), %xmm3; \
kusano 2b45e8
	mulps	%xmm1, %xmm3; \
kusano 2b45e8
	addps	%xmm3, %xmm5; \
kusano 2b45e8
	movsldup 60 * SIZE + 2 * (address) * SIZE(BB), %xmm3; \
kusano 2b45e8
	mulps	%xmm1, %xmm3; \
kusano 2b45e8
	addps	%xmm3, %xmm6; \
kusano 2b45e8
	movshdup 60 * SIZE + 2 * (address) * SIZE(BB), %xmm3; \
kusano 2b45e8
	mulps	%xmm1, %xmm3; \
kusano 2b45e8
	movaps	 48 * SIZE + 1 * (address) * SIZE(AA), %xmm1; \
kusano 2b45e8
	addps	%xmm3, %xmm7; \
kusano 2b45e8
	movsldup 80 * SIZE + 2 * (address) * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
	PROLOGUE
kusano 2b45e8
kusano 2b45e8
	pushl	%ebp
kusano 2b45e8
	pushl	%edi
kusano 2b45e8
	pushl	%esi
kusano 2b45e8
	pushl	%ebx
kusano 2b45e8
kusano 2b45e8
	PROFCODE
kusano 2b45e8
kusano 2b45e8
	movl	%esp, %esi	# save old stack
kusano 2b45e8
	subl	$128 + LOCAL_BUFFER_SIZE, %esp
kusano 2b45e8
	movl	OLD_M, %ebx
kusano 2b45e8
	andl	$-1024, %esp	# align stack
kusano 2b45e8
kusano 2b45e8
	STACK_TOUCHING
kusano 2b45e8
kusano 2b45e8
	movl	OLD_N, %eax
kusano 2b45e8
	movl	OLD_K, %ecx
kusano 2b45e8
	movl	OLD_A, %edx
kusano 2b45e8
	movss	OLD_ALPHA_R,  %xmm0
kusano 2b45e8
	movss	OLD_ALPHA_I,  %xmm1
kusano 2b45e8
kusano 2b45e8
	movl	%ebx, M
kusano 2b45e8
	movl	%eax, N
kusano 2b45e8
	movl	%ecx, K
kusano 2b45e8
	movl	%edx, A
kusano 2b45e8
	movl	%esi, OLD_STACK
kusano 2b45e8
kusano 2b45e8
	movl	OLD_B, %edi
kusano 2b45e8
	movl	OLD_C, %ebx
kusano 2b45e8
kusano 2b45e8
	unpcklps %xmm1, %xmm0
kusano 2b45e8
	movlhps	 %xmm0, %xmm0
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, ALPHA
kusano 2b45e8
kusano 2b45e8
	movl	%ebx, C
kusano 2b45e8
	movl	OLD_LDC, LDC
kusano 2b45e8
#ifdef TRMMKERNEL
kusano 2b45e8
	movss	%xmm4, OFFSET
kusano 2b45e8
	movss	%xmm4, KK
kusano 2b45e8
#ifndef LEFT
kusano 2b45e8
	negl	KK
kusano 2b45e8
#endif	
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	sall	$ZBASE_SHIFT, LDC
kusano 2b45e8
kusano 2b45e8
	sarl	$2, %eax
kusano 2b45e8
	movl	%eax, J
kusano 2b45e8
	jle	.L40
kusano 2b45e8
kusano 2b45e8
.L01:
kusano 2b45e8
#if defined(TRMMKERNEL) && defined(LEFT)
kusano 2b45e8
	movl	OFFSET, %eax
kusano 2b45e8
	movl	%eax, KK
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
/* Copying to Sub Buffer */
kusano 2b45e8
	leal	BUFFER, %ecx
kusano 2b45e8
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	sarl	$2, %eax
kusano 2b45e8
	jle	.L05
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
	
kusano 2b45e8
.L02:
kusano 2b45e8
	movddup	 0 * SIZE(%edi), %xmm0
kusano 2b45e8
	movddup	 2 * SIZE(%edi), %xmm1
kusano 2b45e8
	movddup	 4 * SIZE(%edi), %xmm2
kusano 2b45e8
	movddup	 6 * SIZE(%edi), %xmm3
kusano 2b45e8
	movddup	 8 * SIZE(%edi), %xmm4
kusano 2b45e8
	movddup	10 * SIZE(%edi), %xmm5
kusano 2b45e8
	movddup	12 * SIZE(%edi), %xmm6
kusano 2b45e8
	movddup	14 * SIZE(%edi), %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  0 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm1,  4 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm2,  8 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm3, 12 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm4, 16 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm5, 20 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm6, 24 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm7, 28 * SIZE(%ecx)
kusano 2b45e8
kusano 2b45e8
#	prefetcht1	128 * SIZE(%ecx)
kusano 2b45e8
	prefetcht0	112 * SIZE(%edi)
kusano 2b45e8
kusano 2b45e8
	addl	$16 * SIZE, %edi
kusano 2b45e8
	addl	$32 * SIZE, %ecx
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jne	.L02
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L05:
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	andl	$3, %eax
kusano 2b45e8
	BRANCH
kusano 2b45e8
	jle	.L10
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L06:
kusano 2b45e8
	movddup	 0 * SIZE(%edi), %xmm0
kusano 2b45e8
	movddup	 2 * SIZE(%edi), %xmm1
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  0 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm1,  4 * SIZE(%ecx)
kusano 2b45e8
kusano 2b45e8
	addl	$4 * SIZE, %edi
kusano 2b45e8
	addl	$8 * SIZE, %ecx
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jne	.L06
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
	
kusano 2b45e8
.L10:
kusano 2b45e8
	movl	C, %esi		# coffset = c
kusano 2b45e8
	movl	A, %edx		# aoffset = a
kusano 2b45e8
	movl	M,  %ebx
kusano 2b45e8
	sarl	$2, %ebx	# i = (m >> 2)
kusano 2b45e8
	jle	.L20
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L11:
kusano 2b45e8
#if !defined(TRMMKERNEL) || \
kusano 2b45e8
	(defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
	(defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
#else
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax,   8), %eax
kusano 2b45e8
	leal	(AA, %eax, 2), AA
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movaps	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	pxor	%xmm4, %xmm4
kusano 2b45e8
	movaps	16 * SIZE(AA), %xmm1
kusano 2b45e8
	pxor	%xmm5, %xmm5
kusano 2b45e8
	movsldup  0 * SIZE(BB), %xmm2
kusano 2b45e8
	pxor	%xmm6, %xmm6
kusano 2b45e8
	movsldup 16 * SIZE(BB), %xmm3
kusano 2b45e8
	pxor	%xmm7, %xmm7
kusano 2b45e8
kusano 2b45e8
	leal	(LDC, LDC, 2), %eax
kusano 2b45e8
kusano 2b45e8
	prefetchnta	4 * SIZE(%esi)
kusano 2b45e8
	prefetchnta	4 * SIZE(%esi, LDC)
kusano 2b45e8
	prefetchnta	4 * SIZE(%esi, LDC, 2)
kusano 2b45e8
	prefetchnta	4 * SIZE(%esi, %eax)
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#elif (defined(LEFT) && !defined(TRANSA)) || (!defined(LEFT) && defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	movl	%eax, KKK	
kusano 2b45e8
#else
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LEFT
kusano 2b45e8
	addl	$4, %eax
kusano 2b45e8
#else
kusano 2b45e8
	addl	$4, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movl	%eax, KKK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if 1
kusano 2b45e8
	andl	$-8, %eax
kusano 2b45e8
	sall	$4, %eax
kusano 2b45e8
	je	.L15
kusano 2b45e8
.L1X:	
kusano 2b45e8
	KERNEL1(32 *  0)
kusano 2b45e8
	KERNEL2(32 *  0)
kusano 2b45e8
	KERNEL3(32 *  0)
kusano 2b45e8
	KERNEL4(32 *  0)
kusano 2b45e8
	KERNEL5(32 *  0)
kusano 2b45e8
	KERNEL6(32 *  0)
kusano 2b45e8
	KERNEL7(32 *  0)
kusano 2b45e8
	KERNEL8(32 *  0)
kusano 2b45e8
	cmpl	$128 *  1, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 *  1)
kusano 2b45e8
	KERNEL2(32 *  1)
kusano 2b45e8
	KERNEL3(32 *  1)
kusano 2b45e8
	KERNEL4(32 *  1)
kusano 2b45e8
	KERNEL5(32 *  1)
kusano 2b45e8
	KERNEL6(32 *  1)
kusano 2b45e8
	KERNEL7(32 *  1)
kusano 2b45e8
	KERNEL8(32 *  1)
kusano 2b45e8
	cmpl	$128 *  2, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 *  2)
kusano 2b45e8
	KERNEL2(32 *  2)
kusano 2b45e8
	KERNEL3(32 *  2)
kusano 2b45e8
	KERNEL4(32 *  2)
kusano 2b45e8
	KERNEL5(32 *  2)
kusano 2b45e8
	KERNEL6(32 *  2)
kusano 2b45e8
	KERNEL7(32 *  2)
kusano 2b45e8
	KERNEL8(32 *  2)
kusano 2b45e8
	cmpl	$128 *  3, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 *  3)
kusano 2b45e8
	KERNEL2(32 *  3)
kusano 2b45e8
	KERNEL3(32 *  3)
kusano 2b45e8
	KERNEL4(32 *  3)
kusano 2b45e8
	KERNEL5(32 *  3)
kusano 2b45e8
	KERNEL6(32 *  3)
kusano 2b45e8
	KERNEL7(32 *  3)
kusano 2b45e8
	KERNEL8(32 *  3)
kusano 2b45e8
	cmpl	$128 *  4, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 *  4)
kusano 2b45e8
	KERNEL2(32 *  4)
kusano 2b45e8
	KERNEL3(32 *  4)
kusano 2b45e8
	KERNEL4(32 *  4)
kusano 2b45e8
	KERNEL5(32 *  4)
kusano 2b45e8
	KERNEL6(32 *  4)
kusano 2b45e8
	KERNEL7(32 *  4)
kusano 2b45e8
	KERNEL8(32 *  4)
kusano 2b45e8
	cmpl	$128 *  5, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 *  5)
kusano 2b45e8
	KERNEL2(32 *  5)
kusano 2b45e8
	KERNEL3(32 *  5)
kusano 2b45e8
	KERNEL4(32 *  5)
kusano 2b45e8
	KERNEL5(32 *  5)
kusano 2b45e8
	KERNEL6(32 *  5)
kusano 2b45e8
	KERNEL7(32 *  5)
kusano 2b45e8
	KERNEL8(32 *  5)
kusano 2b45e8
	cmpl	$128 *  6, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 *  6)
kusano 2b45e8
	KERNEL2(32 *  6)
kusano 2b45e8
	KERNEL3(32 *  6)
kusano 2b45e8
	KERNEL4(32 *  6)
kusano 2b45e8
	KERNEL5(32 *  6)
kusano 2b45e8
	KERNEL6(32 *  6)
kusano 2b45e8
	KERNEL7(32 *  6)
kusano 2b45e8
	KERNEL8(32 *  6)
kusano 2b45e8
	cmpl	$128 *  7, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 *  7)
kusano 2b45e8
	KERNEL2(32 *  7)
kusano 2b45e8
	KERNEL3(32 *  7)
kusano 2b45e8
	KERNEL4(32 *  7)
kusano 2b45e8
	KERNEL5(32 *  7)
kusano 2b45e8
	KERNEL6(32 *  7)
kusano 2b45e8
	KERNEL7(32 *  7)
kusano 2b45e8
	KERNEL8(32 *  7)
kusano 2b45e8
#if 1
kusano 2b45e8
	cmpl	$128 *  8, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 *  8)
kusano 2b45e8
	KERNEL2(32 *  8)
kusano 2b45e8
	KERNEL3(32 *  8)
kusano 2b45e8
	KERNEL4(32 *  8)
kusano 2b45e8
	KERNEL5(32 *  8)
kusano 2b45e8
	KERNEL6(32 *  8)
kusano 2b45e8
	KERNEL7(32 *  8)
kusano 2b45e8
	KERNEL8(32 *  8)
kusano 2b45e8
	cmpl	$128 *  9, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 *  9)
kusano 2b45e8
	KERNEL2(32 *  9)
kusano 2b45e8
	KERNEL3(32 *  9)
kusano 2b45e8
	KERNEL4(32 *  9)
kusano 2b45e8
	KERNEL5(32 *  9)
kusano 2b45e8
	KERNEL6(32 *  9)
kusano 2b45e8
	KERNEL7(32 *  9)
kusano 2b45e8
	KERNEL8(32 *  9)
kusano 2b45e8
	cmpl	$128 * 10, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 * 10)
kusano 2b45e8
	KERNEL2(32 * 10)
kusano 2b45e8
	KERNEL3(32 * 10)
kusano 2b45e8
	KERNEL4(32 * 10)
kusano 2b45e8
	KERNEL5(32 * 10)
kusano 2b45e8
	KERNEL6(32 * 10)
kusano 2b45e8
	KERNEL7(32 * 10)
kusano 2b45e8
	KERNEL8(32 * 10)
kusano 2b45e8
	cmpl	$128 * 11, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 * 11)
kusano 2b45e8
	KERNEL2(32 * 11)
kusano 2b45e8
	KERNEL3(32 * 11)
kusano 2b45e8
	KERNEL4(32 * 11)
kusano 2b45e8
	KERNEL5(32 * 11)
kusano 2b45e8
	KERNEL6(32 * 11)
kusano 2b45e8
	KERNEL7(32 * 11)
kusano 2b45e8
	KERNEL8(32 * 11)
kusano 2b45e8
	cmpl	$128 * 12, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 * 12)
kusano 2b45e8
	KERNEL2(32 * 12)
kusano 2b45e8
	KERNEL3(32 * 12)
kusano 2b45e8
	KERNEL4(32 * 12)
kusano 2b45e8
	KERNEL5(32 * 12)
kusano 2b45e8
	KERNEL6(32 * 12)
kusano 2b45e8
	KERNEL7(32 * 12)
kusano 2b45e8
	KERNEL8(32 * 12)
kusano 2b45e8
	cmpl	$128 * 13, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 * 13)
kusano 2b45e8
	KERNEL2(32 * 13)
kusano 2b45e8
	KERNEL3(32 * 13)
kusano 2b45e8
	KERNEL4(32 * 13)
kusano 2b45e8
	KERNEL5(32 * 13)
kusano 2b45e8
	KERNEL6(32 * 13)
kusano 2b45e8
	KERNEL7(32 * 13)
kusano 2b45e8
	KERNEL8(32 * 13)
kusano 2b45e8
	cmpl	$128 * 14, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 * 14)
kusano 2b45e8
	KERNEL2(32 * 14)
kusano 2b45e8
	KERNEL3(32 * 14)
kusano 2b45e8
	KERNEL4(32 * 14)
kusano 2b45e8
	KERNEL5(32 * 14)
kusano 2b45e8
	KERNEL6(32 * 14)
kusano 2b45e8
	KERNEL7(32 * 14)
kusano 2b45e8
	KERNEL8(32 * 14)
kusano 2b45e8
	cmpl	$128 * 15, %eax
kusano 2b45e8
	jle	.L12
kusano 2b45e8
	KERNEL1(32 * 15)
kusano 2b45e8
	KERNEL2(32 * 15)
kusano 2b45e8
	KERNEL3(32 * 15)
kusano 2b45e8
	KERNEL4(32 * 15)
kusano 2b45e8
	KERNEL5(32 * 15)
kusano 2b45e8
	KERNEL6(32 * 15)
kusano 2b45e8
	KERNEL7(32 * 15)
kusano 2b45e8
	KERNEL8(32 * 15)
kusano 2b45e8
#else
kusano 2b45e8
	addl	$128 * 4  * SIZE, BB
kusano 2b45e8
	addl	$128 * 2  * SIZE, AA
kusano 2b45e8
	subl	$128 * 8, %eax
kusano 2b45e8
	jg	.L1X
kusano 2b45e8
	jmp	.L15
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
.L12:
kusano 2b45e8
	leal	(AA, %eax, 1), AA
kusano 2b45e8
	leal	(BB, %eax, 2), BB
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
#else
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L15
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L12:
kusano 2b45e8
	KERNEL1(32 *  7)
kusano 2b45e8
	KERNEL2(32 *  7)
kusano 2b45e8
	KERNEL3(32 *  7)
kusano 2b45e8
	KERNEL4(32 *  7)
kusano 2b45e8
	KERNEL5(32 *  7)
kusano 2b45e8
	KERNEL6(32 *  7)
kusano 2b45e8
	KERNEL7(32 *  7)
kusano 2b45e8
	KERNEL8(32 *  7)
kusano 2b45e8
kusano 2b45e8
	addl   $32 * SIZE, AA
kusano 2b45e8
	addl   $64 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L12
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
.L15:
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	KKK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movaps	ALPHA,  %xmm3
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L18
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L16:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movshdup  0 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsldup  4 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm6
kusano 2b45e8
	movshdup  4 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movaps	  4 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm7
kusano 2b45e8
	movsldup  8 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addl	$4 * SIZE, AA
kusano 2b45e8
	addl	$8 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L16
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L18:
kusano 2b45e8
	leal	(LDC, LDC, 2), %eax
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(%esi), %xmm0
kusano 2b45e8
	movhps	 2 * SIZE(%esi), %xmm0
kusano 2b45e8
	movsd	 4 * SIZE(%esi), %xmm1
kusano 2b45e8
	movhps	 6 * SIZE(%esi), %xmm1
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x50, %xmm4,  %xmm2
kusano 2b45e8
	pshufd	$0xfa, %xmm4,  %xmm4
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm3, %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm4
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm0
kusano 2b45e8
	addps	%xmm4, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm0,   0 * SIZE(%esi)
kusano 2b45e8
	movhps	%xmm0,   2 * SIZE(%esi)
kusano 2b45e8
	movlps	%xmm1,   4 * SIZE(%esi)
kusano 2b45e8
	movhps	%xmm1,   6 * SIZE(%esi)
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(%esi, LDC), %xmm0
kusano 2b45e8
	movhps	 2 * SIZE(%esi, LDC), %xmm0
kusano 2b45e8
	movsd	 4 * SIZE(%esi, LDC), %xmm1
kusano 2b45e8
	movhps	 6 * SIZE(%esi, LDC), %xmm1
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x50, %xmm5,  %xmm2
kusano 2b45e8
	pshufd	$0xfa, %xmm5,  %xmm5
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm3, %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm5
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm0
kusano 2b45e8
	addps	%xmm5, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm0,   0 * SIZE(%esi, LDC)
kusano 2b45e8
	movhps	%xmm0,   2 * SIZE(%esi, LDC)
kusano 2b45e8
	movlps	%xmm1,   4 * SIZE(%esi, LDC)
kusano 2b45e8
	movhps	%xmm1,   6 * SIZE(%esi, LDC)
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(%esi, LDC, 2), %xmm0
kusano 2b45e8
	movhps	 2 * SIZE(%esi, LDC, 2), %xmm0
kusano 2b45e8
	movsd	 4 * SIZE(%esi, LDC, 2), %xmm1
kusano 2b45e8
	movhps	 6 * SIZE(%esi, LDC, 2), %xmm1
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x50, %xmm6,  %xmm2
kusano 2b45e8
	pshufd	$0xfa, %xmm6,  %xmm6
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm3, %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm6
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm0
kusano 2b45e8
	addps	%xmm6, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm0,   0 * SIZE(%esi, LDC, 2)
kusano 2b45e8
	movhps	%xmm0,   2 * SIZE(%esi, LDC, 2)
kusano 2b45e8
	movlps	%xmm1,   4 * SIZE(%esi, LDC, 2)
kusano 2b45e8
	movhps	%xmm1,   6 * SIZE(%esi, LDC, 2)
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(%esi, %eax), %xmm0
kusano 2b45e8
	movhps	 2 * SIZE(%esi, %eax), %xmm0
kusano 2b45e8
	movsd	 4 * SIZE(%esi, %eax), %xmm1
kusano 2b45e8
	movhps	 6 * SIZE(%esi, %eax), %xmm1
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x50, %xmm7,  %xmm2
kusano 2b45e8
	pshufd	$0xfa, %xmm7,  %xmm7
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm3, %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm7
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm0
kusano 2b45e8
	addps	%xmm7, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm0,   0 * SIZE(%esi, %eax)
kusano 2b45e8
	movhps	%xmm0,   2 * SIZE(%esi, %eax)
kusano 2b45e8
	movlps	%xmm1,   4 * SIZE(%esi, %eax)
kusano 2b45e8
	movhps	%xmm1,   6 * SIZE(%esi, %eax)
kusano 2b45e8
kusano 2b45e8
	addl	$8 * SIZE, %esi		# coffset += 2
kusano 2b45e8
	decl	%ebx			# i --
kusano 2b45e8
	jg	.L11
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L20:
kusano 2b45e8
	testl	$2, M
kusano 2b45e8
	je	.L30
kusano 2b45e8
kusano 2b45e8
#if !defined(TRMMKERNEL) || \
kusano 2b45e8
	(defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
	(defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
#else
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax,   8), %eax
kusano 2b45e8
	leal	(AA, %eax, 1), AA
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movddup	  0 * SIZE(AA), %xmm0
kusano 2b45e8
	pxor	%xmm4, %xmm4
kusano 2b45e8
	movddup	  8 * SIZE(AA), %xmm1
kusano 2b45e8
	pxor	%xmm5, %xmm5
kusano 2b45e8
	movsd     0 * SIZE(BB), %xmm2
kusano 2b45e8
	movsd    16 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#elif (defined(LEFT) && !defined(TRANSA)) || (!defined(LEFT) && defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	movl	%eax, KKK	
kusano 2b45e8
#else
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LEFT
kusano 2b45e8
	addl	$2, %eax
kusano 2b45e8
#else
kusano 2b45e8
	addl	$4, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movl	%eax, KKK
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L25
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L22:
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	PREFETCH  (PREFETCHSIZE +  0) * SIZE(AA)
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd     4 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movddup	  2 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsd     8 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd    12 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movddup	  4 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsd    32 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0x50, %xmm3, %xmm3
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movsd    20 * SIZE(BB), %xmm3
kusano 2b45e8
	shufps	$0x50, %xmm3, %xmm3
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
	movddup	  6 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsd    24 * SIZE(BB), %xmm3
kusano 2b45e8
	shufps	$0x50, %xmm3, %xmm3
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movsd    28 * SIZE(BB), %xmm3
kusano 2b45e8
	shufps	$0x50, %xmm3, %xmm3
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
	movddup	 16 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsd    48 * SIZE(BB), %xmm3
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd    36 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
	movddup	 10 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsd    40 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd    44 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
	movddup	 12 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsd    64 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0x50, %xmm3, %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movsd    52 * SIZE(BB), %xmm3
kusano 2b45e8
	shufps	$0x50, %xmm3, %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movddup	 14 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsd    56 * SIZE(BB), %xmm3
kusano 2b45e8
	shufps	$0x50, %xmm3, %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movsd    60 * SIZE(BB), %xmm3
kusano 2b45e8
	shufps	$0x50, %xmm3, %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movddup	 24 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsd    80 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addl	$16 * SIZE, AA
kusano 2b45e8
	addl	$64 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L22
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L25:
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	KKK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movaps	ALPHA,  %xmm3
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L28
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L26:
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd     4 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
 	movddup	  2 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsd     8 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, AA
kusano 2b45e8
	addl	$8 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L26
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L28:
kusano 2b45e8
	leal	(LDC, LDC, 2), %eax
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(%esi), %xmm0
kusano 2b45e8
	movhps	 2 * SIZE(%esi), %xmm0
kusano 2b45e8
	movsd	 0 * SIZE(%esi, LDC), %xmm1
kusano 2b45e8
	movhps	 2 * SIZE(%esi, LDC), %xmm1
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x50, %xmm4,  %xmm2
kusano 2b45e8
	pshufd	$0xfa, %xmm4,  %xmm4
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm3, %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm4
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm0
kusano 2b45e8
	addps	%xmm4, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm0,   0 * SIZE(%esi)
kusano 2b45e8
	movhps	%xmm0,   2 * SIZE(%esi)
kusano 2b45e8
	movlps	%xmm1,   0 * SIZE(%esi, LDC)
kusano 2b45e8
	movhps	%xmm1,   2 * SIZE(%esi, LDC)
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(%esi, LDC, 2), %xmm0
kusano 2b45e8
	movhps	 2 * SIZE(%esi, LDC, 2), %xmm0
kusano 2b45e8
	movsd	 0 * SIZE(%esi, %eax), %xmm1
kusano 2b45e8
	movhps	 2 * SIZE(%esi, %eax), %xmm1
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x50, %xmm5,  %xmm2
kusano 2b45e8
	pshufd	$0xfa, %xmm5,  %xmm5
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm3, %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm5
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm0
kusano 2b45e8
	addps	%xmm5, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm0,   0 * SIZE(%esi, LDC, 2)
kusano 2b45e8
	movhps	%xmm0,   2 * SIZE(%esi, LDC, 2)
kusano 2b45e8
	movlps	%xmm1,   0 * SIZE(%esi, %eax)
kusano 2b45e8
	movhps	%xmm1,   2 * SIZE(%esi, %eax)
kusano 2b45e8
kusano 2b45e8
	addl	$4 * SIZE, %esi		# coffset += 2
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L30:
kusano 2b45e8
	testl	$1, M
kusano 2b45e8
	je	.L39
kusano 2b45e8
kusano 2b45e8
#if !defined(TRMMKERNEL) || \
kusano 2b45e8
	(defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
	(defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
#else
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax,   4), %eax
kusano 2b45e8
	leal	(AA, %eax, 1), AA
kusano 2b45e8
	leal	(BB, %eax, 8), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	pxor	%xmm4, %xmm4
kusano 2b45e8
	movss	 4 * SIZE(AA), %xmm1
kusano 2b45e8
	pxor	%xmm5, %xmm5
kusano 2b45e8
	movsd	 0 * SIZE(BB), %xmm2
kusano 2b45e8
	movsd	16 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#elif (defined(LEFT) && !defined(TRANSA)) || (!defined(LEFT) && defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	movl	%eax, KKK	
kusano 2b45e8
#else
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LEFT
kusano 2b45e8
	addl	$1, %eax
kusano 2b45e8
#else
kusano 2b45e8
	addl	$4, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movl	%eax, KKK
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L35
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L32:
kusano 2b45e8
	shufps	$0, %xmm0, %xmm0
kusano 2b45e8
	PREFETCH  (PREFETCHSIZE +  0) * SIZE(AA)
kusano 2b45e8
	movhps	 4 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movss	 1 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd	 8 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0, %xmm0, %xmm0
kusano 2b45e8
	movhps	12 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movss	 2 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movhps	20 * SIZE(BB), %xmm3
kusano 2b45e8
	shufps	$0, %xmm0, %xmm0
kusano 2b45e8
	movsd	32 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
	movss	 3 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movsd	24 * SIZE(BB), %xmm3
kusano 2b45e8
	shufps	$0, %xmm0, %xmm0
kusano 2b45e8
	movhps	28 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
	movss	 8 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsd	48 * SIZE(BB), %xmm3
kusano 2b45e8
	shufps	$0, %xmm1, %xmm1
kusano 2b45e8
	movhps	36 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
	movss	 5 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd	40 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0, %xmm1, %xmm1
kusano 2b45e8
	movhps	44 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
	movss	 6 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsd	64 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0, %xmm1, %xmm1
kusano 2b45e8
	movhps	52 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movss	 7 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movsd	56 * SIZE(BB), %xmm3
kusano 2b45e8
	shufps	$0, %xmm1, %xmm1
kusano 2b45e8
	movhps	60 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movss	12 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsd	80 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addl	$ 8 * SIZE, AA
kusano 2b45e8
	addl	$64 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L32
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L35:
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	KKK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movaps	ALPHA,  %xmm3
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L38
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L36:
kusano 2b45e8
	shufps	$0, %xmm0, %xmm0
kusano 2b45e8
	movhps	 4 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movss	 1 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd	 8 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addl	$1 * SIZE, AA
kusano 2b45e8
	addl	$8 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L36
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L38:
kusano 2b45e8
	leal	(LDC, LDC, 2), %eax
kusano 2b45e8
kusano 2b45e8
	addps	%xmm5, %xmm4
kusano 2b45e8
kusano 2b45e8
	movsd	 (%esi), %xmm0
kusano 2b45e8
	movhps	 (%esi, LDC), %xmm0
kusano 2b45e8
	movsd	 (%esi, LDC, 2), %xmm1
kusano 2b45e8
	movhps	 (%esi, %eax), %xmm1
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x50, %xmm4,  %xmm2
kusano 2b45e8
	pshufd	$0xfa, %xmm4,  %xmm4
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm3, %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm4
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm0
kusano 2b45e8
	addps	%xmm4, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm0,   (%esi)
kusano 2b45e8
	movhps	%xmm0,   (%esi, LDC)
kusano 2b45e8
	movlps	%xmm1,   (%esi, LDC, 2)
kusano 2b45e8
	movhps	%xmm1,   (%esi, %eax)
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L39:
kusano 2b45e8
#if defined(TRMMKERNEL) && !defined(LEFT)
kusano 2b45e8
	addl	$4, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	leal	(, LDC, 4), %eax
kusano 2b45e8
	addl	%eax, C			# c += 4 * ldc
kusano 2b45e8
	decl	J			# j --
kusano 2b45e8
	jg	.L01
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L40:
kusano 2b45e8
	testl	$2, N
kusano 2b45e8
	je	.L80
kusano 2b45e8
kusano 2b45e8
#if defined(TRMMKERNEL) && defined(LEFT)
kusano 2b45e8
	movl	OFFSET, %eax
kusano 2b45e8
	movl	%eax, KK
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	leal	BUFFER, %ecx
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	jle	.L45
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
	
kusano 2b45e8
.L42:
kusano 2b45e8
	movddup	 0 * SIZE(%edi), %xmm0
kusano 2b45e8
	movddup	 2 * SIZE(%edi), %xmm1
kusano 2b45e8
	movddup	 4 * SIZE(%edi), %xmm2
kusano 2b45e8
	movddup	 6 * SIZE(%edi), %xmm3
kusano 2b45e8
	movddup	 8 * SIZE(%edi), %xmm4
kusano 2b45e8
	movddup	10 * SIZE(%edi), %xmm5
kusano 2b45e8
	movddup	12 * SIZE(%edi), %xmm6
kusano 2b45e8
	movddup	14 * SIZE(%edi), %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  0 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm1,  4 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm2,  8 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm3, 12 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm4, 16 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm5, 20 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm6, 24 * SIZE(%ecx)
kusano 2b45e8
	movaps	%xmm7, 28 * SIZE(%ecx)
kusano 2b45e8
kusano 2b45e8
#	prefetcht1	128 * SIZE(%ecx)
kusano 2b45e8
	prefetcht0	112 * SIZE(%edi)
kusano 2b45e8
kusano 2b45e8
	addl	$16 * SIZE, %edi
kusano 2b45e8
	addl	$32 * SIZE, %ecx
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jne	.L42
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L45:
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	andl	$7, %eax
kusano 2b45e8
	BRANCH
kusano 2b45e8
	jle	.L50
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L46:
kusano 2b45e8
	movddup	 0 * SIZE(%edi), %xmm0
kusano 2b45e8
	movaps	%xmm0,  0 * SIZE(%ecx)
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, %edi
kusano 2b45e8
	addl	$4 * SIZE, %ecx
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jne	.L46
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
	
kusano 2b45e8
.L50:
kusano 2b45e8
	movl	C, %esi		# coffset = c
kusano 2b45e8
	movl	A, %edx		# aoffset = a
kusano 2b45e8
	movl	M,  %ebx
kusano 2b45e8
	sarl	$2, %ebx	# i = (m >> 2)
kusano 2b45e8
	jle	.L60
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L51:
kusano 2b45e8
#if !defined(TRMMKERNEL) || \
kusano 2b45e8
	(defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
	(defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
#else
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax,   8), %eax
kusano 2b45e8
	leal	(AA, %eax, 2), AA
kusano 2b45e8
	leal	(BB, %eax, 2), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movaps	  0 * SIZE(AA), %xmm0
kusano 2b45e8
	pxor	%xmm4, %xmm4
kusano 2b45e8
	movaps	 16 * SIZE(AA), %xmm1
kusano 2b45e8
	pxor	%xmm5, %xmm5
kusano 2b45e8
	movsldup  0 * SIZE(BB), %xmm2
kusano 2b45e8
	pxor	%xmm6, %xmm6
kusano 2b45e8
	movsldup 16 * SIZE(BB), %xmm3
kusano 2b45e8
	pxor	%xmm7, %xmm7
kusano 2b45e8
kusano 2b45e8
	prefetcht2	4 * SIZE(%esi)
kusano 2b45e8
	prefetcht2	4 * SIZE(%esi, LDC)
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#elif (defined(LEFT) && !defined(TRANSA)) || (!defined(LEFT) && defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	movl	%eax, KKK	
kusano 2b45e8
#else
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LEFT
kusano 2b45e8
	addl	$4, %eax
kusano 2b45e8
#else
kusano 2b45e8
	addl	$2, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movl	%eax, KKK
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L55
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L52:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	PREFETCH  (PREFETCHSIZE +  0) * SIZE(AA)
kusano 2b45e8
	movshdup  0 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movaps	  4 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsldup  4 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movshdup  4 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movaps	  8 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsldup  8 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movshdup  8 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movaps	 12 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsldup 12 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movshdup 12 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movaps	 32 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsldup 32 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movshdup 16 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movaps	 20 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsldup 20 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movshdup 20 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movaps	 24 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsldup 24 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movshdup 24 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movaps	 28 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsldup 28 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movshdup 28 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movaps	 48 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsldup 48 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addl	$32 * SIZE, AA
kusano 2b45e8
	addl	$32 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L52
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L55:
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	KKK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movaps	ALPHA,  %xmm3
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L58
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L56:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movshdup  0 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movaps	  4 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsldup  4 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addl	$4 * SIZE, AA
kusano 2b45e8
	addl	$4 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L56
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L58:
kusano 2b45e8
	movsd	 0 * SIZE(%esi), %xmm0
kusano 2b45e8
	movhps	 2 * SIZE(%esi), %xmm0
kusano 2b45e8
	movsd	 4 * SIZE(%esi), %xmm1
kusano 2b45e8
	movhps	 6 * SIZE(%esi), %xmm1
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x50, %xmm4,  %xmm2
kusano 2b45e8
	pshufd	$0xfa, %xmm4,  %xmm4
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm3, %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm4
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm0
kusano 2b45e8
	addps	%xmm4, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm0,   0 * SIZE(%esi)
kusano 2b45e8
	movhps	%xmm0,   2 * SIZE(%esi)
kusano 2b45e8
	movlps	%xmm1,   4 * SIZE(%esi)
kusano 2b45e8
	movhps	%xmm1,   6 * SIZE(%esi)
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(%esi, LDC), %xmm0
kusano 2b45e8
	movhps	 2 * SIZE(%esi, LDC), %xmm0
kusano 2b45e8
	movsd	 4 * SIZE(%esi, LDC), %xmm1
kusano 2b45e8
	movhps	 6 * SIZE(%esi, LDC), %xmm1
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x50, %xmm5,  %xmm2
kusano 2b45e8
	pshufd	$0xfa, %xmm5,  %xmm5
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm3, %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm5
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm0
kusano 2b45e8
	addps	%xmm5, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm0,   0 * SIZE(%esi, LDC)
kusano 2b45e8
	movhps	%xmm0,   2 * SIZE(%esi, LDC)
kusano 2b45e8
	movlps	%xmm1,   4 * SIZE(%esi, LDC)
kusano 2b45e8
	movhps	%xmm1,   6 * SIZE(%esi, LDC)
kusano 2b45e8
kusano 2b45e8
	addl	$8 * SIZE, %esi		# coffset += 2
kusano 2b45e8
	decl	%ebx			# i --
kusano 2b45e8
	jg	.L51
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L60:
kusano 2b45e8
	testl	$2, M
kusano 2b45e8
	je	.L70
kusano 2b45e8
kusano 2b45e8
#if !defined(TRMMKERNEL) || \
kusano 2b45e8
	(defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
	(defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
#else
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax,   8), %eax
kusano 2b45e8
	leal	(AA, %eax, 1), AA
kusano 2b45e8
	leal	(BB, %eax, 2), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movddup	  0 * SIZE(AA), %xmm0
kusano 2b45e8
	pxor	%xmm4, %xmm4
kusano 2b45e8
	movddup	  8 * SIZE(AA), %xmm1
kusano 2b45e8
	pxor	%xmm5, %xmm5
kusano 2b45e8
	movsd     0 * SIZE(BB), %xmm2
kusano 2b45e8
	movsd    16 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	leal	(LDC, LDC, 2), %eax
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#elif (defined(LEFT) && !defined(TRANSA)) || (!defined(LEFT) && defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	movl	%eax, KKK	
kusano 2b45e8
#else
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LEFT
kusano 2b45e8
	addl	$2, %eax
kusano 2b45e8
#else
kusano 2b45e8
	addl	$2, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movl	%eax, KKK
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L65
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L62:
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	PREFETCH  (PREFETCHSIZE +  0) * SIZE(AA)
kusano 2b45e8
	movddup	  2 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd     4 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movddup	  4 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsd     8 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movddup	  6 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd    12 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movddup	 16 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsd    32 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0x50, %xmm3, %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movddup	 10 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movsd    20 * SIZE(BB), %xmm3
kusano 2b45e8
	shufps	$0x50, %xmm3, %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movddup	 12 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsd    24 * SIZE(BB), %xmm3
kusano 2b45e8
	shufps	$0x50, %xmm3, %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movddup	 14 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movsd    28 * SIZE(BB), %xmm3
kusano 2b45e8
	shufps	$0x50, %xmm3, %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movddup	 24 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsd    48 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addl	$16 * SIZE, AA
kusano 2b45e8
	addl	$32 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L62
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L65:
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	KKK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movaps	ALPHA,  %xmm3
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L68
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L66:
kusano 2b45e8
	shufps	$0x50, %xmm2, %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movddup	  2 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd     4 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, AA
kusano 2b45e8
	addl	$4 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L66
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L68:
kusano 2b45e8
	addps	%xmm5, %xmm4
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(%esi), %xmm0
kusano 2b45e8
	movhps	 2 * SIZE(%esi), %xmm0
kusano 2b45e8
	movsd	 0 * SIZE(%esi, LDC), %xmm1
kusano 2b45e8
	movhps	 2 * SIZE(%esi, LDC), %xmm1
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x50, %xmm4,  %xmm2
kusano 2b45e8
	pshufd	$0xfa, %xmm4,  %xmm4
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm3, %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm4
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm0
kusano 2b45e8
	addps	%xmm4, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm0,   0 * SIZE(%esi)
kusano 2b45e8
	movhps	%xmm0,   2 * SIZE(%esi)
kusano 2b45e8
	movlps	%xmm1,   0 * SIZE(%esi, LDC)
kusano 2b45e8
	movhps	%xmm1,   2 * SIZE(%esi, LDC)
kusano 2b45e8
kusano 2b45e8
	addl	$4 * SIZE, %esi
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L70:
kusano 2b45e8
	testl	$1, M
kusano 2b45e8
	je	.L79
kusano 2b45e8
kusano 2b45e8
#if !defined(TRMMKERNEL) || \
kusano 2b45e8
	(defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
	(defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
#else
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax,   4), %eax
kusano 2b45e8
	leal	(AA, %eax, 1), AA
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	pxor	%xmm4, %xmm4
kusano 2b45e8
	movss	 4 * SIZE(AA), %xmm1
kusano 2b45e8
	pxor	%xmm5, %xmm5
kusano 2b45e8
	movsd	 0 * SIZE(BB), %xmm2
kusano 2b45e8
	movsd	16 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	leal	(LDC, LDC, 2), %eax
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#elif (defined(LEFT) && !defined(TRANSA)) || (!defined(LEFT) && defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	movl	%eax, KKK	
kusano 2b45e8
#else
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LEFT
kusano 2b45e8
	addl	$1, %eax
kusano 2b45e8
#else
kusano 2b45e8
	addl	$2, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movl	%eax, KKK
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L75
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L72:
kusano 2b45e8
	shufps	$0, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	PREFETCH  (PREFETCHSIZE +  0) * SIZE(AA)
kusano 2b45e8
	movss	 1 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	shufps	$0, %xmm0, %xmm0
kusano 2b45e8
	movsd	 4 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movss	 2 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	shufps	$0, %xmm0, %xmm0
kusano 2b45e8
	movsd	 8 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movss	 3 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	shufps	$0, %xmm0, %xmm0
kusano 2b45e8
	movsd	12 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movss	 8 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsd	32 * SIZE(BB), %xmm2
kusano 2b45e8
	shufps	$0, %xmm1, %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movss	 5 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	shufps	$0, %xmm1, %xmm1
kusano 2b45e8
	movsd	20 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movss	 6 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	shufps	$0, %xmm1, %xmm1
kusano 2b45e8
	movsd	24 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movss	 7 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	shufps	$0, %xmm1, %xmm1
kusano 2b45e8
	movsd	28 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movss	12 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsd	48 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addl	$ 8 * SIZE, AA
kusano 2b45e8
	addl	$32 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L72
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L75:
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	KKK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movaps	ALPHA,  %xmm3
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L78
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L76:
kusano 2b45e8
	shufps	$0, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movss	 1 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd	 4 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addl	$ 1 * SIZE, AA
kusano 2b45e8
	addl	$ 4 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L76
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L78:
kusano 2b45e8
	addps	%xmm5, %xmm4
kusano 2b45e8
kusano 2b45e8
	movsd	 (%esi), %xmm0
kusano 2b45e8
	movhps	 (%esi, LDC), %xmm0
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x50, %xmm4,  %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm0
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm0,   (%esi)
kusano 2b45e8
	movhps	%xmm0,   (%esi, LDC)
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L79:
kusano 2b45e8
#if defined(TRMMKERNEL) && !defined(LEFT)
kusano 2b45e8
	addl	$2, KK
kusano 2b45e8
#endif
kusano 2b45e8
	leal	(, LDC, 2), %eax
kusano 2b45e8
	addl	%eax, C	
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L80:
kusano 2b45e8
	testl	$1, N
kusano 2b45e8
	je	.L999
kusano 2b45e8
kusano 2b45e8
#if defined(TRMMKERNEL) && defined(LEFT)
kusano 2b45e8
	movl	OFFSET, %eax
kusano 2b45e8
	movl	%eax, KK
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	leal	BUFFER, %ecx
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	jle	.L85
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
	
kusano 2b45e8
.L82:
kusano 2b45e8
	movss	 0 * SIZE(%edi), %xmm0
kusano 2b45e8
	movss	 1 * SIZE(%edi), %xmm1
kusano 2b45e8
	movss	 2 * SIZE(%edi), %xmm2
kusano 2b45e8
	movss	 3 * SIZE(%edi), %xmm3
kusano 2b45e8
	movss	 4 * SIZE(%edi), %xmm4
kusano 2b45e8
	movss	 5 * SIZE(%edi), %xmm5
kusano 2b45e8
	movss	 6 * SIZE(%edi), %xmm6
kusano 2b45e8
	movss	 7 * SIZE(%edi), %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	%xmm0,  0 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm0,  1 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm1,  2 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm1,  3 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm2,  4 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm2,  5 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm3,  6 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm3,  7 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm4,  8 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm4,  9 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm5, 10 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm5, 11 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm6, 12 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm6, 13 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm7, 14 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm7, 15 * SIZE(%ecx)
kusano 2b45e8
kusano 2b45e8
#	prefetcht1	128 * SIZE(%ecx)
kusano 2b45e8
	prefetcht0	112 * SIZE(%edi)
kusano 2b45e8
kusano 2b45e8
	addl	$ 8 * SIZE, %edi
kusano 2b45e8
	addl	$16 * SIZE, %ecx
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jne	.L82
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L85:
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	andl	$7, %eax
kusano 2b45e8
	BRANCH
kusano 2b45e8
	jle	.L90
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L86:
kusano 2b45e8
	movss	 0 * SIZE(%edi), %xmm0
kusano 2b45e8
	movss	%xmm0,  0 * SIZE(%ecx)
kusano 2b45e8
	movss	%xmm0,  1 * SIZE(%ecx)
kusano 2b45e8
kusano 2b45e8
	addl	$1 * SIZE, %edi
kusano 2b45e8
	addl	$2 * SIZE, %ecx
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jne	.L86
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
	
kusano 2b45e8
.L90:
kusano 2b45e8
	movl	C, %esi		# coffset = c
kusano 2b45e8
	movl	A, %edx		# aoffset = a
kusano 2b45e8
	movl	M,  %ebx
kusano 2b45e8
	sarl	$2, %ebx	# i = (m >> 2)
kusano 2b45e8
	jle	.L100
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L91:
kusano 2b45e8
#if !defined(TRMMKERNEL) || \
kusano 2b45e8
	(defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
	(defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
#else
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax,   8), %eax
kusano 2b45e8
	leal	(AA, %eax, 2), AA
kusano 2b45e8
	leal	(BB, %eax, 1), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movaps	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	pxor	%xmm4, %xmm4
kusano 2b45e8
	movddup  0 * SIZE(BB), %xmm2
kusano 2b45e8
	pxor	%xmm5, %xmm5
kusano 2b45e8
	movaps	16 * SIZE(AA), %xmm1
kusano 2b45e8
	movddup  8 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_3DNOW
kusano 2b45e8
	prefetchw	4 * SIZE(%esi)
kusano 2b45e8
#elif defined(HAVE_SSE) || defined(HAVE_SSE2)
kusano 2b45e8
	prefetcht2	4 * SIZE(%esi)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#elif (defined(LEFT) && !defined(TRANSA)) || (!defined(LEFT) && defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	movl	%eax, KKK	
kusano 2b45e8
#else
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LEFT
kusano 2b45e8
	addl	$4, %eax
kusano 2b45e8
#else
kusano 2b45e8
	addl	$1, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movl	%eax, KKK
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L95
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L92:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movaps	 4 * SIZE(AA), %xmm0
kusano 2b45e8
	PREFETCH  (PREFETCHSIZE +  0) * SIZE(AA)
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movddup  2 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movaps	 8 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movddup  4 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movaps	12 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movddup  6 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movaps	32 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movddup 16 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movaps	20 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movddup 10 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movaps	24 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movddup 12 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movaps	28 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movddup 14 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movaps	48 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movddup 24 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addl	$32 * SIZE, AA
kusano 2b45e8
	addl	$16 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L92
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L95:
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	KKK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movaps	ALPHA,  %xmm3
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L98
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L96:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movaps	 4 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movddup  2 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addl	$4 * SIZE, AA
kusano 2b45e8
	addl	$2 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L96
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L98:
kusano 2b45e8
	addps	%xmm5, %xmm4
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(%esi), %xmm0
kusano 2b45e8
	movhps	 2 * SIZE(%esi), %xmm0
kusano 2b45e8
	movsd	 4 * SIZE(%esi), %xmm1
kusano 2b45e8
	movhps	 6 * SIZE(%esi), %xmm1
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x50, %xmm4,  %xmm2
kusano 2b45e8
	pshufd	$0xfa, %xmm4,  %xmm4
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm3, %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm4
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm0
kusano 2b45e8
	addps	%xmm4, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm0,   0 * SIZE(%esi)
kusano 2b45e8
	movhps	%xmm0,   2 * SIZE(%esi)
kusano 2b45e8
	movlps	%xmm1,   4 * SIZE(%esi)
kusano 2b45e8
	movhps	%xmm1,   6 * SIZE(%esi)
kusano 2b45e8
kusano 2b45e8
	addl	$8 * SIZE, %esi
kusano 2b45e8
	decl	%ebx			# i --
kusano 2b45e8
	jg	.L91
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L100:
kusano 2b45e8
	testl	$2, M
kusano 2b45e8
	je	.L110
kusano 2b45e8
kusano 2b45e8
#if !defined(TRMMKERNEL) || \
kusano 2b45e8
	(defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
	(defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
#else
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax,   8), %eax
kusano 2b45e8
	leal	(AA, %eax, 1), AA
kusano 2b45e8
	leal	(BB, %eax, 1), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	pxor	%xmm4, %xmm4
kusano 2b45e8
	pxor	%xmm5, %xmm5
kusano 2b45e8
	pxor	%xmm6, %xmm6
kusano 2b45e8
	pxor	%xmm7, %xmm7
kusano 2b45e8
kusano 2b45e8
 	movsd	  0 * SIZE(AA), %xmm0
kusano 2b45e8
	movsd     0 * SIZE(BB), %xmm2
kusano 2b45e8
 	movsd	  8 * SIZE(AA), %xmm1
kusano 2b45e8
	movsd     8 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	leal	(LDC, LDC, 2), %eax
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#elif (defined(LEFT) && !defined(TRANSA)) || (!defined(LEFT) && defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	movl	%eax, KKK	
kusano 2b45e8
#else
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LEFT
kusano 2b45e8
	addl	$2, %eax
kusano 2b45e8
#else
kusano 2b45e8
	addl	$1, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movl	%eax, KKK
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L105
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L102:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
 	movsd	  2 * SIZE(AA), %xmm0
kusano 2b45e8
	PREFETCH  (PREFETCHSIZE +  0) * SIZE(AA)
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd     2 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
 	movsd	  4 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsd     4 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
 	movsd	  6 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd     6 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
 	movsd	 16 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movsd    16 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
 	movsd	 10 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movsd    10 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
 	movsd	 12 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsd    12 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
 	movsd	 14 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movsd    14 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
 	movsd	 24 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movsd    24 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addl	$16 * SIZE, AA
kusano 2b45e8
	addl	$16 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L102
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L105:
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	KKK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movaps	ALPHA,  %xmm3
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L108
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L106:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
 	movsd	  2 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movsd     2 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, AA
kusano 2b45e8
	addl	$2 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L106
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L108:
kusano 2b45e8
	addps	%xmm5, %xmm4
kusano 2b45e8
	movhlps	%xmm4, %xmm5
kusano 2b45e8
	addps	%xmm5, %xmm4
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(%esi), %xmm0
kusano 2b45e8
	movhps	 2 * SIZE(%esi), %xmm0
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x50, %xmm4,  %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm0
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm0,   0 * SIZE(%esi)
kusano 2b45e8
	movhps	%xmm0,   2 * SIZE(%esi)
kusano 2b45e8
kusano 2b45e8
	addl	$4 * SIZE, %esi		# coffset += 2
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L110:
kusano 2b45e8
	testl	$1, M
kusano 2b45e8
	je	.L999
kusano 2b45e8
kusano 2b45e8
#if !defined(TRMMKERNEL) || \
kusano 2b45e8
	(defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
	(defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
#else
kusano 2b45e8
	leal	BUFFER, BB	# boffset1 = boffset
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax,   4), %eax
kusano 2b45e8
	leal	(AA, %eax, 1), AA
kusano 2b45e8
	leal	(BB, %eax, 2), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
 	movss	  0 * SIZE(AA), %xmm0
kusano 2b45e8
	pxor	%xmm4, %xmm4
kusano 2b45e8
	movss     0 * SIZE(BB), %xmm2
kusano 2b45e8
	pxor	%xmm5, %xmm5
kusano 2b45e8
 	movss	  4 * SIZE(AA), %xmm1
kusano 2b45e8
	movss     8 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	leal	(LDC, LDC, 2), %eax
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#elif (defined(LEFT) && !defined(TRANSA)) || (!defined(LEFT) && defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	movl	%eax, KKK	
kusano 2b45e8
#else
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LEFT
kusano 2b45e8
	addl	$1, %eax
kusano 2b45e8
#else
kusano 2b45e8
	addl	$1, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movl	%eax, KKK
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L115
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L112:
kusano 2b45e8
	mulss	%xmm0, %xmm2
kusano 2b45e8
	PREFETCH  (PREFETCHSIZE +  0) * SIZE(AA)
kusano 2b45e8
 	movss	  1 * SIZE(AA), %xmm0
kusano 2b45e8
	addss	%xmm2, %xmm4
kusano 2b45e8
	movss     2 * SIZE(BB), %xmm2
kusano 2b45e8
	mulss	%xmm0, %xmm2
kusano 2b45e8
 	movss	  2 * SIZE(AA), %xmm0
kusano 2b45e8
	addss	%xmm2, %xmm5
kusano 2b45e8
	movss     4 * SIZE(BB), %xmm2
kusano 2b45e8
	mulss	%xmm0, %xmm2
kusano 2b45e8
 	movss	  3 * SIZE(AA), %xmm0
kusano 2b45e8
	addss	%xmm2, %xmm4
kusano 2b45e8
	movss     6 * SIZE(BB), %xmm2
kusano 2b45e8
	mulss	%xmm0, %xmm2
kusano 2b45e8
 	movss	  8 * SIZE(AA), %xmm0
kusano 2b45e8
	addss	%xmm2, %xmm5
kusano 2b45e8
	movss    16 * SIZE(BB), %xmm2
kusano 2b45e8
	mulss	%xmm1, %xmm3
kusano 2b45e8
 	movss	  5 * SIZE(AA), %xmm1
kusano 2b45e8
	addss	%xmm3, %xmm4
kusano 2b45e8
	movss    10 * SIZE(BB), %xmm3
kusano 2b45e8
	mulss	%xmm1, %xmm3
kusano 2b45e8
 	movss	  6 * SIZE(AA), %xmm1
kusano 2b45e8
	addss	%xmm3, %xmm5
kusano 2b45e8
	movss    12 * SIZE(BB), %xmm3
kusano 2b45e8
	mulss	%xmm1, %xmm3
kusano 2b45e8
 	movss	  7 * SIZE(AA), %xmm1
kusano 2b45e8
	addss	%xmm3, %xmm4
kusano 2b45e8
	movss    14 * SIZE(BB), %xmm3
kusano 2b45e8
	mulss	%xmm1, %xmm3
kusano 2b45e8
 	movss	 12 * SIZE(AA), %xmm1
kusano 2b45e8
	addss	%xmm3, %xmm5
kusano 2b45e8
	movss    24 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addl	$ 8 * SIZE, AA
kusano 2b45e8
	addl	$16 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L112
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L115:
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	KKK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	movaps	ALPHA,  %xmm3
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L118
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L116:
kusano 2b45e8
	mulss	%xmm0, %xmm2
kusano 2b45e8
 	movss	  1 * SIZE(AA), %xmm0
kusano 2b45e8
	addss	%xmm2, %xmm4
kusano 2b45e8
	movss     2 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addl	$1 * SIZE, AA
kusano 2b45e8
	addl	$2 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L116
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L118:
kusano 2b45e8
 	addss	%xmm5, %xmm4
kusano 2b45e8
kusano 2b45e8
	movsd	 (%esi), %xmm0
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x50, %xmm4,  %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm0
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm0,   (%esi)
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L999:
kusano 2b45e8
	movl	OLD_STACK, %esp
kusano 2b45e8
	popl	%ebx
kusano 2b45e8
	popl	%esi
kusano 2b45e8
	popl	%edi
kusano 2b45e8
	popl	%ebp
kusano 2b45e8
	ret
kusano 2b45e8
kusano 2b45e8
	EPILOGUE