Blame thirdparty/openblas/xianyi-OpenBLAS-e6e87a2/kernel/x86_64/dgemm_ncopy_8.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
#ifdef NEHALEM
kusano 2b45e8
#define PREFETCHSIZE	12
kusano 2b45e8
#define PREFETCH	prefetcht0
kusano 2b45e8
#define PREFETCHW	prefetcht0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef MOVAPS
kusano 2b45e8
#define MOVAPS	movaps
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef WINDOWS_ABI
kusano 2b45e8
kusano 2b45e8
#define M	ARG1	/* rdi */
kusano 2b45e8
#define N	ARG2	/* rsi */
kusano 2b45e8
#define A	ARG3	/* rdx */
kusano 2b45e8
#define LDA	ARG4	/* rcx */
kusano 2b45e8
#define B	ARG5	/* r8  */
kusano 2b45e8
kusano 2b45e8
#define AO1	%r9
kusano 2b45e8
#define AO2	%r10
kusano 2b45e8
#define LDA3	%r11
kusano 2b45e8
#define J	%r12
kusano 2b45e8
#define MM	%r13
kusano 2b45e8
kusano 2b45e8
#else
kusano 2b45e8
kusano 2b45e8
#define STACKSIZE 128
kusano 2b45e8
kusano 2b45e8
#define M	ARG1	/* rcx */
kusano 2b45e8
#define N	ARG2	/* rdx */
kusano 2b45e8
#define A	ARG3	/* r8  */
kusano 2b45e8
#define LDA	ARG4	/* r9  */
kusano 2b45e8
#define OLD_B		40 + 32 + STACKSIZE(%rsp)
kusano 2b45e8
kusano 2b45e8
#define B	%r15
kusano 2b45e8
kusano 2b45e8
#define AO1	%r10
kusano 2b45e8
#define AO2	%r11
kusano 2b45e8
#define LDA3	%r12
kusano 2b45e8
#define J	%r13
kusano 2b45e8
#define MM	%r14
kusano 2b45e8
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#define I	%rax
kusano 2b45e8
kusano 2b45e8
	PROLOGUE
kusano 2b45e8
	PROFCODE
kusano 2b45e8
	
kusano 2b45e8
#ifdef WINDOWS_ABI
kusano 2b45e8
	pushq	%r15
kusano 2b45e8
	pushq	%r14
kusano 2b45e8
#endif
kusano 2b45e8
	pushq	%r13
kusano 2b45e8
	pushq	%r12
kusano 2b45e8
kusano 2b45e8
#ifdef WINDOWS_ABI
kusano 2b45e8
	subq	$STACKSIZE, %rsp
kusano 2b45e8
kusano 2b45e8
	movups	%xmm6,    0(%rsp)
kusano 2b45e8
	movups	%xmm7,   16(%rsp)
kusano 2b45e8
	movups	%xmm8,   32(%rsp)
kusano 2b45e8
	movups	%xmm9,   48(%rsp)
kusano 2b45e8
	movups	%xmm10,  64(%rsp)
kusano 2b45e8
	movups	%xmm11,  80(%rsp)
kusano 2b45e8
	movups	%xmm12,  96(%rsp)
kusano 2b45e8
kusano 2b45e8
	movq	OLD_B,     B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	leaq	(,LDA, SIZE), LDA
kusano 2b45e8
	leaq	(LDA, LDA, 2), LDA3
kusano 2b45e8
	subq	$-16 * SIZE, B
kusano 2b45e8
kusano 2b45e8
	movq	M, MM
kusano 2b45e8
	leaq	-1(M), %rax
kusano 2b45e8
	testq	$SIZE, A
kusano 2b45e8
	cmovne	%rax, MM
kusano 2b45e8
kusano 2b45e8
	testq	$SIZE, LDA
kusano 2b45e8
	jne	.L50
kusano 2b45e8
kusano 2b45e8
	movq	N,  J
kusano 2b45e8
	sarq	$3, J
kusano 2b45e8
	jle	.L20
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L11:
kusano 2b45e8
	movq	A, AO1
kusano 2b45e8
	leaq	(A, LDA, 4), AO2
kusano 2b45e8
	leaq	(A, LDA, 8), A
kusano 2b45e8
kusano 2b45e8
	testq	$SIZE, A
kusano 2b45e8
	je	.L12
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO1),         %xmm0
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO2),         %xmm4
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
	unpcklpd %xmm5, %xmm4
kusano 2b45e8
	unpcklpd %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$1 * SIZE, AO1
kusano 2b45e8
	addq	$1 * SIZE, AO2
kusano 2b45e8
	subq	$-8 * SIZE, B
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L12:
kusano 2b45e8
	movq	MM, I
kusano 2b45e8
	sarq	$3, I
kusano 2b45e8
	jle	.L14
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L13:
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),         %xmm0
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm9
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO1, LDA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),         %xmm4
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm4, %xmm10
kusano 2b45e8
	unpcklpd %xmm5, %xmm4
kusano 2b45e8
	movaps	 %xmm6, %xmm11
kusano 2b45e8
	unpcklpd %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  0) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm8
kusano 2b45e8
	unpckhpd %xmm3, %xmm9
kusano 2b45e8
	unpckhpd %xmm5, %xmm10
kusano 2b45e8
	unpckhpd %xmm7, %xmm11
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  8) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm8,   -8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm9,   -6 * SIZE(B)
kusano 2b45e8
	movaps	%xmm10,  -4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm11,  -2 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO1, LDA, 2)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1),         %xmm0
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm9
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO1, LDA3)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2),         %xmm4
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm4, %xmm10
kusano 2b45e8
	unpcklpd %xmm5, %xmm4
kusano 2b45e8
	movaps	 %xmm6, %xmm11
kusano 2b45e8
	unpcklpd %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 16) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,    0 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,    2 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,    4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,    6 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm8
kusano 2b45e8
	unpckhpd %xmm3, %xmm9
kusano 2b45e8
	unpckhpd %xmm5, %xmm10
kusano 2b45e8
	unpckhpd %xmm7, %xmm11
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 24) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm8,    8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm9,   10 * SIZE(B)
kusano 2b45e8
	movaps	%xmm10,  12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm11,  14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO2)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	4 * SIZE(AO1),         %xmm0
kusano 2b45e8
	MOVAPS	4 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	MOVAPS	4 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	MOVAPS	4 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm9
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO2, LDA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	4 * SIZE(AO2),         %xmm4
kusano 2b45e8
	MOVAPS	4 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	MOVAPS	4 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	MOVAPS	4 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm4, %xmm10
kusano 2b45e8
	unpcklpd %xmm5, %xmm4
kusano 2b45e8
	movaps	 %xmm6, %xmm11
kusano 2b45e8
	unpcklpd %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 32) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,   16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,   18 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,   20 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,   22 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm8
kusano 2b45e8
	unpckhpd %xmm3, %xmm9
kusano 2b45e8
	unpckhpd %xmm5, %xmm10
kusano 2b45e8
	unpckhpd %xmm7, %xmm11
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 40) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm8,   24 * SIZE(B)
kusano 2b45e8
	movaps	%xmm9,   26 * SIZE(B)
kusano 2b45e8
	movaps	%xmm10,  28 * SIZE(B)
kusano 2b45e8
	movaps	%xmm11,  30 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO2, LDA, 2)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	6 * SIZE(AO1),         %xmm0
kusano 2b45e8
	MOVAPS	6 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	MOVAPS	6 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	MOVAPS	6 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm9
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO2, LDA3)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	6 * SIZE(AO2),         %xmm4
kusano 2b45e8
	MOVAPS	6 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	MOVAPS	6 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	MOVAPS	6 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm4, %xmm10
kusano 2b45e8
	unpcklpd %xmm5, %xmm4
kusano 2b45e8
	movaps	 %xmm6, %xmm11
kusano 2b45e8
	unpcklpd %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 48) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,   32 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,   34 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,   36 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,   38 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm8
kusano 2b45e8
	unpckhpd %xmm3, %xmm9
kusano 2b45e8
	unpckhpd %xmm5, %xmm10
kusano 2b45e8
	unpckhpd %xmm7, %xmm11
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 56) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm8,   40 * SIZE(B)
kusano 2b45e8
	movaps	%xmm9,   42 * SIZE(B)
kusano 2b45e8
	movaps	%xmm10,  44 * SIZE(B)
kusano 2b45e8
	movaps	%xmm11,  46 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$8 * SIZE, AO1
kusano 2b45e8
	addq	$8 * SIZE, AO2
kusano 2b45e8
	subq	$-64 * SIZE, B
kusano 2b45e8
kusano 2b45e8
	decq	I
kusano 2b45e8
	jg	.L13
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L14:
kusano 2b45e8
	testq	$4, MM
kusano 2b45e8
	jle	.L16
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),         %xmm0
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),         %xmm4
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm9
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm4, %xmm10
kusano 2b45e8
	unpcklpd %xmm5, %xmm4
kusano 2b45e8
	movaps	 %xmm6, %xmm11
kusano 2b45e8
	unpcklpd %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm8
kusano 2b45e8
	unpckhpd %xmm3, %xmm9
kusano 2b45e8
	unpckhpd %xmm5, %xmm10
kusano 2b45e8
	unpckhpd %xmm7, %xmm11
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm8,   -8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm9,   -6 * SIZE(B)
kusano 2b45e8
	movaps	%xmm10,  -4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm11,  -2 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1),         %xmm0
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2),         %xmm4
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm9
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm4, %xmm10
kusano 2b45e8
	unpcklpd %xmm5, %xmm4
kusano 2b45e8
	movaps	 %xmm6, %xmm11
kusano 2b45e8
	unpcklpd %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,    0 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,    2 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,    4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,    6 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm8
kusano 2b45e8
	unpckhpd %xmm3, %xmm9
kusano 2b45e8
	unpckhpd %xmm5, %xmm10
kusano 2b45e8
	unpckhpd %xmm7, %xmm11
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm8,    8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm9,   10 * SIZE(B)
kusano 2b45e8
	movaps	%xmm10,  12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm11,  14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$4 * SIZE, AO1
kusano 2b45e8
	addq	$4 * SIZE, AO2
kusano 2b45e8
	subq	$-32 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L16:
kusano 2b45e8
	testq	$2, MM
kusano 2b45e8
	jle	.L18
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),         %xmm0
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),         %xmm4
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm9
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm4, %xmm10
kusano 2b45e8
	unpcklpd %xmm5, %xmm4
kusano 2b45e8
	movaps	 %xmm6, %xmm11
kusano 2b45e8
	unpcklpd %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm8
kusano 2b45e8
	unpckhpd %xmm3, %xmm9
kusano 2b45e8
	unpckhpd %xmm5, %xmm10
kusano 2b45e8
	unpckhpd %xmm7, %xmm11
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm8,   -8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm9,   -6 * SIZE(B)
kusano 2b45e8
	movaps	%xmm10,  -4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm11,  -2 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$2 * SIZE, AO1
kusano 2b45e8
	addq	$2 * SIZE, AO2
kusano 2b45e8
	subq	$-16 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L18:
kusano 2b45e8
	testq	$1, MM
kusano 2b45e8
	jle	.L19
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO1),         %xmm0
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO2),         %xmm4
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
	unpcklpd %xmm5, %xmm4
kusano 2b45e8
	unpcklpd %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	subq	$-8 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L19:
kusano 2b45e8
	decq	J
kusano 2b45e8
	jg	.L11
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L20:
kusano 2b45e8
	testq	$4, N
kusano 2b45e8
	jle	.L30
kusano 2b45e8
kusano 2b45e8
	movq	A, AO1
kusano 2b45e8
	leaq	(A, LDA, 2), AO2
kusano 2b45e8
	leaq	(A, LDA, 4), A
kusano 2b45e8
kusano 2b45e8
	testq	$SIZE, A
kusano 2b45e8
	je	.L22
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	movsd	0 * SIZE(AO2),      %xmm2
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$1 * SIZE, AO1
kusano 2b45e8
	addq	$1 * SIZE, AO2
kusano 2b45e8
	subq	$-4 * SIZE, B
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L22:
kusano 2b45e8
	movq	MM, I
kusano 2b45e8
	sarq	$3, I
kusano 2b45e8
	jle	.L24
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L23:
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 2 * SIZE(AO1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),      %xmm2
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm4
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm6
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm4
kusano 2b45e8
	unpckhpd %xmm3, %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  0) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 2 * SIZE(AO1, LDA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2),      %xmm2
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm4
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm6
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm4
kusano 2b45e8
	unpckhpd %xmm3, %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  8) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -6 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -2 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 2 * SIZE(AO2)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	4 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	4 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	MOVAPS	4 * SIZE(AO2),      %xmm2
kusano 2b45e8
	MOVAPS	4 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm4
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm6
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm4
kusano 2b45e8
	unpckhpd %xmm3, %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 16) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,   0 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,   2 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,   4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,   6 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 2 * SIZE(AO2, LDA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	6 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	6 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	MOVAPS	6 * SIZE(AO2),      %xmm2
kusano 2b45e8
	MOVAPS	6 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm4
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm6
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm4
kusano 2b45e8
	unpckhpd %xmm3, %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 24) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,   8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  10 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$8 * SIZE, AO1
kusano 2b45e8
	addq	$8 * SIZE, AO2
kusano 2b45e8
	subq	$-32 * SIZE, B
kusano 2b45e8
kusano 2b45e8
	decq	I
kusano 2b45e8
	jg	.L23
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L24:
kusano 2b45e8
	testq	$4, MM
kusano 2b45e8
	jle	.L26
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),      %xmm2
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm4
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm6
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm4
kusano 2b45e8
	unpckhpd %xmm3, %xmm6
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2),      %xmm2
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm4
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm6
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm4
kusano 2b45e8
	unpckhpd %xmm3, %xmm6
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -6 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -2 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$4 * SIZE, AO1
kusano 2b45e8
	addq	$4 * SIZE, AO2
kusano 2b45e8
	subq	$-16 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L26:
kusano 2b45e8
	testq	$2, MM
kusano 2b45e8
	jle	.L28
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),      %xmm2
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm4
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm6
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm4
kusano 2b45e8
	unpckhpd %xmm3, %xmm6
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$2 * SIZE, AO1
kusano 2b45e8
	addq	$2 * SIZE, AO2
kusano 2b45e8
	subq	$-8 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L28:
kusano 2b45e8
	testq	$1, MM
kusano 2b45e8
	jle	.L30
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	movsd	0 * SIZE(AO2),      %xmm2
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
	subq	$-4 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L30:
kusano 2b45e8
	testq	$2, N
kusano 2b45e8
	jle	.L40
kusano 2b45e8
kusano 2b45e8
	movq	A, AO1
kusano 2b45e8
	leaq	(A, LDA), AO2
kusano 2b45e8
	leaq	(A, LDA, 2), A
kusano 2b45e8
kusano 2b45e8
	testq	$SIZE, A
kusano 2b45e8
	je	.L32
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	movsd	0 * SIZE(AO2),      %xmm1
kusano 2b45e8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$1 * SIZE, AO1
kusano 2b45e8
	addq	$1 * SIZE, AO2
kusano 2b45e8
	subq	$-2 * SIZE, B
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L32:
kusano 2b45e8
	movq	MM, I
kusano 2b45e8
	sarq	$3, I
kusano 2b45e8
	jle	.L34
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L33:
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 4 * SIZE(AO1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),      %xmm1
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1),      %xmm2
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2),      %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm4
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm6
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm4
kusano 2b45e8
	unpckhpd %xmm3, %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  0) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 4 * SIZE(AO2)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	4 * SIZE(AO1), %xmm0
kusano 2b45e8
	MOVAPS	4 * SIZE(AO2), %xmm1
kusano 2b45e8
	MOVAPS	6 * SIZE(AO1), %xmm2
kusano 2b45e8
	MOVAPS	6 * SIZE(AO2), %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm4
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	movaps	 %xmm2, %xmm6
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	unpckhpd %xmm1, %xmm4
kusano 2b45e8
	unpckhpd %xmm3, %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  8) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -6 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -2 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$8 * SIZE, AO1
kusano 2b45e8
	addq	$8 * SIZE, AO2
kusano 2b45e8
	subq	$-16 * SIZE, B
kusano 2b45e8
kusano 2b45e8
	decq	I
kusano 2b45e8
	jg	.L33
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L34:
kusano 2b45e8
	testq	$4, MM
kusano 2b45e8
	jle	.L36
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),      %xmm1
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1),      %xmm2
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2),      %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm4
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	unpckhpd %xmm1, %xmm4
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm2, %xmm6
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
	unpckhpd %xmm3, %xmm6
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$4 * SIZE, AO1
kusano 2b45e8
	addq	$4 * SIZE, AO2
kusano 2b45e8
	subq	$-8 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L36:
kusano 2b45e8
	testq	$2, MM
kusano 2b45e8
	jle	.L38
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),      %xmm1
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm0, %xmm2
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	unpckhpd %xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$2 * SIZE, AO1
kusano 2b45e8
	addq	$2 * SIZE, AO2
kusano 2b45e8
	subq	$-4 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L38:
kusano 2b45e8
	testq	$1, MM
kusano 2b45e8
	jle	.L40
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	movsd	0 * SIZE(AO2),      %xmm1
kusano 2b45e8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	subq	$-2 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L40:
kusano 2b45e8
	testq	$1, N
kusano 2b45e8
	jle	.L999
kusano 2b45e8
kusano 2b45e8
	movq	A, AO1
kusano 2b45e8
kusano 2b45e8
	testq	$SIZE, A
kusano 2b45e8
	jne	.L45
kusano 2b45e8
kusano 2b45e8
	movq	MM, I
kusano 2b45e8
	sarq	$3, I
kusano 2b45e8
	jle	.L42
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L41:
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 8 * SIZE(AO1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1),      %xmm1
kusano 2b45e8
	MOVAPS	4 * SIZE(AO1),      %xmm2
kusano 2b45e8
	MOVAPS	6 * SIZE(AO1),      %xmm3
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  0) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm1,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm3,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$8 * SIZE, AO1
kusano 2b45e8
	subq	$-8 * SIZE, B
kusano 2b45e8
kusano 2b45e8
	decq	I
kusano 2b45e8
	jg	.L41
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L42:
kusano 2b45e8
	testq	$4, MM
kusano 2b45e8
	jle	.L43
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1),      %xmm1
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0, -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm1, -14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$4 * SIZE, AO1
kusano 2b45e8
	subq	$-4 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L43:
kusano 2b45e8
	testq	$2, MM
kusano 2b45e8
	jle	.L44
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$2 * SIZE, AO1
kusano 2b45e8
	subq	$-2 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L44:
kusano 2b45e8
	testq	$1, MM
kusano 2b45e8
	jle	.L999
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	jmp	.L999
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L45:
kusano 2b45e8
	MOVAPS	-1 * SIZE(AO1),      %xmm0
kusano 2b45e8
kusano 2b45e8
	movq	M, I
kusano 2b45e8
	sarq	$3, I
kusano 2b45e8
	jle	.L46
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L46:
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 8 * SIZE(AO1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1),      %xmm1
kusano 2b45e8
	MOVAPS	3 * SIZE(AO1),      %xmm2
kusano 2b45e8
	MOVAPS	5 * SIZE(AO1),      %xmm3
kusano 2b45e8
	MOVAPS	7 * SIZE(AO1),      %xmm4
kusano 2b45e8
kusano 2b45e8
	shufpd	$1, %xmm1, %xmm0
kusano 2b45e8
	shufpd	$1, %xmm2, %xmm1
kusano 2b45e8
	shufpd	$1, %xmm3, %xmm2
kusano 2b45e8
	shufpd	$1, %xmm4, %xmm3
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  0) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm1,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm3,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm4, %xmm0
kusano 2b45e8
kusano 2b45e8
	addq	$8 * SIZE, AO1
kusano 2b45e8
	subq	$-8 * SIZE, B
kusano 2b45e8
kusano 2b45e8
	decq	I
kusano 2b45e8
	jg	.L46
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L47:
kusano 2b45e8
	testq	$4, M
kusano 2b45e8
	jle	.L48
kusano 2b45e8
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1),      %xmm1
kusano 2b45e8
	MOVAPS	3 * SIZE(AO1),      %xmm2
kusano 2b45e8
kusano 2b45e8
	shufpd	$1, %xmm1, %xmm0
kusano 2b45e8
	shufpd	$1, %xmm2, %xmm1
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm1,  -14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm0
kusano 2b45e8
kusano 2b45e8
	addq	$4 * SIZE, AO1
kusano 2b45e8
	addq	$4 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L48:
kusano 2b45e8
	testq	$2, M
kusano 2b45e8
	jle	.L49
kusano 2b45e8
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1),      %xmm1
kusano 2b45e8
kusano 2b45e8
	shufpd	$1, %xmm1, %xmm0
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm1, %xmm0
kusano 2b45e8
kusano 2b45e8
	addq	$2 * SIZE, AO1
kusano 2b45e8
	subq	$-2 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L49:
kusano 2b45e8
	testq	$1, M
kusano 2b45e8
	jle	.L999
kusano 2b45e8
kusano 2b45e8
	shufpd	$1, %xmm0, %xmm0
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	jmp	.L999
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L50:
kusano 2b45e8
	movq	N,  J
kusano 2b45e8
	sarq	$3, J
kusano 2b45e8
	jle	.L60
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L51:
kusano 2b45e8
	movq	A, AO1
kusano 2b45e8
	leaq	(A, LDA, 4), AO2
kusano 2b45e8
	leaq	(A, LDA, 8), A
kusano 2b45e8
kusano 2b45e8
	testq	$SIZE, A
kusano 2b45e8
	je	.L52
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO1),         %xmm0
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
	movsd	0 * SIZE(AO2),         %xmm4
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
	unpcklpd %xmm5, %xmm4
kusano 2b45e8
	unpcklpd %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$1 * SIZE, AO1
kusano 2b45e8
	addq	$1 * SIZE, AO2
kusano 2b45e8
	subq	$-8 * SIZE, B
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L52:
kusano 2b45e8
	MOVAPS	-1 * SIZE(AO1, LDA),  %xmm9
kusano 2b45e8
	MOVAPS	-1 * SIZE(AO1, LDA3), %xmm10
kusano 2b45e8
	MOVAPS	-1 * SIZE(AO2, LDA),  %xmm11
kusano 2b45e8
	MOVAPS	-1 * SIZE(AO2, LDA3), %xmm12
kusano 2b45e8
kusano 2b45e8
	movq	MM, I
kusano 2b45e8
	sarq	$3, I
kusano 2b45e8
	jle	.L54
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L53:
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),         %xmm0
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO1, LDA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),         %xmm4
kusano 2b45e8
	MOVAPS	1 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	MOVAPS	1 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm9
kusano 2b45e8
	movsd	 %xmm2, %xmm10
kusano 2b45e8
	movsd	 %xmm4, %xmm11
kusano 2b45e8
	movsd	 %xmm6, %xmm12
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  0) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm9,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm10, -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm11, -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm12, -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	shufpd	 $1, %xmm1, %xmm0
kusano 2b45e8
	shufpd	 $1, %xmm3, %xmm2
kusano 2b45e8
	shufpd	 $1, %xmm5, %xmm4
kusano 2b45e8
	shufpd	 $1, %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  8) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,   -8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,   -6 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,   -4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,   -2 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO1, LDA, 2)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1),         %xmm0
kusano 2b45e8
	MOVAPS	3 * SIZE(AO1, LDA),    %xmm9
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	MOVAPS	3 * SIZE(AO1, LDA3),   %xmm10
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO1, LDA3)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2),         %xmm4
kusano 2b45e8
	MOVAPS	3 * SIZE(AO2, LDA),    %xmm11
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	MOVAPS	3 * SIZE(AO2, LDA3),   %xmm12
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm1
kusano 2b45e8
	movsd	 %xmm2, %xmm3
kusano 2b45e8
	movsd	 %xmm4, %xmm5
kusano 2b45e8
	movsd	 %xmm6, %xmm7
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 16) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm1,    0 * SIZE(B)
kusano 2b45e8
	movaps	%xmm3,    2 * SIZE(B)
kusano 2b45e8
	movaps	%xmm5,    4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm7,    6 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	shufpd	 $1, %xmm9,  %xmm0
kusano 2b45e8
	shufpd	 $1, %xmm10, %xmm2
kusano 2b45e8
	shufpd	 $1, %xmm11, %xmm4
kusano 2b45e8
	shufpd	 $1, %xmm12, %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 24) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,    8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,   10 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,   12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,   14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO2)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	4 * SIZE(AO1),         %xmm0
kusano 2b45e8
	MOVAPS	5 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	MOVAPS	4 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	MOVAPS	5 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO2, LDA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	4 * SIZE(AO2),         %xmm4
kusano 2b45e8
	MOVAPS	5 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	MOVAPS	4 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	MOVAPS	5 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm9
kusano 2b45e8
	movsd	 %xmm2, %xmm10
kusano 2b45e8
	movsd	 %xmm4, %xmm11
kusano 2b45e8
	movsd	 %xmm6, %xmm12
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 32) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm9,   16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm10,  18 * SIZE(B)
kusano 2b45e8
	movaps	%xmm11,  20 * SIZE(B)
kusano 2b45e8
	movaps	%xmm12,  22 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	shufpd	 $1, %xmm1, %xmm0
kusano 2b45e8
	shufpd	 $1, %xmm3, %xmm2
kusano 2b45e8
	shufpd	 $1, %xmm5, %xmm4
kusano 2b45e8
	shufpd	 $1, %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 4 +  8) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,   24 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,   26 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,   28 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,   30 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO2, LDA, 2)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	6 * SIZE(AO1),         %xmm0
kusano 2b45e8
	MOVAPS	7 * SIZE(AO1, LDA),    %xmm9
kusano 2b45e8
	MOVAPS	6 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	MOVAPS	7 * SIZE(AO1, LDA3),   %xmm10
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * SIZE(AO2, LDA3)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	6 * SIZE(AO2),         %xmm4
kusano 2b45e8
	MOVAPS	7 * SIZE(AO2, LDA),    %xmm11
kusano 2b45e8
	MOVAPS	6 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	MOVAPS	7 * SIZE(AO2, LDA3),   %xmm12
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm1
kusano 2b45e8
	movsd	 %xmm2, %xmm3
kusano 2b45e8
	movsd	 %xmm4, %xmm5
kusano 2b45e8
	movsd	 %xmm6, %xmm7
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 40) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm1,   32 * SIZE(B)
kusano 2b45e8
	movaps	%xmm3,   34 * SIZE(B)
kusano 2b45e8
	movaps	%xmm5,   36 * SIZE(B)
kusano 2b45e8
	movaps	%xmm7,   38 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	shufpd	 $1, %xmm9,  %xmm0
kusano 2b45e8
	shufpd	 $1, %xmm10, %xmm2
kusano 2b45e8
	shufpd	 $1, %xmm11, %xmm4
kusano 2b45e8
	shufpd	 $1, %xmm12, %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 48) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
	movaps	%xmm0,   40 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,   42 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,   44 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,   46 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$8 * SIZE, AO1
kusano 2b45e8
	addq	$8 * SIZE, AO2
kusano 2b45e8
	subq	$-64 * SIZE, B
kusano 2b45e8
kusano 2b45e8
	decq	I
kusano 2b45e8
	jg	.L53
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L54:
kusano 2b45e8
	testq	$4, MM
kusano 2b45e8
	jle	.L56
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),         %xmm0
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),         %xmm4
kusano 2b45e8
	MOVAPS	1 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	MOVAPS	1 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm9
kusano 2b45e8
	movsd	 %xmm2, %xmm10
kusano 2b45e8
	movsd	 %xmm4, %xmm11
kusano 2b45e8
	movsd	 %xmm6, %xmm12
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm9,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm10, -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm11, -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm12, -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	shufpd	 $1, %xmm1, %xmm0
kusano 2b45e8
	shufpd	 $1, %xmm3, %xmm2
kusano 2b45e8
	shufpd	 $1, %xmm5, %xmm4
kusano 2b45e8
	shufpd	 $1, %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,   -8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,   -6 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,   -4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,   -2 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1),         %xmm0
kusano 2b45e8
	MOVAPS	3 * SIZE(AO1, LDA),    %xmm9
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	MOVAPS	3 * SIZE(AO1, LDA3),   %xmm10
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2),         %xmm4
kusano 2b45e8
	MOVAPS	3 * SIZE(AO2, LDA),    %xmm11
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	MOVAPS	3 * SIZE(AO2, LDA3),   %xmm12
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm1
kusano 2b45e8
	movsd	 %xmm2, %xmm3
kusano 2b45e8
	movsd	 %xmm4, %xmm5
kusano 2b45e8
	movsd	 %xmm6, %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm1,    0 * SIZE(B)
kusano 2b45e8
	movaps	%xmm3,    2 * SIZE(B)
kusano 2b45e8
	movaps	%xmm5,    4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm7,    6 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	shufpd	 $1, %xmm9,  %xmm0
kusano 2b45e8
	shufpd	 $1, %xmm10, %xmm2
kusano 2b45e8
	shufpd	 $1, %xmm11, %xmm4
kusano 2b45e8
	shufpd	 $1, %xmm12, %xmm6
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,    8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,   10 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,   12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,   14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$4 * SIZE, AO1
kusano 2b45e8
	addq	$4 * SIZE, AO2
kusano 2b45e8
	subq	$-32 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L56:
kusano 2b45e8
	testq	$2, MM
kusano 2b45e8
	jle	.L58
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),         %xmm0
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),         %xmm4
kusano 2b45e8
	MOVAPS	1 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	MOVAPS	1 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm9
kusano 2b45e8
	movsd	 %xmm2, %xmm10
kusano 2b45e8
	movsd	 %xmm4, %xmm11
kusano 2b45e8
	movsd	 %xmm6, %xmm12
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm9,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm10, -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm11, -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm12, -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	shufpd	 $1, %xmm1, %xmm0
kusano 2b45e8
	shufpd	 $1, %xmm3, %xmm2
kusano 2b45e8
	shufpd	 $1, %xmm5, %xmm4
kusano 2b45e8
	shufpd	 $1, %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,   -8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,   -6 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,   -4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,   -2 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$2 * SIZE, AO1
kusano 2b45e8
	addq	$2 * SIZE, AO2
kusano 2b45e8
	subq	$-16 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L58:
kusano 2b45e8
	testq	$1, MM
kusano 2b45e8
	jle	.L59
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO1),         %xmm0
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA),    %xmm1
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA, 2), %xmm2
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA3),   %xmm3
kusano 2b45e8
	movsd	0 * SIZE(AO2),         %xmm4
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA),    %xmm5
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA, 2), %xmm6
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA3),   %xmm7
kusano 2b45e8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
	unpcklpd %xmm5, %xmm4
kusano 2b45e8
	unpcklpd %xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	subq	$-8 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L59:
kusano 2b45e8
	decq	J
kusano 2b45e8
	jg	.L51
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L60:
kusano 2b45e8
	testq	$4, N
kusano 2b45e8
	jle	.L70
kusano 2b45e8
kusano 2b45e8
	movq	A, AO1
kusano 2b45e8
	leaq	(A, LDA, 2), AO2
kusano 2b45e8
	leaq	(A, LDA, 4), A
kusano 2b45e8
kusano 2b45e8
	testq	$SIZE, A
kusano 2b45e8
	je	.L62
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	movsd	0 * SIZE(AO2),      %xmm2
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$1 * SIZE, AO1
kusano 2b45e8
	addq	$1 * SIZE, AO2
kusano 2b45e8
	subq	$-4 * SIZE, B
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L62:
kusano 2b45e8
	movaps	-1 * SIZE(AO1, LDA), %xmm5
kusano 2b45e8
	movaps	-1 * SIZE(AO2, LDA), %xmm7
kusano 2b45e8
kusano 2b45e8
	movq	MM, I
kusano 2b45e8
	sarq	$3, I
kusano 2b45e8
	jle	.L64
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L63:
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 2 * SIZE(AO1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),      %xmm2
kusano 2b45e8
	MOVAPS	1 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm5
kusano 2b45e8
	movsd	 %xmm2, %xmm7
kusano 2b45e8
	shufpd	 $1, %xmm1, %xmm0
kusano 2b45e8
	shufpd	 $1, %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  0) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm7,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm0,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 2 * SIZE(AO1, LDA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	3 * SIZE(AO1, LDA), %xmm5
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2),      %xmm2
kusano 2b45e8
	MOVAPS	3 * SIZE(AO2, LDA), %xmm7
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm1
kusano 2b45e8
	movsd	 %xmm2, %xmm3
kusano 2b45e8
	shufpd	 $1, %xmm5, %xmm0
kusano 2b45e8
	shufpd	 $1, %xmm7, %xmm2
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  8) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm1,  -8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm3,  -6 * SIZE(B)
kusano 2b45e8
	movaps	%xmm0,  -4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -2 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 2 * SIZE(AO2)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	4 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	5 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	MOVAPS	4 * SIZE(AO2),      %xmm2
kusano 2b45e8
	MOVAPS	5 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm5
kusano 2b45e8
	movsd	 %xmm2, %xmm7
kusano 2b45e8
	shufpd	 $1, %xmm1, %xmm0
kusano 2b45e8
	shufpd	 $1, %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 16) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5,    0 * SIZE(B)
kusano 2b45e8
	movaps	%xmm7,    2 * SIZE(B)
kusano 2b45e8
	movaps	%xmm0,    4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,    6 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 2 * SIZE(AO2, LDA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	6 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	7 * SIZE(AO1, LDA), %xmm5
kusano 2b45e8
	MOVAPS	6 * SIZE(AO2),      %xmm2
kusano 2b45e8
	MOVAPS	7 * SIZE(AO2, LDA), %xmm7
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm1
kusano 2b45e8
	movsd	 %xmm2, %xmm3
kusano 2b45e8
	shufpd	 $1, %xmm5, %xmm0
kusano 2b45e8
	shufpd	 $1, %xmm7, %xmm2
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 + 24) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm1,   8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm3,  10 * SIZE(B)
kusano 2b45e8
	movaps	%xmm0,  12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$8 * SIZE, AO1
kusano 2b45e8
	addq	$8 * SIZE, AO2
kusano 2b45e8
	subq	$-32 * SIZE, B
kusano 2b45e8
kusano 2b45e8
	decq	I
kusano 2b45e8
	jg	.L63
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L64:
kusano 2b45e8
	testq	$4, MM
kusano 2b45e8
	jle	.L66
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),      %xmm2
kusano 2b45e8
	MOVAPS	1 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm5
kusano 2b45e8
	shufpd	 $1, %xmm1, %xmm0
kusano 2b45e8
	movsd	 %xmm2, %xmm7
kusano 2b45e8
	shufpd	 $1, %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm7,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm0,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	3 * SIZE(AO1, LDA), %xmm5
kusano 2b45e8
	MOVAPS	2 * SIZE(AO2),      %xmm2
kusano 2b45e8
	MOVAPS	3 * SIZE(AO2, LDA), %xmm7
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm1
kusano 2b45e8
	shufpd	 $1, %xmm5, %xmm0
kusano 2b45e8
	movsd	 %xmm2, %xmm3
kusano 2b45e8
	shufpd	 $1, %xmm7, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm1,  -8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm3,  -6 * SIZE(B)
kusano 2b45e8
	movaps	%xmm0,  -4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -2 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$4 * SIZE, AO1
kusano 2b45e8
	addq	$4 * SIZE, AO2
kusano 2b45e8
	subq	$-16 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L66:
kusano 2b45e8
	testq	$2, MM
kusano 2b45e8
	jle	.L68
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	MOVAPS	0 * SIZE(AO2),      %xmm2
kusano 2b45e8
	MOVAPS	1 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm5
kusano 2b45e8
	movsd	 %xmm2, %xmm7
kusano 2b45e8
	shufpd	 $1, %xmm1, %xmm0
kusano 2b45e8
	shufpd	 $1, %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm7,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm0,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$2 * SIZE, AO1
kusano 2b45e8
	addq	$2 * SIZE, AO2
kusano 2b45e8
	subq	$-8 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L68:
kusano 2b45e8
	testq	$1, MM
kusano 2b45e8
	jle	.L70
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	movsd	0 * SIZE(AO1, LDA), %xmm1
kusano 2b45e8
	movsd	0 * SIZE(AO2),      %xmm2
kusano 2b45e8
	movsd	0 * SIZE(AO2, LDA), %xmm3
kusano 2b45e8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
	unpcklpd %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
	subq	$-4 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L70:
kusano 2b45e8
	testq	$2, N
kusano 2b45e8
	jle	.L80
kusano 2b45e8
kusano 2b45e8
	movq	A, AO1
kusano 2b45e8
	leaq	(A, LDA), AO2
kusano 2b45e8
	leaq	(A, LDA, 2), A
kusano 2b45e8
kusano 2b45e8
	testq	$SIZE, A
kusano 2b45e8
	je	.L72
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO1), %xmm0
kusano 2b45e8
	movsd	0 * SIZE(AO2), %xmm1
kusano 2b45e8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$1 * SIZE, AO1
kusano 2b45e8
	addq	$1 * SIZE, AO2
kusano 2b45e8
	subq	$-2 * SIZE, B
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L72:
kusano 2b45e8
	MOVAPS	-1 * SIZE(AO2), %xmm5
kusano 2b45e8
kusano 2b45e8
	movq	MM, I
kusano 2b45e8
	sarq	$3, I
kusano 2b45e8
	jle	.L74
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L73:
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 4 * SIZE(AO1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1), %xmm0
kusano 2b45e8
	MOVAPS	1 * SIZE(AO2), %xmm1
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1), %xmm2
kusano 2b45e8
	MOVAPS	3 * SIZE(AO2), %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm5
kusano 2b45e8
	shufpd	 $1, %xmm1, %xmm0
kusano 2b45e8
	movsd	 %xmm2, %xmm1
kusano 2b45e8
	shufpd	 $1, %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  0) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm0,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm1,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 4 * SIZE(AO2)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	4 * SIZE(AO1), %xmm0
kusano 2b45e8
	MOVAPS	5 * SIZE(AO2), %xmm1
kusano 2b45e8
	MOVAPS	6 * SIZE(AO1), %xmm2
kusano 2b45e8
	MOVAPS	7 * SIZE(AO2), %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm3
kusano 2b45e8
	shufpd	 $1, %xmm1, %xmm0
kusano 2b45e8
	movsd	 %xmm2, %xmm1
kusano 2b45e8
	shufpd	 $1, %xmm5, %xmm2
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  8) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3,   -8 * SIZE(B)
kusano 2b45e8
	movaps	%xmm0,   -6 * SIZE(B)
kusano 2b45e8
	movaps	%xmm1,   -4 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,   -2 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$8 * SIZE, AO1
kusano 2b45e8
	addq	$8 * SIZE, AO2
kusano 2b45e8
	subq	$-16 * SIZE, B
kusano 2b45e8
kusano 2b45e8
	decq	I
kusano 2b45e8
	jg	.L73
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L74:
kusano 2b45e8
	testq	$4, MM
kusano 2b45e8
	jle	.L76
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1), %xmm0
kusano 2b45e8
	MOVAPS	1 * SIZE(AO2), %xmm1
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1), %xmm2
kusano 2b45e8
	MOVAPS	3 * SIZE(AO2), %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm5
kusano 2b45e8
	shufpd	 $1, %xmm1, %xmm0
kusano 2b45e8
	movsd	 %xmm2, %xmm1
kusano 2b45e8
	shufpd	 $1, %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm0,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm1,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm5
kusano 2b45e8
kusano 2b45e8
	addq	$4 * SIZE, AO1
kusano 2b45e8
	addq	$4 * SIZE, AO2
kusano 2b45e8
	subq	$-8 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L76:
kusano 2b45e8
	testq	$2, MM
kusano 2b45e8
	jle	.L78
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1), %xmm0
kusano 2b45e8
	MOVAPS	1 * SIZE(AO2), %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	 %xmm0, %xmm5
kusano 2b45e8
	shufpd	 $1, %xmm1, %xmm0
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm0,  -14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$2 * SIZE, AO1
kusano 2b45e8
	addq	$2 * SIZE, AO2
kusano 2b45e8
	subq	$-4 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L78:
kusano 2b45e8
	testq	$1, MM
kusano 2b45e8
	jle	.L80
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	movsd	0 * SIZE(AO2),      %xmm1
kusano 2b45e8
kusano 2b45e8
	unpcklpd %xmm1, %xmm0
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	subq	$-2 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L80:
kusano 2b45e8
	testq	$1, N
kusano 2b45e8
	jle	.L999
kusano 2b45e8
kusano 2b45e8
	movq	A, AO1
kusano 2b45e8
kusano 2b45e8
	testq	$SIZE, A
kusano 2b45e8
	jne	.L85
kusano 2b45e8
kusano 2b45e8
	movq	MM, I
kusano 2b45e8
	sarq	$3, I
kusano 2b45e8
	jle	.L82
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L81:
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 8 * SIZE(AO1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1),      %xmm2
kusano 2b45e8
	MOVAPS	4 * SIZE(AO1),      %xmm4
kusano 2b45e8
	MOVAPS	6 * SIZE(AO1),      %xmm6
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  0) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm4,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm6,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$8 * SIZE, AO1
kusano 2b45e8
	subq	$-8 * SIZE, B
kusano 2b45e8
kusano 2b45e8
	decq	I
kusano 2b45e8
	jg	.L81
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L82:
kusano 2b45e8
	testq	$4, MM
kusano 2b45e8
	jle	.L83
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
	MOVAPS	2 * SIZE(AO1),      %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0, -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2, -14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$4 * SIZE, AO1
kusano 2b45e8
	subq	$-4 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L83:
kusano 2b45e8
	testq	$2, MM
kusano 2b45e8
	jle	.L84
kusano 2b45e8
kusano 2b45e8
	MOVAPS	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	addq	$2 * SIZE, AO1
kusano 2b45e8
	subq	$-2 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L84:
kusano 2b45e8
	testq	$1, MM
kusano 2b45e8
	jle	.L999
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(AO1),      %xmm0
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	jmp	.L999
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L85:
kusano 2b45e8
	MOVAPS	-1 * SIZE(AO1),      %xmm0
kusano 2b45e8
kusano 2b45e8
	movq	M, I
kusano 2b45e8
	sarq	$3, I
kusano 2b45e8
	jle	.L86
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L86:
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	PREFETCHSIZE * 8 * SIZE(AO1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1),      %xmm1
kusano 2b45e8
	MOVAPS	3 * SIZE(AO1),      %xmm2
kusano 2b45e8
	MOVAPS	5 * SIZE(AO1),      %xmm3
kusano 2b45e8
	MOVAPS	7 * SIZE(AO1),      %xmm4
kusano 2b45e8
kusano 2b45e8
	shufpd	$1, %xmm1, %xmm0
kusano 2b45e8
	shufpd	$1, %xmm2, %xmm1
kusano 2b45e8
	shufpd	$1, %xmm3, %xmm2
kusano 2b45e8
	shufpd	$1, %xmm4, %xmm3
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCHW
kusano 2b45e8
	PREFETCHW	(PREFETCHSIZE * 8 +  0) * SIZE(B)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm1,  -14 * SIZE(B)
kusano 2b45e8
	movaps	%xmm2,  -12 * SIZE(B)
kusano 2b45e8
	movaps	%xmm3,  -10 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm4, %xmm0
kusano 2b45e8
kusano 2b45e8
	addq	$8 * SIZE, AO1
kusano 2b45e8
	subq	$-8 * SIZE, B
kusano 2b45e8
kusano 2b45e8
	decq	I
kusano 2b45e8
	jg	.L86
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L87:
kusano 2b45e8
	testq	$4, M
kusano 2b45e8
	jle	.L88
kusano 2b45e8
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1),      %xmm1
kusano 2b45e8
	MOVAPS	3 * SIZE(AO1),      %xmm2
kusano 2b45e8
kusano 2b45e8
	shufpd	$1, %xmm1, %xmm0
kusano 2b45e8
	shufpd	$1, %xmm2, %xmm1
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	movaps	%xmm1,  -14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm0
kusano 2b45e8
kusano 2b45e8
	addq	$4 * SIZE, AO1
kusano 2b45e8
	addq	$4 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L88:
kusano 2b45e8
	testq	$2, M
kusano 2b45e8
	jle	.L89
kusano 2b45e8
kusano 2b45e8
	MOVAPS	1 * SIZE(AO1),      %xmm1
kusano 2b45e8
kusano 2b45e8
	shufpd	$1, %xmm1, %xmm0
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm1, %xmm0
kusano 2b45e8
kusano 2b45e8
	addq	$2 * SIZE, AO1
kusano 2b45e8
	subq	$-2 * SIZE, B
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L89:
kusano 2b45e8
	testq	$1, M
kusano 2b45e8
	jle	.L999
kusano 2b45e8
kusano 2b45e8
	shufpd	$1, %xmm0, %xmm0
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm0,  -16 * SIZE(B)
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L999:
kusano 2b45e8
#ifdef WINDOWS_ABI
kusano 2b45e8
	movups	  0(%rsp), %xmm6
kusano 2b45e8
	movups	 16(%rsp), %xmm7
kusano 2b45e8
	movups	 32(%rsp), %xmm8
kusano 2b45e8
	movups	 48(%rsp), %xmm9
kusano 2b45e8
	movups	 64(%rsp), %xmm10
kusano 2b45e8
	movups	 80(%rsp), %xmm11
kusano 2b45e8
	movups	 96(%rsp), %xmm12
kusano 2b45e8
kusano 2b45e8
	addq	$STACKSIZE, %rsp
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	popq	%r12
kusano 2b45e8
	popq	%r13
kusano 2b45e8
kusano 2b45e8
#ifdef WINDOWS_ABI
kusano 2b45e8
	popq	%r14
kusano 2b45e8
	popq	%r15
kusano 2b45e8
#endif
kusano 2b45e8
	ret
kusano 2b45e8
kusano 2b45e8
	EPILOGUE