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	16
kusano 2b45e8
	
kusano 2b45e8
#define M	 4 + STACK + ARGS(%esp)
kusano 2b45e8
#define N	 8 + STACK + ARGS(%esp)
kusano 2b45e8
#define K	12 + STACK + ARGS(%esp)
kusano 2b45e8
#define ALPHA	16 + STACK + ARGS(%esp)
kusano 2b45e8
#define A	24 + STACK + ARGS(%esp)
kusano 2b45e8
#define ARG_B	28 + STACK + ARGS(%esp)
kusano 2b45e8
#define C	32 + STACK + ARGS(%esp)
kusano 2b45e8
#define ARG_LDC	36 + STACK + ARGS(%esp)
kusano 2b45e8
#define OFFSET	40 + STACK + ARGS(%esp)
kusano 2b45e8
kusano 2b45e8
#define J	 0 + STACK(%esp)
kusano 2b45e8
#define BX	 4 + STACK(%esp)
kusano 2b45e8
#define KK	 8 + STACK(%esp)
kusano 2b45e8
#define KKK	12 + STACK(%esp)
kusano 2b45e8
kusano 2b45e8
#define AA	%edx
kusano 2b45e8
#define BB	%ecx
kusano 2b45e8
#define LDC	%ebp
kusano 2b45e8
#define B	%edi
kusano 2b45e8
#define C1	%esi
kusano 2b45e8
#define I	%ebx
kusano 2b45e8
kusano 2b45e8
#ifdef NANO
kusano 2b45e8
#define PREFETCHSIZE  (8 * 3 + 4)
kusano 2b45e8
#define PREFETCHW     prefetcht0
kusano 2b45e8
#define PREFETCHB     prefetcht0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef NEHALEM
kusano 2b45e8
#define PREFETCHSIZE  (8 * 1 - 4)
kusano 2b45e8
#define PREFETCHW     prefetcht0
kusano 2b45e8
#define PREFETCHB     prefetcht0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef PREFETCH
kusano 2b45e8
#define PREFETCH      prefetcht0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef PREFETCHW
kusano 2b45e8
#define PREFETCHW     prefetcht0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef PREFETCHB
kusano 2b45e8
#define PREFETCHB     prefetcht0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef PREFETCHSIZE
kusano 2b45e8
#define PREFETCHSIZE  (8 * 13 + 4)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	PROLOGUE
kusano 2b45e8
kusano 2b45e8
	subl	$ARGS, %esp	# Generate Stack Frame
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	ARG_B,   B
kusano 2b45e8
	movl	ARG_LDC, LDC
kusano 2b45e8
kusano 2b45e8
#ifdef TRMMKERNEL
kusano 2b45e8
	movl	OFFSET, %eax
kusano 2b45e8
#ifndef LEFT
kusano 2b45e8
	negl	%eax
kusano 2b45e8
#endif	
kusano 2b45e8
	movl	%eax, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	subl	$-16 * SIZE, A
kusano 2b45e8
	subl	$-16 * SIZE, B
kusano 2b45e8
kusano 2b45e8
	leal	(, LDC, SIZE), LDC
kusano 2b45e8
kusano 2b45e8
	movl	N,  %eax
kusano 2b45e8
	sarl	$2, %eax
kusano 2b45e8
	movl	%eax, J
kusano 2b45e8
	jle	.L30
kusano 2b45e8
	ALIGN_4
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
	movl	K, %eax
kusano 2b45e8
	sall	$BASE_SHIFT + 2, %eax
kusano 2b45e8
	leal	(B, %eax), %eax
kusano 2b45e8
	movl	%eax, BX
kusano 2b45e8
kusano 2b45e8
	movl	C, C1
kusano 2b45e8
	movl	A, AA
kusano 2b45e8
kusano 2b45e8
	movl	M,  I
kusano 2b45e8
	sarl	$1, I
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
	movl	B, BB
kusano 2b45e8
#else
kusano 2b45e8
	movl	B, BB
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax, SIZE), %eax
kusano 2b45e8
	leal	(AA, %eax, 2), AA
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movl	BX, %eax
kusano 2b45e8
	PREFETCHB  -16 * SIZE(%eax)
kusano 2b45e8
	subl	$-8 * SIZE, %eax
kusano 2b45e8
	movl	%eax, BX
kusano 2b45e8
kusano 2b45e8
	leal		(C1, LDC, 2), %eax
kusano 2b45e8
kusano 2b45e8
	movaps	-16 * SIZE(AA), %xmm0
kusano 2b45e8
	xorps	%xmm2, %xmm2
kusano 2b45e8
	movaps	-16 * SIZE(BB), %xmm1
kusano 2b45e8
	xorps	%xmm3, %xmm3
kusano 2b45e8
kusano 2b45e8
	xorps	%xmm4, %xmm4
kusano 2b45e8
	PREFETCHW	1 * SIZE(C1)
kusano 2b45e8
	xorps	%xmm5, %xmm5
kusano 2b45e8
	PREFETCHW	3 * SIZE(C1, LDC)
kusano 2b45e8
	xorps	%xmm6, %xmm6
kusano 2b45e8
	PREFETCHW	1 * SIZE(%eax)
kusano 2b45e8
	xorps	%xmm7, %xmm7
kusano 2b45e8
	PREFETCHW	3 * SIZE(%eax, 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	$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	.L15
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L12:
kusano 2b45e8
	PREFETCH (PREFETCHSIZE +  0) * SIZE(AA)
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
	movaps	-14 * SIZE(BB), %xmm3
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	movaps	-12 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	pshufd	$0x4e, %xmm3, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm3
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	-14 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
	movaps	-10 * SIZE(BB), %xmm3
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	movaps	 -8 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	pshufd	$0x4e, %xmm3, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm3
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	-12 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
	movaps	 -6 * SIZE(BB), %xmm3
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	movaps	 -4 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	pshufd	$0x4e, %xmm3, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm3
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	-10 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
	movaps	 -2 * SIZE(BB), %xmm3
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	movaps	  0 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	pshufd	$0x4e, %xmm3, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm3
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	 -8 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
	PREFETCH (PREFETCHSIZE +  8) * SIZE(AA)
kusano 2b45e8
	movaps	  2 * SIZE(BB), %xmm3
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	movaps	  4 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	pshufd	$0x4e, %xmm3, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm3
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	 -6 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
	movaps	  6 * SIZE(BB), %xmm3
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	movaps	  8 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	pshufd	$0x4e, %xmm3, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm3
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	 -4 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
	movaps	 10 * SIZE(BB), %xmm3
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	movaps	 12 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	pshufd	$0x4e, %xmm3, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm3
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	 -2 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
	movaps	 14 * SIZE(BB), %xmm3
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	movaps	 16 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	subl   $-32 * SIZE, BB
kusano 2b45e8
	pshufd	$0x4e, %xmm3, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm3
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	  0 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	subl   $-16 * SIZE, AA
kusano 2b45e8
kusano 2b45e8
	subl   $1, %eax
kusano 2b45e8
	BRANCH
kusano 2b45e8
	jne .L12
kusano 2b45e8
	ALIGN_4
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
	andl	$7, %eax
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L18
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L16:
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
	movaps	-14 * SIZE(BB), %xmm3
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	movaps	-12 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	pshufd	$0x4e, %xmm3, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm3
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	-14 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, AA
kusano 2b45e8
	addl	$4 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L16
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L18:
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
kusano 2b45e8
	movddup	ALPHA,  %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm4, %xmm0
kusano 2b45e8
	movsd    %xmm5, %xmm4
kusano 2b45e8
	mulpd	%xmm3, %xmm4
kusano 2b45e8
	movsd    %xmm0, %xmm5
kusano 2b45e8
	mulpd	%xmm3, %xmm5
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm6, %xmm0
kusano 2b45e8
	movsd    %xmm7, %xmm6
kusano 2b45e8
	mulpd	%xmm3, %xmm6
kusano 2b45e8
	movsd    %xmm0, %xmm7
kusano 2b45e8
	mulpd	%xmm3, %xmm7
kusano 2b45e8
kusano 2b45e8
	movl	C1,  %eax
kusano 2b45e8
	orl	LDC, %eax
kusano 2b45e8
	testl	$15, %eax
kusano 2b45e8
	NOBRANCH
kusano 2b45e8
	jne	.L18x
kusano 2b45e8
kusano 2b45e8
	leal		(C1, LDC, 2), %eax
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movaps	(C1), %xmm0
kusano 2b45e8
	movaps	(C1, LDC), %xmm1
kusano 2b45e8
	movaps	(%eax), %xmm2
kusano 2b45e8
	movaps	(%eax, LDC), %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm0, %xmm4
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm4, (C1)
kusano 2b45e8
	movaps	%xmm5, (C1, LDC)
kusano 2b45e8
	movaps	%xmm6, (%eax)
kusano 2b45e8
	movaps	%xmm7, (%eax, LDC)
kusano 2b45e8
kusano 2b45e8
#if (defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
    (defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KKK, %eax
kusano 2b45e8
	leal	(,%eax, SIZE), %eax
kusano 2b45e8
	leal	(AA, %eax, 2), AA
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(TRMMKERNEL) && defined(LEFT)
kusano 2b45e8
	addl	$2, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, C1
kusano 2b45e8
	decl	I
kusano 2b45e8
	jg	.L11
kusano 2b45e8
	jmp	.L20
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L18x:
kusano 2b45e8
	leal		(C1, LDC, 2), %eax
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movups	(C1), %xmm0
kusano 2b45e8
	movups	(C1, LDC), %xmm1
kusano 2b45e8
	movups	(%eax), %xmm2
kusano 2b45e8
	movups	(%eax, LDC), %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm0, %xmm4
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movups	%xmm4, (C1)
kusano 2b45e8
	movups	%xmm5, (C1, LDC)
kusano 2b45e8
	movups	%xmm6, (%eax)
kusano 2b45e8
	movups	%xmm7, (%eax, LDC)
kusano 2b45e8
kusano 2b45e8
#if (defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
    (defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KKK, %eax
kusano 2b45e8
	leal	(,%eax, SIZE), %eax
kusano 2b45e8
	leal	(AA, %eax, 2), AA
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(TRMMKERNEL) && defined(LEFT)
kusano 2b45e8
	addl	$2, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, C1
kusano 2b45e8
	decl	I
kusano 2b45e8
	jg	.L11
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L20:
kusano 2b45e8
	movl	M,  I
kusano 2b45e8
	testl	$1, I
kusano 2b45e8
	jle	.L29
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
	movl	B, BB
kusano 2b45e8
#else
kusano 2b45e8
	movl	B, BB
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax, SIZE), %eax
kusano 2b45e8
	addl	%eax, AA
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	-16 * SIZE(AA), %xmm0
kusano 2b45e8
	xorps	%xmm4, %xmm4
kusano 2b45e8
	movaps	-16 * SIZE(BB), %xmm2
kusano 2b45e8
	xorps	%xmm5, %xmm5
kusano 2b45e8
	movaps	-14 * SIZE(BB), %xmm3
kusano 2b45e8
	xorps	%xmm6, %xmm6
kusano 2b45e8
	xorps	%xmm7, %xmm7
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	.L25
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L22:
kusano 2b45e8
	PREFETCH (PREFETCHSIZE +  0) * SIZE(AA)
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x44, %xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	movaps	-12 * SIZE(BB), %xmm2
kusano 2b45e8
	addpd	%xmm3, %xmm5
kusano 2b45e8
	movaps	-10 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	pshufd	$0xee, %xmm0, %xmm1
kusano 2b45e8
	movaps	-14 * SIZE(AA), %xmm0
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	movaps	 -8 * SIZE(BB), %xmm2
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
	movaps	 -6 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x44, %xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	movaps	 -4 * SIZE(BB), %xmm2
kusano 2b45e8
	addpd	%xmm3, %xmm5
kusano 2b45e8
	movaps	 -2 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	pshufd	$0xee, %xmm0, %xmm1
kusano 2b45e8
	movaps	-12 * SIZE(AA), %xmm0
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	movaps	  0 * SIZE(BB), %xmm2
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
	movaps	  2 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x44, %xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	movaps	  4 * SIZE(BB), %xmm2
kusano 2b45e8
	addpd	%xmm3, %xmm5
kusano 2b45e8
	movaps	  6 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	pshufd	$0xee, %xmm0, %xmm1
kusano 2b45e8
	movaps	-10 * SIZE(AA), %xmm0
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	movaps	  8 * SIZE(BB), %xmm2
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
	movaps	 10 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x44, %xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	movaps	 12 * SIZE(BB), %xmm2
kusano 2b45e8
	addpd	%xmm3, %xmm5
kusano 2b45e8
	movaps	 14 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	pshufd	$0xee, %xmm0, %xmm1
kusano 2b45e8
	movaps	 -8 * SIZE(AA), %xmm0
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
	movaps	 16 * SIZE(BB), %xmm2
kusano 2b45e8
	addpd	%xmm3, %xmm7
kusano 2b45e8
	movaps	 18 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	subl   $ -8 * SIZE, AA
kusano 2b45e8
	subl   $-32 * SIZE, BB
kusano 2b45e8
kusano 2b45e8
	subl   $1, %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
	andl	$7, %eax
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L28
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L26:
kusano 2b45e8
	pshufd	$0x44, %xmm0, %xmm1
kusano 2b45e8
	movsd	-15 * SIZE(AA), %xmm0
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	movaps	-12 * SIZE(BB), %xmm2
kusano 2b45e8
	addpd	%xmm3, %xmm5
kusano 2b45e8
	movaps	-10 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addl	$1 * SIZE, AA
kusano 2b45e8
	addl	$4 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L26
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L28:
kusano 2b45e8
	movddup	ALPHA,  %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm6, %xmm4
kusano 2b45e8
	addpd	%xmm7, %xmm5
kusano 2b45e8
kusano 2b45e8
	leal		(C1, LDC, 2), %eax
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movsd	0 * SIZE(C1), %xmm0
kusano 2b45e8
	movhpd	0 * SIZE(C1, LDC), %xmm0
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(%eax), %xmm1
kusano 2b45e8
	movhpd	0 * SIZE(%eax, LDC), %xmm1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	mulpd	%xmm3, %xmm4
kusano 2b45e8
	mulpd	%xmm3, %xmm5
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	addpd	%xmm0, %xmm4
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movsd	%xmm4, 0 * SIZE(C1)
kusano 2b45e8
	movhpd	%xmm4, 0 * SIZE(C1, LDC)
kusano 2b45e8
kusano 2b45e8
	movsd	%xmm5, 0 * SIZE(%eax)
kusano 2b45e8
	movhpd	%xmm5, 0 * SIZE(%eax, LDC)
kusano 2b45e8
kusano 2b45e8
#if (defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
    (defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KKK, %eax
kusano 2b45e8
	leal	(,%eax, SIZE), %eax
kusano 2b45e8
	addl	%eax, AA
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(TRMMKERNEL) && defined(LEFT)
kusano 2b45e8
	addl	$1, KK
kusano 2b45e8
#endif
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
	
kusano 2b45e8
.L29:
kusano 2b45e8
#if defined(TRMMKERNEL) && !defined(LEFT)
kusano 2b45e8
	addl	$4, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movl	BB, B
kusano 2b45e8
kusano 2b45e8
	leal	(, LDC, 4), %eax
kusano 2b45e8
	addl	%eax, C
kusano 2b45e8
	decl	J
kusano 2b45e8
	jg	.L01
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L30:
kusano 2b45e8
	movl	N,  %eax
kusano 2b45e8
	testl	$2, %eax
kusano 2b45e8
	jle	.L50
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	C, C1
kusano 2b45e8
	movl	A, AA
kusano 2b45e8
kusano 2b45e8
	movl	M,  I
kusano 2b45e8
	sarl	$1, I
kusano 2b45e8
	jle	.L40
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L31:
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
	movl	B, BB
kusano 2b45e8
#else
kusano 2b45e8
	movl	B, BB
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax, SIZE), %eax
kusano 2b45e8
	leal	(AA, %eax, 2), AA
kusano 2b45e8
	leal	(BB, %eax, 2), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	-16 * SIZE(AA), %xmm0
kusano 2b45e8
	xorps	%xmm4, %xmm4
kusano 2b45e8
	movaps	-16 * SIZE(BB), %xmm1
kusano 2b45e8
	xorps	%xmm5, %xmm5
kusano 2b45e8
	PREFETCHW	1 * SIZE(C1)
kusano 2b45e8
	xorps	%xmm6, %xmm6
kusano 2b45e8
	PREFETCHW	1 * SIZE(C1, LDC)
kusano 2b45e8
	xorps	%xmm7, %xmm7
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	.L35
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L32:
kusano 2b45e8
	PREFETCH (PREFETCHSIZE +  0) * SIZE(AA)
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	-14 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	movaps	-14 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	-12 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm7
kusano 2b45e8
	movaps	-12 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	-10 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	movaps	-10 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	 -8 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm7
kusano 2b45e8
	movaps	 -8 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
kusano 2b45e8
	PREFETCH (PREFETCHSIZE +  8) * SIZE(AA)
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	 -6 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	movaps	 -6 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	 -4 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm7
kusano 2b45e8
	movaps	 -4 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	 -2 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	movaps	 -2 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	  0 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm7
kusano 2b45e8
	movaps	  0 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm6
kusano 2b45e8
kusano 2b45e8
	subl   $-16 * SIZE, AA
kusano 2b45e8
	subl   $-16 * SIZE, BB
kusano 2b45e8
kusano 2b45e8
	subl   $1, %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
	andl	$7, %eax
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L38
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L36:
kusano 2b45e8
	pshufd	$0x4e, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	-14 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
	movaps	-14 * SIZE(BB), %xmm1
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, AA
kusano 2b45e8
	addl	$2 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L36
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L38:
kusano 2b45e8
	movddup	ALPHA,  %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm6, %xmm4
kusano 2b45e8
	addpd	%xmm7, %xmm5
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm4, %xmm0
kusano 2b45e8
	movsd    %xmm5, %xmm4
kusano 2b45e8
	mulpd	%xmm3, %xmm4
kusano 2b45e8
	movsd    %xmm0, %xmm5
kusano 2b45e8
	mulpd	%xmm3, %xmm5
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movsd	0 * SIZE(C1), %xmm0
kusano 2b45e8
	movhpd	1 * SIZE(C1), %xmm0
kusano 2b45e8
	movsd	0 * SIZE(C1, LDC), %xmm1
kusano 2b45e8
	movhpd	1 * SIZE(C1, LDC), %xmm1
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm0, %xmm4
kusano 2b45e8
	addpd	%xmm1, %xmm5
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movsd	%xmm4, 0 * SIZE(C1)
kusano 2b45e8
	movhpd	%xmm4, 1 * SIZE(C1)
kusano 2b45e8
	movsd	%xmm5, 0 * SIZE(C1, LDC)
kusano 2b45e8
	movhpd	%xmm5, 1 * SIZE(C1, LDC)
kusano 2b45e8
kusano 2b45e8
#if (defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
    (defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KKK, %eax
kusano 2b45e8
	leal	(,%eax, SIZE), %eax
kusano 2b45e8
	leal	(AA, %eax, 2), AA
kusano 2b45e8
	leal	(BB, %eax, 2), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(TRMMKERNEL) && defined(LEFT)
kusano 2b45e8
	addl	$2, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, C1
kusano 2b45e8
	decl	I
kusano 2b45e8
	jg	.L31
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L40:
kusano 2b45e8
	movl	M,  I
kusano 2b45e8
	testl	$1, I
kusano 2b45e8
	jle	.L49
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
	movl	B, BB
kusano 2b45e8
#else
kusano 2b45e8
	movl	B, BB
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax, SIZE), %eax
kusano 2b45e8
	addl	%eax, AA
kusano 2b45e8
	leal	(BB, %eax, 2), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	-16 * SIZE(AA), %xmm0
kusano 2b45e8
	xorps	%xmm4, %xmm4
kusano 2b45e8
	movaps	-16 * SIZE(BB), %xmm2
kusano 2b45e8
	xorps	%xmm5, %xmm5
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	.L45
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L42:
kusano 2b45e8
	PREFETCH (PREFETCHSIZE +  0) * SIZE(AA)
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x44, %xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	movaps	-14 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	pshufd	$0xee, %xmm0, %xmm1
kusano 2b45e8
	movaps	-14 * SIZE(AA), %xmm0
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm5
kusano 2b45e8
	movaps	-12 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x44, %xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	movaps	-10 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	pshufd	$0xee, %xmm0, %xmm1
kusano 2b45e8
	movaps	-12 * SIZE(AA), %xmm0
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm5
kusano 2b45e8
	movaps	 -8 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x44, %xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	movaps	 -6 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	pshufd	$0xee, %xmm0, %xmm1
kusano 2b45e8
	movaps	-10 * SIZE(AA), %xmm0
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm5
kusano 2b45e8
	movaps	 -4 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x44, %xmm0, %xmm1
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	movaps	 -2 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	pshufd	$0xee, %xmm0, %xmm1
kusano 2b45e8
	movaps	 -8 * SIZE(AA), %xmm0
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm5
kusano 2b45e8
	movaps	 0 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	subl   $ -8 * SIZE, AA
kusano 2b45e8
	subl   $-16 * SIZE, BB
kusano 2b45e8
kusano 2b45e8
	subl   $1, %eax
kusano 2b45e8
	jne    .L42
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L45:
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	KKK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	andl	$7, %eax
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L48
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L46:
kusano 2b45e8
	pshufd	$0x44, %xmm0, %xmm1
kusano 2b45e8
	movsd	-15 * SIZE(AA), %xmm0
kusano 2b45e8
	mulpd	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	movaps	-14 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addl	$1 * SIZE, AA
kusano 2b45e8
	addl	$2 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L46
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L48:
kusano 2b45e8
	movddup	ALPHA,  %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm5, %xmm4
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movsd	0 * SIZE(C1), %xmm0
kusano 2b45e8
	movhpd	0 * SIZE(C1, LDC), %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	mulpd	%xmm3, %xmm4
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	addpd	%xmm0, %xmm4
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movsd	%xmm4, 0 * SIZE(C1)
kusano 2b45e8
	movhpd	%xmm4, 0 * SIZE(C1, LDC)
kusano 2b45e8
kusano 2b45e8
#if (defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
    (defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KKK, %eax
kusano 2b45e8
	leal	(,%eax, SIZE), %eax
kusano 2b45e8
	addl	%eax, AA
kusano 2b45e8
	leal	(BB, %eax, 2), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(TRMMKERNEL) && defined(LEFT)
kusano 2b45e8
	addl	$1, KK
kusano 2b45e8
#endif
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
	
kusano 2b45e8
.L49:
kusano 2b45e8
#if defined(TRMMKERNEL) && !defined(LEFT)
kusano 2b45e8
	addl	$2, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movl	BB, B
kusano 2b45e8
kusano 2b45e8
	leal	(, LDC, 2), %eax
kusano 2b45e8
	addl	%eax, C
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L50:
kusano 2b45e8
	movl	N,  %eax
kusano 2b45e8
	testl	$1, %eax
kusano 2b45e8
	jle	.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	C, C1
kusano 2b45e8
	movl	A, AA
kusano 2b45e8
kusano 2b45e8
	movl	M,  I
kusano 2b45e8
	sarl	$1, I
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
	movl	B, BB
kusano 2b45e8
#else
kusano 2b45e8
	movl	B, BB
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax, SIZE), %eax
kusano 2b45e8
	leal	(AA, %eax, 2), AA
kusano 2b45e8
	addl	%eax, BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	-16 * SIZE(AA), %xmm0
kusano 2b45e8
	xorps	%xmm4, %xmm4
kusano 2b45e8
	movaps	-16 * SIZE(BB), %xmm1
kusano 2b45e8
	xorps	%xmm5, %xmm5
kusano 2b45e8
	PREFETCHW	1 * SIZE(C1)
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	.L55
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L52:
kusano 2b45e8
	PREFETCH (PREFETCHSIZE +  0) * SIZE(AA)
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x44, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	-14 * SIZE(AA), %xmm0
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
kusano 2b45e8
	pshufd	$0xee, %xmm1, %xmm2
kusano 2b45e8
	movaps	-14 * SIZE(BB), %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	-12 * SIZE(AA), %xmm0
kusano 2b45e8
	addpd	%xmm2, %xmm5
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x44, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	-10 * SIZE(AA), %xmm0
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
kusano 2b45e8
	pshufd	$0xee, %xmm1, %xmm2
kusano 2b45e8
	movaps	-12 * SIZE(BB), %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	 -8 * SIZE(AA), %xmm0
kusano 2b45e8
	addpd	%xmm2, %xmm5
kusano 2b45e8
kusano 2b45e8
	PREFETCH (PREFETCHSIZE +  8) * SIZE(AA)
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x44, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	 -6 * SIZE(AA), %xmm0
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
kusano 2b45e8
	pshufd	$0xee, %xmm1, %xmm2
kusano 2b45e8
	movaps	-10 * SIZE(BB), %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	 -4 * SIZE(AA), %xmm0
kusano 2b45e8
	addpd	%xmm2, %xmm5
kusano 2b45e8
kusano 2b45e8
	pshufd	$0x44, %xmm1, %xmm2
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	 -2 * SIZE(AA), %xmm0
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
kusano 2b45e8
	pshufd	$0xee, %xmm1, %xmm2
kusano 2b45e8
	movaps	 -8 * SIZE(BB), %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	  0 * SIZE(AA), %xmm0
kusano 2b45e8
	addpd	%xmm2, %xmm5
kusano 2b45e8
kusano 2b45e8
	subl   $-16 * SIZE, AA
kusano 2b45e8
	subl   $ -8 * SIZE, BB
kusano 2b45e8
kusano 2b45e8
	subl   $1, %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
	andl	$7, %eax
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L58
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L56:
kusano 2b45e8
	pshufd	$0x44, %xmm1, %xmm2
kusano 2b45e8
	movsd	-15 * SIZE(BB), %xmm1
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	-14 * SIZE(AA), %xmm0
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, AA
kusano 2b45e8
	addl	$1 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L56
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L58:
kusano 2b45e8
	movddup	ALPHA,  %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm5, %xmm4
kusano 2b45e8
	mulpd	%xmm3, %xmm4
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movsd	0 * SIZE(C1), %xmm0
kusano 2b45e8
	movhpd	1 * SIZE(C1), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm0, %xmm4
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movsd	%xmm4, 0 * SIZE(C1)
kusano 2b45e8
	movhpd	%xmm4, 1 * SIZE(C1)
kusano 2b45e8
kusano 2b45e8
#if (defined(TRMMKERNEL) &&  defined(LEFT) &&  defined(TRANSA)) || \
kusano 2b45e8
    (defined(TRMMKERNEL) && !defined(LEFT) && !defined(TRANSA))
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KKK, %eax
kusano 2b45e8
	leal	(,%eax, SIZE), %eax
kusano 2b45e8
	leal	(AA, %eax, 2), AA
kusano 2b45e8
	addl	%eax, BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(TRMMKERNEL) && defined(LEFT)
kusano 2b45e8
	addl	$2, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, C1
kusano 2b45e8
	decl	I
kusano 2b45e8
	jg	.L51
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L60:
kusano 2b45e8
	movl	M,  I
kusano 2b45e8
	testl	$1, I
kusano 2b45e8
	jle	.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
	movl	B, BB
kusano 2b45e8
#else
kusano 2b45e8
	movl	B, BB
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	leal	(, %eax, SIZE), %eax
kusano 2b45e8
	addl	%eax, AA
kusano 2b45e8
	addl	%eax, BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	-16 * SIZE(AA), %xmm0
kusano 2b45e8
	xorps	%xmm4, %xmm4
kusano 2b45e8
	movaps	-16 * SIZE(BB), %xmm2
kusano 2b45e8
	xorps	%xmm5, %xmm5
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	.L65
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L62:
kusano 2b45e8
	PREFETCH (PREFETCHSIZE +  0) * SIZE(AA)
kusano 2b45e8
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	-14 * SIZE(AA), %xmm0
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	movaps	-14 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	-12 * SIZE(AA), %xmm0
kusano 2b45e8
	addpd	%xmm2, %xmm5
kusano 2b45e8
	movaps	-12 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	-10 * SIZE(AA), %xmm0
kusano 2b45e8
	addpd	%xmm2, %xmm4
kusano 2b45e8
	movaps	-10 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	mulpd	%xmm0, %xmm2
kusano 2b45e8
	movaps	 -8 * SIZE(AA), %xmm0
kusano 2b45e8
	addpd	%xmm2, %xmm5
kusano 2b45e8
	movaps	 -8 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	subl   $-8 * SIZE, AA
kusano 2b45e8
	subl   $-8 * SIZE, BB
kusano 2b45e8
kusano 2b45e8
	subl   $1, %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
	andl	$7, %eax
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L68
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L66:
kusano 2b45e8
	mulsd	%xmm0, %xmm2
kusano 2b45e8
	movsd	-15 * SIZE(AA), %xmm0
kusano 2b45e8
	addsd	%xmm2, %xmm4
kusano 2b45e8
	movsd	-15 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addl	$1 * SIZE, AA
kusano 2b45e8
	addl	$1 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L66
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L68:
kusano 2b45e8
	movddup	ALPHA,  %xmm3
kusano 2b45e8
kusano 2b45e8
	addpd	%xmm5, %xmm4
kusano 2b45e8
kusano 2b45e8
	haddpd	%xmm4, %xmm4
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	movsd	0 * SIZE(C1), %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	mulsd	%xmm3, %xmm4
kusano 2b45e8
kusano 2b45e8
#ifndef TRMMKERNEL
kusano 2b45e8
	addsd	%xmm0, %xmm4
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movsd	%xmm4, 0 * SIZE(C1)
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
	
kusano 2b45e8
.L999:
kusano 2b45e8
	popl	%ebx
kusano 2b45e8
	popl	%esi
kusano 2b45e8
	popl	%edi
kusano 2b45e8
	popl	%ebp
kusano 2b45e8
kusano 2b45e8
	addl	$ARGS, %esp
kusano 2b45e8
	ret
kusano 2b45e8
kusano 2b45e8
	EPILOGUE