Blame thirdparty/openblas/xianyi-OpenBLAS-e6e87a2/kernel/x86/trsm_kernel_RT_8x2_sse.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
#if !defined(HAVE_SSE) || !defined(HAVE_MMX)
kusano 2b45e8
#error  You have to check your configuration.
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#define STACK	16
kusano 2b45e8
#define ARGS	 0
kusano 2b45e8
	
kusano 2b45e8
#define STACK_M	 4 + STACK + ARGS(%esi)
kusano 2b45e8
#define STACK_N	 8 + STACK + ARGS(%esi)
kusano 2b45e8
#define STACK_K	12 + STACK + ARGS(%esi)
kusano 2b45e8
#define STACK_A	20 + STACK + ARGS(%esi)
kusano 2b45e8
#define STACK_B	24 + STACK + ARGS(%esi)
kusano 2b45e8
#define STACK_C	28 + STACK + ARGS(%esi)
kusano 2b45e8
#define STACK_LDC	32 + STACK + ARGS(%esi)
kusano 2b45e8
#define STACK_OFFT	36 + STACK + ARGS(%esi)
kusano 2b45e8
kusano 2b45e8
#define TRMASK	 0(%esp)
kusano 2b45e8
#define K	16(%esp)
kusano 2b45e8
#define N	20(%esp)
kusano 2b45e8
#define M	24(%esp)
kusano 2b45e8
#define A	28(%esp)
kusano 2b45e8
#define C	32(%esp)
kusano 2b45e8
#define J	36(%esp)
kusano 2b45e8
#define OLD_STACK 40(%esp)
kusano 2b45e8
#define OFFSET  44(%esp)
kusano 2b45e8
#define KK	48(%esp)
kusano 2b45e8
#define KKK	52(%esp)
kusano 2b45e8
#define AORIG	56(%esp)
kusano 2b45e8
#define BORIG	60(%esp)
kusano 2b45e8
#define BUFFER 128(%esp)
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_3DNOW
kusano 2b45e8
#define PREFETCH     prefetch
kusano 2b45e8
#define PREFETCHW    prefetchw
kusano 2b45e8
#define PREFETCHSIZE (16 * 10 + 8)
kusano 2b45e8
#else
kusano 2b45e8
#define PREFETCH     prefetcht0
kusano 2b45e8
#define PREFETCHW    prefetcht0
kusano 2b45e8
#define PREFETCHSIZE   96
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#define B	%edi
kusano 2b45e8
#define AA	%edx
kusano 2b45e8
#define	BB	%ecx
kusano 2b45e8
#define LDC	%ebp
kusano 2b45e8
#define CO1	%esi
kusano 2b45e8
kusano 2b45e8
#define STACK_ALIGN	4096
kusano 2b45e8
#define STACK_OFFSET	1024
kusano 2b45e8
kusano 2b45e8
#if !defined(HAVE_SSE2) || defined(OPTERON)
kusano 2b45e8
#define movsd	movlps
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
#define xorps	pxor
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	PROLOGUE
kusano 2b45e8
kusano 2b45e8
	pushl	%ebp
kusano 2b45e8
	pushl	%edi
kusano 2b45e8
	pushl	%esi
kusano 2b45e8
	pushl	%ebx
kusano 2b45e8
kusano 2b45e8
	PROFCODE
kusano 2b45e8
kusano 2b45e8
	movl	%esp, %esi	# save old stack
kusano 2b45e8
kusano 2b45e8
	subl	$128 + LOCAL_BUFFER_SIZE, %esp
kusano 2b45e8
	andl	$-STACK_ALIGN, %esp
kusano 2b45e8
kusano 2b45e8
	STACK_TOUCHING
kusano 2b45e8
kusano 2b45e8
	movss	STACK_M, %xmm0
kusano 2b45e8
	movl	STACK_N, %eax
kusano 2b45e8
	movss	STACK_K, %xmm1
kusano 2b45e8
	movss	STACK_A, %xmm2
kusano 2b45e8
	movl	STACK_B, B
kusano 2b45e8
	movss	STACK_C, %xmm3
kusano 2b45e8
	movl	STACK_LDC, LDC
kusano 2b45e8
	movss	STACK_OFFT, %xmm4
kusano 2b45e8
kusano 2b45e8
	movss	%xmm1, K
kusano 2b45e8
	movl	%eax,  N
kusano 2b45e8
	movss	%xmm0, M
kusano 2b45e8
	movss	%xmm2, A
kusano 2b45e8
	movss	%xmm3, C
kusano 2b45e8
	movl	%esi,  OLD_STACK
kusano 2b45e8
	movss	%xmm4, OFFSET
kusano 2b45e8
	movss	%xmm4, KK
kusano 2b45e8
kusano 2b45e8
	leal	(, LDC, SIZE), LDC
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
       movl	M, %eax
kusano 2b45e8
       leal	(, %eax, SIZE), %eax
kusano 2b45e8
       addl	%eax, C
kusano 2b45e8
       imull	K, %eax
kusano 2b45e8
       addl	%eax, A
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
       movl	N, %eax
kusano 2b45e8
       leal	(, %eax, SIZE), %eax
kusano 2b45e8
       imull	K, %eax
kusano 2b45e8
       addl	%eax, B
kusano 2b45e8
       movl	N, %eax
kusano 2b45e8
       imull	LDC, %eax
kusano 2b45e8
       addl	%eax, C
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RN
kusano 2b45e8
	negl	KK
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
       movl	N, %eax
kusano 2b45e8
       subl	OFFSET, %eax
kusano 2b45e8
       movl	%eax, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movl	  $0x3f800000,   0 + TRMASK	#  1.0
kusano 2b45e8
	movl	  $0x00000000,   4 + TRMASK	#  0.0
kusano 2b45e8
	movl	  $0x3f800000,   8 + TRMASK	#  1.0
kusano 2b45e8
	movl	  $0x00000000,  12 + TRMASK	#  0.0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	testl	$1, N
kusano 2b45e8
	jle	.L100
kusano 2b45e8
	
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	movl	OFFSET, %eax
kusano 2b45e8
	addl	M, %eax
kusano 2b45e8
	movl	%eax, KK
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
       movl	K, %eax
kusano 2b45e8
       sall	$BASE_SHIFT, %eax
kusano 2b45e8
       subl	%eax, B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	movl	B, BORIG
kusano 2b45e8
        sall	$BASE_SHIFT, %eax
kusano 2b45e8
	leal	(B,  %eax, 1), B
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	movl	OFFSET, %eax
kusano 2b45e8
	movl	%eax, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K,  %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	jle	.L103
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
	
kusano 2b45e8
.L102:
kusano 2b45e8
	movsd	 0 * SIZE(B), %xmm3
kusano 2b45e8
	movhps	 2 * SIZE(B), %xmm3
kusano 2b45e8
	movsd	 4 * SIZE(B), %xmm7
kusano 2b45e8
	movhps	 6 * SIZE(B), %xmm7
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
	pshufd	 $0x00, %xmm3, %xmm0
kusano 2b45e8
	pshufd	 $0x55, %xmm3, %xmm1
kusano 2b45e8
	pshufd	 $0xaa, %xmm3, %xmm2
kusano 2b45e8
	pshufd	 $0xff, %xmm3, %xmm3
kusano 2b45e8
kusano 2b45e8
	pshufd	 $0x00, %xmm7, %xmm4
kusano 2b45e8
	pshufd	 $0x55, %xmm7, %xmm5
kusano 2b45e8
	pshufd	 $0xaa, %xmm7, %xmm6
kusano 2b45e8
	pshufd	 $0xff, %xmm7, %xmm7
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm3, %xmm0
kusano 2b45e8
	shufps	 $0x00, %xmm0, %xmm0
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	 $0x55, %xmm1, %xmm1
kusano 2b45e8
	movaps	%xmm3, %xmm2
kusano 2b45e8
	shufps	 $0xaa, %xmm2, %xmm2
kusano 2b45e8
	shufps	 $0xff, %xmm3, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm7, %xmm4
kusano 2b45e8
	shufps	 $0x00, %xmm4, %xmm4
kusano 2b45e8
	movaps	%xmm7, %xmm5
kusano 2b45e8
	shufps	 $0x55, %xmm5, %xmm5
kusano 2b45e8
	movaps	%xmm7, %xmm6
kusano 2b45e8
	shufps	 $0xaa, %xmm6, %xmm6
kusano 2b45e8
	shufps	 $0xff, %xmm7, %xmm7
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  0 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,  4 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm2,  8 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm3, 12 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm4, 16 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm5, 20 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm6, 24 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm7, 28 * SIZE(BB)
kusano 2b45e8
kusano 2b45e8
	addl	$ 8 * SIZE, B
kusano 2b45e8
	addl	$32 * SIZE, BB
kusano 2b45e8
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	BRANCH
kusano 2b45e8
	jne	.L102
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L103:
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K,  %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	andl	$7, %eax
kusano 2b45e8
	BRANCH
kusano 2b45e8
	jle	.L105
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L104:
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm0
kusano 2b45e8
kusano 2b45e8
	shufps	 $0x00, %xmm0, %xmm0
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  0 * SIZE(BB)
kusano 2b45e8
kusano 2b45e8
	addl	$1 * SIZE, B
kusano 2b45e8
	addl	$4 * SIZE, BB
kusano 2b45e8
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jne	.L104
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L105:
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	A, AA
kusano 2b45e8
#else
kusano 2b45e8
	movl	A, %eax
kusano 2b45e8
	movl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	subl	LDC, C
kusano 2b45e8
#endif
kusano 2b45e8
	movl	C, CO1
kusano 2b45e8
#ifndef RT
kusano 2b45e8
	addl	LDC, C
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movl	M,  %ebx
kusano 2b45e8
	sarl	$3, %ebx	# i = (m >> 2)
kusano 2b45e8
	jle	.L130
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L110:
kusano 2b45e8
#ifdef LN
kusano 2b45e8
       movl	K, %eax
kusano 2b45e8
       sall	$3 + BASE_SHIFT, %eax
kusano 2b45e8
       subl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	sall	$3 + BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AA
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	sall	$BASE_SHIFT, %eax
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movaps	 0 * SIZE(BB), %xmm2
kusano 2b45e8
	xorps	%xmm4, %xmm4
kusano 2b45e8
	movaps	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	xorps	%xmm5, %xmm5
kusano 2b45e8
	movaps	 16 * SIZE(BB), %xmm3
kusano 2b45e8
	xorps	%xmm6, %xmm6
kusano 2b45e8
	movaps	 16 * SIZE(AA), %xmm1
kusano 2b45e8
	xorps	%xmm7, %xmm7
kusano 2b45e8
kusano 2b45e8
	PREFETCHW      7 * SIZE(CO1)
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L112
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L111:
kusano 2b45e8
	mulps	%xmm2, %xmm0
kusano 2b45e8
	mulps	 4 * SIZE(AA), %xmm2
kusano 2b45e8
	addps	%xmm0, %xmm4
kusano 2b45e8
	movaps	 8 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm6
kusano 2b45e8
	movaps	 4 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm2, %xmm0
kusano 2b45e8
	mulps	12 * SIZE(AA), %xmm2
kusano 2b45e8
	addps	%xmm0, %xmm5
kusano 2b45e8
	movaps	32 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm7
kusano 2b45e8
	movaps	 8 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm2, %xmm1
kusano 2b45e8
	mulps	20 * SIZE(AA), %xmm2
kusano 2b45e8
	addps	%xmm1, %xmm4
kusano 2b45e8
	movaps	24 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm2, %xmm6
kusano 2b45e8
	movaps	12 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm2, %xmm1
kusano 2b45e8
	mulps	28 * SIZE(AA), %xmm2
kusano 2b45e8
	addps	%xmm1, %xmm5
kusano 2b45e8
	movaps	48 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm2, %xmm7
kusano 2b45e8
	movaps	32 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm3, %xmm0
kusano 2b45e8
	mulps	36 * SIZE(AA), %xmm3
kusano 2b45e8
	addps	%xmm0, %xmm4
kusano 2b45e8
	movaps	40 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm3, %xmm6
kusano 2b45e8
	movaps	20 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm3, %xmm0
kusano 2b45e8
	mulps	44 * SIZE(AA), %xmm3
kusano 2b45e8
	addps	%xmm0, %xmm5
kusano 2b45e8
	movaps	64 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm3, %xmm7
kusano 2b45e8
	movaps	24 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm3, %xmm1
kusano 2b45e8
	mulps	52 * SIZE(AA), %xmm3
kusano 2b45e8
	addps	%xmm1, %xmm4
kusano 2b45e8
	movaps	56 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm6
kusano 2b45e8
	movaps	28 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm3, %xmm1
kusano 2b45e8
	mulps	60 * SIZE(AA), %xmm3
kusano 2b45e8
	addps	%xmm1, %xmm5
kusano 2b45e8
	movaps	80 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm7
kusano 2b45e8
	movaps	48 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addl   $64 * SIZE, AA
kusano 2b45e8
	addl   $32 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L111
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L112:
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L114
kusano 2b45e8
kusano 2b45e8
.L113:
kusano 2b45e8
	movaps	 0 * SIZE(BB), %xmm2
kusano 2b45e8
	movaps	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	mulps	%xmm2, %xmm0
kusano 2b45e8
	addps	%xmm0, %xmm4
kusano 2b45e8
	mulps	 4 * SIZE(AA), %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm6
kusano 2b45e8
kusano 2b45e8
	addl	$8 * SIZE, AA
kusano 2b45e8
	addl	$4 * SIZE, BB
kusano 2b45e8
	subl	$1, %eax
kusano 2b45e8
	jg	.L113
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L114:
kusano 2b45e8
	addps	%xmm5, %xmm4
kusano 2b45e8
	addps	%xmm7, %xmm6
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$8, %eax
kusano 2b45e8
#else
kusano 2b45e8
	subl	$1, %eax
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
	sall	$BASE_SHIFT, %eax
kusano 2b45e8
	leal	(AA, %eax, 8), AA
kusano 2b45e8
	leal	(B,  %eax, 1), B
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movsd	 0 * SIZE(B), %xmm2
kusano 2b45e8
	movhps	 2 * SIZE(B), %xmm2
kusano 2b45e8
	movsd	 4 * SIZE(B), %xmm5
kusano 2b45e8
	movhps	 6 * SIZE(B), %xmm5
kusano 2b45e8
kusano 2b45e8
	subps	%xmm4,  %xmm2
kusano 2b45e8
	subps	%xmm6,  %xmm5
kusano 2b45e8
kusano 2b45e8
	xorps	%xmm0,  %xmm0
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm2, %xmm3
kusano 2b45e8
	unpcklps %xmm0, %xmm2
kusano 2b45e8
	unpckhps %xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm5, %xmm7
kusano 2b45e8
	unpcklps %xmm0, %xmm5
kusano 2b45e8
	unpckhps %xmm0, %xmm7
kusano 2b45e8
#else
kusano 2b45e8
	movaps	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 4 * SIZE(AA), %xmm1
kusano 2b45e8
kusano 2b45e8
	subps	%xmm4, %xmm0
kusano 2b45e8
	subps	%xmm6, %xmm1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movaps	TRMASK, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	movss	63 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm7, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	62 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movsd	60 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	58 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	56 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	54 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm7, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	52 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	50 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	48 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
	movss	45 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm5
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	44 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	42 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	40 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	36 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	34 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	32 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	27 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	26 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	24 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	18 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	16 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 9 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	 8 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	 1 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x05, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movsd	 2 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	 4 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	 6 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	 9 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	10 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	12 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	14 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	18 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	19 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x05, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	20 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	22 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	27 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	28 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	30 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	36 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	37 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x05, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	38 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	45 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm5
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	46 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	54 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm7, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	55 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x05, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	63 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm7
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(RN) || defined(RT)
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	
kusano 2b45e8
	mulps	%xmm6, %xmm0
kusano 2b45e8
	mulps	%xmm6, %xmm1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	shufps	$0x88, %xmm3, %xmm2
kusano 2b45e8
	shufps	$0x88, %xmm7, %xmm5
kusano 2b45e8
	
kusano 2b45e8
	movlps	%xmm2,   0 * SIZE(B)
kusano 2b45e8
	movhps	%xmm2,   2 * SIZE(B)
kusano 2b45e8
	movlps	%xmm5,   4 * SIZE(B)
kusano 2b45e8
	movhps	%xmm5,   6 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
	pshufd	$0x00, %xmm2, %xmm0
kusano 2b45e8
	pshufd	$0x55, %xmm2, %xmm1
kusano 2b45e8
	pshufd	$0xaa, %xmm2, %xmm4
kusano 2b45e8
	pshufd	$0xff, %xmm2, %xmm6
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm2, %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm0, %xmm0
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0x55, %xmm1, %xmm1
kusano 2b45e8
	movaps	%xmm2, %xmm4
kusano 2b45e8
	shufps	$0xaa, %xmm4, %xmm4
kusano 2b45e8
	movaps	%xmm2, %xmm6
kusano 2b45e8
	shufps	$0xff, %xmm6, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,   0 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,   4 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm4,   8 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm6,  12 * SIZE(BB)
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
	pshufd	$0x00, %xmm5, %xmm0
kusano 2b45e8
	pshufd	$0x55, %xmm5, %xmm1
kusano 2b45e8
	pshufd	$0xaa, %xmm5, %xmm4
kusano 2b45e8
	pshufd	$0xff, %xmm5, %xmm6
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm5, %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm0, %xmm0
kusano 2b45e8
	movaps	%xmm5, %xmm1
kusano 2b45e8
	shufps	$0x55, %xmm1, %xmm1
kusano 2b45e8
	movaps	%xmm5, %xmm4
kusano 2b45e8
	shufps	$0xaa, %xmm4, %xmm4
kusano 2b45e8
	movaps	%xmm5, %xmm6
kusano 2b45e8
	shufps	$0xff, %xmm6, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  16 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,  20 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm4,  24 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm6,  28 * SIZE(BB)
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm0,   0 * SIZE(AA)
kusano 2b45e8
	movaps	%xmm1,   4 * SIZE(AA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$8 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movlps	%xmm2, 0 * SIZE(CO1)
kusano 2b45e8
	movhps	%xmm2, 2 * SIZE(CO1)
kusano 2b45e8
	movlps	%xmm5, 4 * SIZE(CO1)
kusano 2b45e8
	movhps	%xmm5, 6 * SIZE(CO1)
kusano 2b45e8
#else
kusano 2b45e8
	movlps	%xmm0, 0 * SIZE(CO1)
kusano 2b45e8
	movhps	%xmm0, 2 * SIZE(CO1)
kusano 2b45e8
	movlps	%xmm1, 4 * SIZE(CO1)
kusano 2b45e8
	movhps	%xmm1, 6 * SIZE(CO1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef LN
kusano 2b45e8
	addl	$8 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	K,  %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	leal	(,%eax, SIZE), %eax
kusano 2b45e8
	leal	(AA, %eax, 8), AA
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$8 * SIZE, B
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$8, KK
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$8, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	sall	$3 + BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	decl	%ebx			# i --
kusano 2b45e8
	jg	.L110
kusano 2b45e8
	ALIGN_2	
kusano 2b45e8
kusano 2b45e8
.L130:
kusano 2b45e8
	testl	$4, M
kusano 2b45e8
	jle	.L150
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
       movl	K, %eax
kusano 2b45e8
       sall	$2 + BASE_SHIFT, %eax
kusano 2b45e8
       subl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	sall	$2 + BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AA
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	sall	$BASE_SHIFT, %eax
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movaps	 0 * SIZE(BB), %xmm2
kusano 2b45e8
	xorps	%xmm4, %xmm4
kusano 2b45e8
	movsd	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	movhps	 2 * SIZE(AA), %xmm0
kusano 2b45e8
	xorps	%xmm5, %xmm5
kusano 2b45e8
	movaps	16 * SIZE(BB), %xmm3
kusano 2b45e8
	xorps	%xmm6, %xmm6
kusano 2b45e8
	movsd	16 * SIZE(AA), %xmm1
kusano 2b45e8
	movhps	18 * SIZE(AA), %xmm1
kusano 2b45e8
	xorps	%xmm7, %xmm7
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L132
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L131:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movaps	 4 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	mulps	 4 * SIZE(BB), %xmm0
kusano 2b45e8
	movaps	32 * SIZE(BB), %xmm2
kusano 2b45e8
	addps	%xmm0, %xmm5
kusano 2b45e8
	movaps	 8 * SIZE(AA), %xmm0
kusano 2b45e8
	mulps	 8 * SIZE(BB), %xmm0
kusano 2b45e8
	addps	%xmm0, %xmm6
kusano 2b45e8
	movaps	12 * SIZE(AA), %xmm0
kusano 2b45e8
	mulps	12 * SIZE(BB), %xmm0
kusano 2b45e8
	addps	%xmm0, %xmm7
kusano 2b45e8
	movaps	32 * SIZE(AA), %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movaps	20 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	mulps	20 * SIZE(BB), %xmm1
kusano 2b45e8
	movaps	48 * SIZE(BB), %xmm3
kusano 2b45e8
	addps	%xmm1, %xmm5
kusano 2b45e8
	movaps	24 * SIZE(AA), %xmm1
kusano 2b45e8
	mulps	24 * SIZE(BB), %xmm1
kusano 2b45e8
	addps	%xmm1, %xmm6
kusano 2b45e8
	movaps	28 * SIZE(AA), %xmm1
kusano 2b45e8
	mulps	28 * SIZE(BB), %xmm1
kusano 2b45e8
	addps	%xmm1, %xmm7
kusano 2b45e8
	movaps	48 * SIZE(AA), %xmm1
kusano 2b45e8
kusano 2b45e8
	addl   $32 * SIZE, AA
kusano 2b45e8
	addl   $32 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L131
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L132:
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L134
kusano 2b45e8
kusano 2b45e8
.L133:
kusano 2b45e8
	movaps	 0 * SIZE(BB), %xmm2
kusano 2b45e8
	movaps	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
kusano 2b45e8
	addl	$4 * SIZE, AA
kusano 2b45e8
	addl	$4 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L133
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L134:
kusano 2b45e8
	addps	%xmm5, %xmm4
kusano 2b45e8
	addps	%xmm7, %xmm6
kusano 2b45e8
	addps	%xmm6, %xmm4
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$4, %eax
kusano 2b45e8
#else
kusano 2b45e8
	subl	$1, %eax
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
	sall	$BASE_SHIFT, %eax
kusano 2b45e8
	leal	(AA, %eax, 4), AA
kusano 2b45e8
	leal	(B,  %eax, 1), B
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movsd	 0 * SIZE(B), %xmm2
kusano 2b45e8
	movhps	 2 * SIZE(B), %xmm2
kusano 2b45e8
kusano 2b45e8
	subps	%xmm4,  %xmm2
kusano 2b45e8
kusano 2b45e8
	xorps	%xmm5, %xmm5
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm2, %xmm3
kusano 2b45e8
	unpcklps %xmm5, %xmm2
kusano 2b45e8
	unpckhps %xmm5, %xmm3
kusano 2b45e8
#else
kusano 2b45e8
	movaps	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	subps	%xmm4, %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movaps	TRMASK, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	movss	15 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	14 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	12 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	10 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	 8 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 5 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	 4 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	 1 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x05, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movsd	 2 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movss	 5 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	 6 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movss	10 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	11 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x05, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movss	15 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RN
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	mulps	%xmm6, %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	mulps	%xmm6, %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	shufps	$0x88, %xmm3, %xmm2
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm2,   0 * SIZE(B)
kusano 2b45e8
	movhps	%xmm2,   2 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
	pshufd	$0x00, %xmm2, %xmm0
kusano 2b45e8
	pshufd	$0x55, %xmm2, %xmm1
kusano 2b45e8
	pshufd	$0xaa, %xmm2, %xmm4
kusano 2b45e8
	pshufd	$0xff, %xmm2, %xmm6
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm2, %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm0, %xmm0
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0x55, %xmm1, %xmm1
kusano 2b45e8
	movaps	%xmm2, %xmm4
kusano 2b45e8
	shufps	$0xaa, %xmm4, %xmm4
kusano 2b45e8
	movaps	%xmm2, %xmm6
kusano 2b45e8
	shufps	$0xff, %xmm6, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,   0 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,   4 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm4,   8 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm6,  12 * SIZE(BB)
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm0,   0 * SIZE(AA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$4 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movlps	%xmm2, 0 * SIZE(CO1)
kusano 2b45e8
	movhps	%xmm2, 2 * SIZE(CO1)
kusano 2b45e8
#else
kusano 2b45e8
	movlps	%xmm0, 0 * SIZE(CO1)
kusano 2b45e8
	movhps	%xmm0, 2 * SIZE(CO1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef LN
kusano 2b45e8
	addl	$4 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	K,  %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	leal	(,%eax, SIZE), %eax
kusano 2b45e8
	leal	(AA, %eax, 4), AA
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$4 * SIZE, B
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$4, KK
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$4, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	sall	$2 + BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
	ALIGN_2	
kusano 2b45e8
kusano 2b45e8
.L150:
kusano 2b45e8
	testl	$2, M
kusano 2b45e8
	jle	.L170
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
       movl	K, %eax
kusano 2b45e8
       sall	$1 + BASE_SHIFT, %eax
kusano 2b45e8
       subl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	sall	$1 + BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AA
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	sall	$BASE_SHIFT, %eax
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movaps	 0 * SIZE(BB), %xmm2
kusano 2b45e8
	xorps	%xmm4, %xmm4
kusano 2b45e8
#ifdef	movsd
kusano 2b45e8
	xorps	%xmm0, %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
	movsd	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	xorps	%xmm5, %xmm5
kusano 2b45e8
	movaps	 16 * SIZE(BB), %xmm3
kusano 2b45e8
	xorps	%xmm6, %xmm6
kusano 2b45e8
#ifdef	movsd
kusano 2b45e8
	xorps	%xmm1, %xmm1
kusano 2b45e8
#endif
kusano 2b45e8
	movsd	 8 * SIZE(AA), %xmm1
kusano 2b45e8
	xorps	%xmm7, %xmm7
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L152
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L151:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movsd	 2 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movaps	 4 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movsd	 4 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movaps	 8 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movsd	 6 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm6
kusano 2b45e8
	movaps	12 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movsd	16 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm7
kusano 2b45e8
	movaps	32 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movsd	10 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movaps	20 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movsd	12 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movaps	24 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movsd	14 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm6
kusano 2b45e8
	movaps	28 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movsd	24 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm7
kusano 2b45e8
	movaps	48 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addl   $16 * SIZE, AA
kusano 2b45e8
	addl   $32 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L151
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L152:
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L154
kusano 2b45e8
kusano 2b45e8
.L153:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movsd	 2 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movaps	 4 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, AA
kusano 2b45e8
	addl	$4 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L153
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L154:
kusano 2b45e8
	addps	%xmm5, %xmm4
kusano 2b45e8
	addps	%xmm7, %xmm6
kusano 2b45e8
	addps	%xmm6, %xmm4
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$2, %eax
kusano 2b45e8
#else
kusano 2b45e8
	subl	$1, %eax
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
	sall	$BASE_SHIFT, %eax
kusano 2b45e8
	leal	(AA, %eax, 2), AA
kusano 2b45e8
	leal	(B,  %eax, 1), B
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movaps	%xmm4, %xmm5
kusano 2b45e8
	shufps	$1, %xmm5, %xmm5
kusano 2b45e8
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm0
kusano 2b45e8
	movss	 1 * SIZE(B), %xmm1
kusano 2b45e8
kusano 2b45e8
	subss	%xmm4,  %xmm0
kusano 2b45e8
	subss	%xmm5,  %xmm1
kusano 2b45e8
#else
kusano 2b45e8
#ifdef	movsd
kusano 2b45e8
	xorps	%xmm0, %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
	movsd	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	subps	%xmm4, %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	movaps	  0 * SIZE(AA), %xmm4
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm4, %xmm6
kusano 2b45e8
	shufps	 $0xff, %xmm6, %xmm6
kusano 2b45e8
	mulss	 %xmm6, %xmm1
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm4, %xmm6
kusano 2b45e8
	shufps	 $0xaa, %xmm6, %xmm6
kusano 2b45e8
	mulss	 %xmm1, %xmm6
kusano 2b45e8
	subss	 %xmm6, %xmm0
kusano 2b45e8
	mulss	 %xmm4, %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	movaps	 0 * SIZE(AA), %xmm4
kusano 2b45e8
	mulss	 %xmm4, %xmm0
kusano 2b45e8
	movaps	 %xmm4, %xmm6
kusano 2b45e8
	shufps	 $0x55, %xmm6, %xmm6
kusano 2b45e8
	mulss	 %xmm0, %xmm6
kusano 2b45e8
	subss	 %xmm6, %xmm1
kusano 2b45e8
	movaps	 %xmm4, %xmm6
kusano 2b45e8
	shufps	 $0xff, %xmm6, %xmm6
kusano 2b45e8
	mulss	 %xmm6, %xmm1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RN
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	mulps	%xmm6, %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	mulps	%xmm6, %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movss	%xmm0,   0 * SIZE(B)
kusano 2b45e8
	movss	%xmm1,   1 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	shufps	$0x00, %xmm0, %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm1, %xmm1
kusano 2b45e8
	movaps	%xmm0,   0 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,   4 * SIZE(BB)
kusano 2b45e8
#else
kusano 2b45e8
	movlps	%xmm0,   0 * SIZE(AA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$2 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movss	%xmm0, 0 * SIZE(CO1)
kusano 2b45e8
	movss	%xmm1, 1 * SIZE(CO1)
kusano 2b45e8
#else
kusano 2b45e8
	movlps	%xmm0, 0 * SIZE(CO1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef LN
kusano 2b45e8
	addl	$2 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	K,  %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	leal	(,%eax, SIZE), %eax
kusano 2b45e8
	leal	(AA, %eax, 2), AA
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$2 * SIZE, B
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$2, KK
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$2, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	sall	$1 + BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
	ALIGN_2	
kusano 2b45e8
kusano 2b45e8
.L170:
kusano 2b45e8
	testl	$1, M
kusano 2b45e8
	jle	.L179
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
       movl	K, %eax
kusano 2b45e8
       sall	$BASE_SHIFT, %eax
kusano 2b45e8
       subl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	leal	(AA, %eax, SIZE), AA
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	sall	$BASE_SHIFT, %eax
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movss	 0 * SIZE(BB), %xmm2
kusano 2b45e8
	xorps	%xmm4, %xmm4
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	xorps	%xmm5, %xmm5
kusano 2b45e8
	movss	16 * SIZE(BB), %xmm3
kusano 2b45e8
	xorps	%xmm6, %xmm6
kusano 2b45e8
	movss	 4 * SIZE(AA), %xmm1
kusano 2b45e8
	xorps	%xmm7, %xmm7
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L172
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L171:
kusano 2b45e8
	mulss	%xmm0, %xmm2
kusano 2b45e8
	movss	 1 * SIZE(AA), %xmm0
kusano 2b45e8
	addss	%xmm2, %xmm4
kusano 2b45e8
	mulss	 4 * SIZE(BB), %xmm0
kusano 2b45e8
	movss	32 * SIZE(BB), %xmm2
kusano 2b45e8
	addss	%xmm0, %xmm5
kusano 2b45e8
	movss	 2 * SIZE(AA), %xmm0
kusano 2b45e8
	mulss	 8 * SIZE(BB), %xmm0
kusano 2b45e8
	addss	%xmm0, %xmm6
kusano 2b45e8
	movss	 3 * SIZE(AA), %xmm0
kusano 2b45e8
	mulss	12 * SIZE(BB), %xmm0
kusano 2b45e8
	addss	%xmm0, %xmm7
kusano 2b45e8
	movss	 8 * SIZE(AA), %xmm0
kusano 2b45e8
	mulss	%xmm1, %xmm3
kusano 2b45e8
	movss	 5 * SIZE(AA), %xmm1
kusano 2b45e8
	addss	%xmm3, %xmm4
kusano 2b45e8
	mulss	20 * SIZE(BB), %xmm1
kusano 2b45e8
	movss	48 * SIZE(BB), %xmm3
kusano 2b45e8
	addss	%xmm1, %xmm5
kusano 2b45e8
	movss	 6 * SIZE(AA), %xmm1
kusano 2b45e8
	mulss	24 * SIZE(BB), %xmm1
kusano 2b45e8
	addss	%xmm1, %xmm6
kusano 2b45e8
	movss	 7 * SIZE(AA), %xmm1
kusano 2b45e8
	mulss	28 * SIZE(BB), %xmm1
kusano 2b45e8
	addss	%xmm1, %xmm7
kusano 2b45e8
	movss	12 * SIZE(AA), %xmm1
kusano 2b45e8
kusano 2b45e8
	addl   $ 8 * SIZE, AA
kusano 2b45e8
	addl   $32 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L171
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L172:
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L174
kusano 2b45e8
kusano 2b45e8
.L173:
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	movss	 0 * SIZE(BB), %xmm2
kusano 2b45e8
	mulss	%xmm0, %xmm2
kusano 2b45e8
	addss	%xmm2, %xmm4
kusano 2b45e8
kusano 2b45e8
	addl	$1 * SIZE, AA
kusano 2b45e8
	addl	$4 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L173
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L174:
kusano 2b45e8
	addss	%xmm5, %xmm4
kusano 2b45e8
	addss	%xmm7, %xmm6
kusano 2b45e8
	addss	%xmm6, %xmm4
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	subl	$1, %eax
kusano 2b45e8
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
	sall	$ BASE_SHIFT, %eax
kusano 2b45e8
	leal	(AA, %eax, 1), AA
kusano 2b45e8
	leal	(B,  %eax, 1), B
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm1
kusano 2b45e8
	subss	%xmm4,  %xmm1
kusano 2b45e8
#else
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	subss	%xmm4, %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	mulss	 0 * SIZE(AA), %xmm1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(RN) || defined(RT)
kusano 2b45e8
	mulss	 0 * SIZE(B), %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movss	%xmm1,   0 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	shufps	$0x00, %xmm1, %xmm1
kusano 2b45e8
	movaps	%xmm1,   0 * SIZE(BB)
kusano 2b45e8
#else
kusano 2b45e8
	movss	%xmm0,   0 * SIZE(AA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$1 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movss	%xmm1, 0 * SIZE(CO1)
kusano 2b45e8
#else
kusano 2b45e8
	movss	%xmm0, 0 * SIZE(CO1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef LN
kusano 2b45e8
	addl	$1 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	K,  %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	leal	(AA, %eax, SIZE), AA
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$1 * SIZE, B
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$1, KK
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$1, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	sall	$BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
.L179:
kusano 2b45e8
#ifdef LN
kusano 2b45e8
       movl	K, %eax
kusano 2b45e8
       leal 	(B, %eax, SIZE), B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	K,  %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	leal	(B,  %eax, SIZE), B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RN
kusano 2b45e8
	addl	$1, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	subl	$1, KK
kusano 2b45e8
#endif
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L100:
kusano 2b45e8
	movl	N,  %eax
kusano 2b45e8
	sarl	$1, %eax	# j = (n >> 1)
kusano 2b45e8
	movl	%eax, J
kusano 2b45e8
	jle	.L999
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
	
kusano 2b45e8
.L01:
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	movl	OFFSET, %eax
kusano 2b45e8
	addl	M, %eax
kusano 2b45e8
	movl	%eax, KK
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
       movl	K, %eax
kusano 2b45e8
       sall	$1 + BASE_SHIFT, %eax
kusano 2b45e8
       subl	%eax, B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	movl	B, BORIG
kusano 2b45e8
        sall	$1 + BASE_SHIFT, %eax
kusano 2b45e8
	leal	(B,  %eax, 1), B
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	movl	OFFSET, %eax
kusano 2b45e8
	movl	%eax, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K,  %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$2, %eax
kusano 2b45e8
	jle	.L03
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
	
kusano 2b45e8
.L02:
kusano 2b45e8
	movsd	 0 * SIZE(B), %xmm3
kusano 2b45e8
	movhps	 2 * SIZE(B), %xmm3
kusano 2b45e8
	movsd	 4 * SIZE(B), %xmm7
kusano 2b45e8
	movhps	 6 * SIZE(B), %xmm7
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
	pshufd	 $0x00, %xmm3, %xmm0
kusano 2b45e8
	pshufd	 $0x55, %xmm3, %xmm1
kusano 2b45e8
	pshufd	 $0xaa, %xmm3, %xmm2
kusano 2b45e8
	pshufd	 $0xff, %xmm3, %xmm3
kusano 2b45e8
kusano 2b45e8
	pshufd	 $0x00, %xmm7, %xmm4
kusano 2b45e8
	pshufd	 $0x55, %xmm7, %xmm5
kusano 2b45e8
	pshufd	 $0xaa, %xmm7, %xmm6
kusano 2b45e8
	pshufd	 $0xff, %xmm7, %xmm7
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm3, %xmm0
kusano 2b45e8
	shufps	 $0x00, %xmm0, %xmm0
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	 $0x55, %xmm1, %xmm1
kusano 2b45e8
	movaps	%xmm3, %xmm2
kusano 2b45e8
	shufps	 $0xaa, %xmm2, %xmm2
kusano 2b45e8
	shufps	 $0xff, %xmm3, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm7, %xmm4
kusano 2b45e8
	shufps	 $0x00, %xmm4, %xmm4
kusano 2b45e8
	movaps	%xmm7, %xmm5
kusano 2b45e8
	shufps	 $0x55, %xmm5, %xmm5
kusano 2b45e8
	movaps	%xmm7, %xmm6
kusano 2b45e8
	shufps	 $0xaa, %xmm6, %xmm6
kusano 2b45e8
	shufps	 $0xff, %xmm7, %xmm7
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  0 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,  4 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm2,  8 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm3, 12 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm4, 16 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm5, 20 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm6, 24 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm7, 28 * SIZE(BB)
kusano 2b45e8
kusano 2b45e8
	addl	$ 8 * SIZE, B
kusano 2b45e8
	addl	$32 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	BRANCH
kusano 2b45e8
	jne	.L02
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L03:
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	andl	$3, %eax
kusano 2b45e8
	BRANCH
kusano 2b45e8
	jle	.L05
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L04:
kusano 2b45e8
	movsd	 0 * SIZE(B), %xmm3
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
	pshufd	 $0x00, %xmm3, %xmm0
kusano 2b45e8
	pshufd	 $0x55, %xmm3, %xmm1
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm3, %xmm0
kusano 2b45e8
	shufps	 $0x00, %xmm0, %xmm0
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	 $0x55, %xmm1, %xmm1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  0 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,  4 * SIZE(BB)
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, B
kusano 2b45e8
	addl	$8 * SIZE, BB
kusano 2b45e8
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jne	.L04
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L05:
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	A, AA
kusano 2b45e8
#else
kusano 2b45e8
	movl	A, %eax
kusano 2b45e8
	movl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	leal	(, LDC, 2), %eax
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	subl	%eax, C
kusano 2b45e8
#endif
kusano 2b45e8
	movl	C, CO1
kusano 2b45e8
#ifndef RT
kusano 2b45e8
	addl	%eax, C
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movl	M,  %ebx
kusano 2b45e8
	sarl	$3, %ebx
kusano 2b45e8
	jle	.L30
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L10:
kusano 2b45e8
#ifdef LN
kusano 2b45e8
       movl	K, %eax
kusano 2b45e8
       sall	$3 + BASE_SHIFT, %eax
kusano 2b45e8
       subl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	sall	$3 + BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AA
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	sall	$1 + BASE_SHIFT, %eax
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movaps	 0 * SIZE(BB), %xmm2
kusano 2b45e8
	xorps	%xmm4, %xmm4
kusano 2b45e8
	movaps	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	xorps	%xmm5, %xmm5
kusano 2b45e8
	movaps	 8 * SIZE(BB), %xmm3
kusano 2b45e8
	xorps	%xmm6, %xmm6
kusano 2b45e8
	movaps	 8 * SIZE(AA), %xmm1
kusano 2b45e8
	xorps	%xmm7, %xmm7
kusano 2b45e8
kusano 2b45e8
	PREFETCHW      7 * SIZE(CO1)
kusano 2b45e8
	PREFETCHW      7 * SIZE(CO1, LDC)
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L12
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L11:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	mulps	 4 * SIZE(BB), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movaps	 0 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addps	%xmm0, %xmm5
kusano 2b45e8
	movaps	 4 * SIZE(AA), %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	mulps	 4 * SIZE(BB), %xmm0
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm6
kusano 2b45e8
	movaps	16 * SIZE(BB), %xmm2
kusano 2b45e8
	addps	%xmm0, %xmm7
kusano 2b45e8
	movaps	16 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	mulps	12 * SIZE(BB), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movaps	 8 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addps	%xmm1, %xmm5
kusano 2b45e8
	movaps	12 * SIZE(AA), %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	mulps	12 * SIZE(BB), %xmm1
kusano 2b45e8
kusano 2b45e8
	addps	%xmm3, %xmm6
kusano 2b45e8
	movaps	24 * SIZE(BB), %xmm3
kusano 2b45e8
	addps	%xmm1, %xmm7
kusano 2b45e8
	movaps	24 * SIZE(AA), %xmm1
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	mulps	20 * SIZE(BB), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movaps	16 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addps	%xmm0, %xmm5
kusano 2b45e8
	movaps	20 * SIZE(AA), %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	mulps	20 * SIZE(BB), %xmm0
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm6
kusano 2b45e8
	movaps	32 * SIZE(BB), %xmm2
kusano 2b45e8
	addps	%xmm0, %xmm7
kusano 2b45e8
	movaps	32 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	mulps	28 * SIZE(BB), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movaps	24 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addps	%xmm1, %xmm5
kusano 2b45e8
	movaps	28 * SIZE(AA), %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	mulps	28 * SIZE(BB), %xmm1
kusano 2b45e8
kusano 2b45e8
	addps	%xmm3, %xmm6
kusano 2b45e8
	movaps	40 * SIZE(BB), %xmm3
kusano 2b45e8
	addps	%xmm1, %xmm7
kusano 2b45e8
	movaps	40 * SIZE(AA), %xmm1
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	mulps	36 * SIZE(BB), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movaps	32 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addps	%xmm0, %xmm5
kusano 2b45e8
	movaps	36 * SIZE(AA), %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	mulps	36 * SIZE(BB), %xmm0
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm6
kusano 2b45e8
	movaps	48 * SIZE(BB), %xmm2
kusano 2b45e8
	addps	%xmm0, %xmm7
kusano 2b45e8
	movaps	48 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	mulps	44 * SIZE(BB), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movaps	40 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addps	%xmm1, %xmm5
kusano 2b45e8
	movaps	44 * SIZE(AA), %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	mulps	44 * SIZE(BB), %xmm1
kusano 2b45e8
kusano 2b45e8
	addps	%xmm3, %xmm6
kusano 2b45e8
	movaps	56 * SIZE(BB), %xmm3
kusano 2b45e8
	addps	%xmm1, %xmm7
kusano 2b45e8
	movaps	56 * SIZE(AA), %xmm1
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	mulps	52 * SIZE(BB), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movaps	48 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addps	%xmm0, %xmm5
kusano 2b45e8
	movaps	52 * SIZE(AA), %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	mulps	52 * SIZE(BB), %xmm0
kusano 2b45e8
kusano 2b45e8
	addps	%xmm2, %xmm6
kusano 2b45e8
	movaps	64 * SIZE(BB), %xmm2
kusano 2b45e8
	addps	%xmm0, %xmm7
kusano 2b45e8
	movaps	64 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	mulps	60 * SIZE(BB), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movaps	56 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addps	%xmm1, %xmm5
kusano 2b45e8
	movaps	60 * SIZE(AA), %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	mulps	60 * SIZE(BB), %xmm1
kusano 2b45e8
kusano 2b45e8
	addps	%xmm3, %xmm6
kusano 2b45e8
	movaps	72 * SIZE(BB), %xmm3
kusano 2b45e8
	addps	%xmm1, %xmm7
kusano 2b45e8
	movaps	72 * SIZE(AA), %xmm1
kusano 2b45e8
kusano 2b45e8
	addl   $64 * SIZE, BB
kusano 2b45e8
	addl   $64 * SIZE, AA
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L11
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L12:
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L14
kusano 2b45e8
kusano 2b45e8
.L13:
kusano 2b45e8
	movaps	 4 * SIZE(BB), %xmm1
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movaps	 0 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm1
kusano 2b45e8
	movaps	 4 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm1, %xmm5
kusano 2b45e8
	movaps	 4 * SIZE(BB), %xmm1
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm6
kusano 2b45e8
	movaps	 8 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm1
kusano 2b45e8
	movaps	 8 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm1, %xmm7
kusano 2b45e8
kusano 2b45e8
	addl	$8 * SIZE, AA
kusano 2b45e8
	addl	$8 * SIZE, BB
kusano 2b45e8
	subl	$1, %eax
kusano 2b45e8
	jg	.L13
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L14:
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$8, %eax
kusano 2b45e8
#else
kusano 2b45e8
	subl	$2, %eax
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
	sall	$BASE_SHIFT, %eax
kusano 2b45e8
	leal	(AA, %eax, 8), AA
kusano 2b45e8
	leal	(B,  %eax, 2), B
kusano 2b45e8
	leal	(BB, %eax, 8), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movaps	 %xmm4, %xmm0
kusano 2b45e8
	unpcklps %xmm5, %xmm4
kusano 2b45e8
	unpckhps %xmm5, %xmm0
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	unpcklps %xmm7, %xmm6
kusano 2b45e8
	unpckhps %xmm7, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(B), %xmm2
kusano 2b45e8
	movhps	 2 * SIZE(B), %xmm2
kusano 2b45e8
	movsd	 4 * SIZE(B), %xmm3
kusano 2b45e8
	movhps	 6 * SIZE(B), %xmm3
kusano 2b45e8
	movsd	 8 * SIZE(B), %xmm5
kusano 2b45e8
	movhps	10 * SIZE(B), %xmm5
kusano 2b45e8
	movsd	12 * SIZE(B), %xmm7
kusano 2b45e8
	movhps	14 * SIZE(B), %xmm7
kusano 2b45e8
kusano 2b45e8
	subps	%xmm4,  %xmm2
kusano 2b45e8
	subps	%xmm0,  %xmm3
kusano 2b45e8
	subps	%xmm6,  %xmm5
kusano 2b45e8
	subps	%xmm1,  %xmm7
kusano 2b45e8
#else
kusano 2b45e8
	movaps	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 4 * SIZE(AA), %xmm1
kusano 2b45e8
	movaps	 8 * SIZE(AA), %xmm2
kusano 2b45e8
	movaps	12 * SIZE(AA), %xmm3
kusano 2b45e8
kusano 2b45e8
	subps	%xmm4, %xmm0
kusano 2b45e8
	subps	%xmm6, %xmm1
kusano 2b45e8
	subps	%xmm5, %xmm2
kusano 2b45e8
	subps	%xmm7, %xmm3
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movaps	TRMASK, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	movss	63 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm7, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	62 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movsd	60 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	58 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	56 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	54 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm7, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	52 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	50 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	48 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
	movss	45 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm5
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	44 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	42 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	40 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	36 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	34 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	32 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	27 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	26 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	24 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	18 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	16 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 9 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	 8 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	 1 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x05, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movsd	 2 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	 4 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	 6 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	 9 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	10 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	12 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	14 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	18 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	19 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x05, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	20 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	22 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	27 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	28 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	30 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	36 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	37 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x05, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm5
kusano 2b45e8
kusano 2b45e8
	movsd	38 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	45 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm5
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm5, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	46 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	54 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm7, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	55 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x05, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm7
kusano 2b45e8
kusano 2b45e8
	movss	63 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm7
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RN
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	
kusano 2b45e8
	mulps	%xmm6, %xmm0
kusano 2b45e8
	mulps	%xmm6, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	 1 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	movaps	%xmm6, %xmm5
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm0, %xmm5
kusano 2b45e8
	mulps	%xmm1, %xmm6
kusano 2b45e8
kusano 2b45e8
	subps	%xmm5, %xmm2
kusano 2b45e8
	subps	%xmm6, %xmm3
kusano 2b45e8
kusano 2b45e8
	movss	 3 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	
kusano 2b45e8
	mulps	%xmm6, %xmm2
kusano 2b45e8
	mulps	%xmm6, %xmm3
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	movss	 3 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	
kusano 2b45e8
	mulps	%xmm6, %xmm2
kusano 2b45e8
	mulps	%xmm6, %xmm3
kusano 2b45e8
kusano 2b45e8
	movss	 2 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	movaps	%xmm6, %xmm5
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm2, %xmm5
kusano 2b45e8
	mulps	%xmm3, %xmm6
kusano 2b45e8
kusano 2b45e8
	subps	%xmm5, %xmm0
kusano 2b45e8
	subps	%xmm6, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	
kusano 2b45e8
	mulps	%xmm6, %xmm0
kusano 2b45e8
	mulps	%xmm6, %xmm1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movlps	%xmm2,   0 * SIZE(B)
kusano 2b45e8
	movhps	%xmm2,   2 * SIZE(B)
kusano 2b45e8
	movlps	%xmm3,   4 * SIZE(B)
kusano 2b45e8
	movhps	%xmm3,   6 * SIZE(B)
kusano 2b45e8
	movlps	%xmm5,   8 * SIZE(B)
kusano 2b45e8
	movhps	%xmm5,  10 * SIZE(B)
kusano 2b45e8
	movlps	%xmm7,  12 * SIZE(B)
kusano 2b45e8
	movhps	%xmm7,  14 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
	pshufd	$0x00, %xmm2, %xmm0
kusano 2b45e8
	pshufd	$0x55, %xmm2, %xmm1
kusano 2b45e8
	pshufd	$0xaa, %xmm2, %xmm4
kusano 2b45e8
	pshufd	$0xff, %xmm2, %xmm6
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm2, %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm0, %xmm0
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0x55, %xmm1, %xmm1
kusano 2b45e8
	movaps	%xmm2, %xmm4
kusano 2b45e8
	shufps	$0xaa, %xmm4, %xmm4
kusano 2b45e8
	movaps	%xmm2, %xmm6
kusano 2b45e8
	shufps	$0xff, %xmm6, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
	movaps	%xmm0,   0 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,   4 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm4,   8 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm6,  12 * SIZE(BB)
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
	pshufd	$0x00, %xmm3, %xmm0
kusano 2b45e8
	pshufd	$0x55, %xmm3, %xmm1
kusano 2b45e8
	pshufd	$0xaa, %xmm3, %xmm4
kusano 2b45e8
	pshufd	$0xff, %xmm3, %xmm6
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm3, %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm0, %xmm0
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0x55, %xmm1, %xmm1
kusano 2b45e8
	movaps	%xmm3, %xmm4
kusano 2b45e8
	shufps	$0xaa, %xmm4, %xmm4
kusano 2b45e8
	movaps	%xmm3, %xmm6
kusano 2b45e8
	shufps	$0xff, %xmm6, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
	movaps	%xmm0,  16 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,  20 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm4,  24 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm6,  28 * SIZE(BB)
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
	pshufd	$0x00, %xmm5, %xmm0
kusano 2b45e8
	pshufd	$0x55, %xmm5, %xmm1
kusano 2b45e8
	pshufd	$0xaa, %xmm5, %xmm4
kusano 2b45e8
	pshufd	$0xff, %xmm5, %xmm6
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm5, %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm0, %xmm0
kusano 2b45e8
	movaps	%xmm5, %xmm1
kusano 2b45e8
	shufps	$0x55, %xmm1, %xmm1
kusano 2b45e8
	movaps	%xmm5, %xmm4
kusano 2b45e8
	shufps	$0xaa, %xmm4, %xmm4
kusano 2b45e8
	movaps	%xmm5, %xmm6
kusano 2b45e8
	shufps	$0xff, %xmm6, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
	movaps	%xmm0,  32 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,  36 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm4,  40 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm6,  44 * SIZE(BB)
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
	pshufd	$0x00, %xmm7, %xmm0
kusano 2b45e8
	pshufd	$0x55, %xmm7, %xmm1
kusano 2b45e8
	pshufd	$0xaa, %xmm7, %xmm4
kusano 2b45e8
	pshufd	$0xff, %xmm7, %xmm6
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm7, %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm0, %xmm0
kusano 2b45e8
	movaps	%xmm7, %xmm1
kusano 2b45e8
	shufps	$0x55, %xmm1, %xmm1
kusano 2b45e8
	movaps	%xmm7, %xmm4
kusano 2b45e8
	shufps	$0xaa, %xmm4, %xmm4
kusano 2b45e8
	movaps	%xmm7, %xmm6
kusano 2b45e8
	shufps	$0xff, %xmm6, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
	movaps	%xmm0,  48 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,  52 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm4,  56 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm6,  60 * SIZE(BB)
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm0,   0 * SIZE(AA)
kusano 2b45e8
	movaps	%xmm1,   4 * SIZE(AA)
kusano 2b45e8
	movaps	%xmm2,   8 * SIZE(AA)
kusano 2b45e8
	movaps	%xmm3,  12 * SIZE(AA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$8 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movaps	 %xmm2, %xmm0
kusano 2b45e8
	shufps	 $0x88, %xmm3, %xmm2
kusano 2b45e8
	shufps	 $0xdd, %xmm3, %xmm0
kusano 2b45e8
kusano 2b45e8
	movaps	 %xmm5, %xmm4
kusano 2b45e8
	shufps	 $0x88, %xmm7, %xmm5
kusano 2b45e8
	shufps	 $0xdd, %xmm7, %xmm4
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm2, 0 * SIZE(CO1)
kusano 2b45e8
	movhps	%xmm2, 2 * SIZE(CO1)
kusano 2b45e8
	movlps	%xmm5, 4 * SIZE(CO1)
kusano 2b45e8
	movhps	%xmm5, 6 * SIZE(CO1)
kusano 2b45e8
	movlps	%xmm0, 0 * SIZE(CO1, LDC)
kusano 2b45e8
	movhps	%xmm0, 2 * SIZE(CO1, LDC)
kusano 2b45e8
	movlps	%xmm4, 4 * SIZE(CO1, LDC)
kusano 2b45e8
	movhps	%xmm4, 6 * SIZE(CO1, LDC)
kusano 2b45e8
#else
kusano 2b45e8
	movlps	%xmm0, 0 * SIZE(CO1)
kusano 2b45e8
	movhps	%xmm0, 2 * SIZE(CO1)
kusano 2b45e8
	movlps	%xmm1, 4 * SIZE(CO1)
kusano 2b45e8
	movhps	%xmm1, 6 * SIZE(CO1)
kusano 2b45e8
	movlps	%xmm2, 0 * SIZE(CO1, LDC)
kusano 2b45e8
	movhps	%xmm2, 2 * SIZE(CO1, LDC)
kusano 2b45e8
	movlps	%xmm3, 4 * SIZE(CO1, LDC)
kusano 2b45e8
	movhps	%xmm3, 6 * SIZE(CO1, LDC)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef LN
kusano 2b45e8
	addl	$8 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	K,  %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	leal	(,%eax, SIZE), %eax
kusano 2b45e8
	leal	(AA, %eax, 8), AA
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$16 * SIZE, B
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$8, KK
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$8, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	sall	$3 + BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	decl	%ebx			# i --
kusano 2b45e8
	jg	.L10
kusano 2b45e8
	ALIGN_2	
kusano 2b45e8
kusano 2b45e8
.L30:
kusano 2b45e8
	testl	$4, M
kusano 2b45e8
	jle	.L50
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
       movl	K, %eax
kusano 2b45e8
       sall	$2 + BASE_SHIFT, %eax
kusano 2b45e8
       subl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	sall	$2 + BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AA
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	sall	$1 + BASE_SHIFT, %eax
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movaps	 0 * SIZE(BB), %xmm2
kusano 2b45e8
	xorps	%xmm4, %xmm4
kusano 2b45e8
	movaps	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	xorps	%xmm5, %xmm5
kusano 2b45e8
	movaps	 16 * SIZE(BB), %xmm3
kusano 2b45e8
	xorps	%xmm6, %xmm6
kusano 2b45e8
	movaps	 16 * SIZE(AA), %xmm1
kusano 2b45e8
	xorps	%xmm7, %xmm7
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L32
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L31:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	mulps	 4 * SIZE(BB), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movaps	 8 * SIZE(BB), %xmm2
kusano 2b45e8
	addps	%xmm0, %xmm5
kusano 2b45e8
	movaps	 4 * SIZE(AA), %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	mulps	12 * SIZE(BB), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm6
kusano 2b45e8
	movaps	32 * SIZE(BB), %xmm2
kusano 2b45e8
	addps	%xmm0, %xmm7
kusano 2b45e8
	movaps	 8 * SIZE(AA), %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
	mulps	20 * SIZE(BB), %xmm0
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movaps	24 * SIZE(BB), %xmm3
kusano 2b45e8
	addps	%xmm0, %xmm5
kusano 2b45e8
	movaps	12 * SIZE(AA), %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
	mulps	28 * SIZE(BB), %xmm0
kusano 2b45e8
	addps	%xmm3, %xmm6
kusano 2b45e8
	movaps	48 * SIZE(BB), %xmm3
kusano 2b45e8
	addps	%xmm0, %xmm7
kusano 2b45e8
	movaps	32 * SIZE(AA), %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
	mulps	36 * SIZE(BB), %xmm1
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movaps	40 * SIZE(BB), %xmm2
kusano 2b45e8
	addps	%xmm1, %xmm5
kusano 2b45e8
	movaps	20 * SIZE(AA), %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
	mulps	44 * SIZE(BB), %xmm1
kusano 2b45e8
	addps	%xmm2, %xmm6
kusano 2b45e8
	movaps	64 * SIZE(BB), %xmm2
kusano 2b45e8
	addps	%xmm1, %xmm7
kusano 2b45e8
	movaps	24 * SIZE(AA), %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	mulps	52 * SIZE(BB), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movaps	56 * SIZE(BB), %xmm3
kusano 2b45e8
	addps	%xmm1, %xmm5
kusano 2b45e8
	movaps	28 * SIZE(AA), %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	mulps	60 * SIZE(BB), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm6
kusano 2b45e8
	movaps	80 * SIZE(BB), %xmm3
kusano 2b45e8
	addps	%xmm1, %xmm7
kusano 2b45e8
	movaps	48 * SIZE(AA), %xmm1
kusano 2b45e8
kusano 2b45e8
	addl   $32 * SIZE, AA
kusano 2b45e8
	addl   $64 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L31
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L32:
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L34
kusano 2b45e8
kusano 2b45e8
.L33:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	mulps	 4 * SIZE(BB), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movaps	 8 * SIZE(BB), %xmm2
kusano 2b45e8
	addps	%xmm0, %xmm5
kusano 2b45e8
	movaps	 4 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addl	$4 * SIZE, AA
kusano 2b45e8
	addl	$8 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L33
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L34:
kusano 2b45e8
	addps	%xmm6, %xmm4
kusano 2b45e8
	addps	%xmm7, %xmm5
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$4, %eax
kusano 2b45e8
#else
kusano 2b45e8
	subl	$2, %eax
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
	sall	$BASE_SHIFT, %eax
kusano 2b45e8
	leal	(AA, %eax, 4), AA
kusano 2b45e8
	leal	(B,  %eax, 2), B
kusano 2b45e8
	leal	(BB, %eax, 8), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movaps	 %xmm4, %xmm0
kusano 2b45e8
	unpcklps %xmm5, %xmm4
kusano 2b45e8
	unpckhps %xmm5, %xmm0
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(B), %xmm2
kusano 2b45e8
	movhps	 2 * SIZE(B), %xmm2
kusano 2b45e8
	movsd	 4 * SIZE(B), %xmm3
kusano 2b45e8
	movhps	 6 * SIZE(B), %xmm3
kusano 2b45e8
kusano 2b45e8
	subps	%xmm4,  %xmm2
kusano 2b45e8
	subps	%xmm0,  %xmm3
kusano 2b45e8
#else
kusano 2b45e8
	movaps	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 4 * SIZE(AA), %xmm2
kusano 2b45e8
kusano 2b45e8
	subps	%xmm4, %xmm0
kusano 2b45e8
	subps	%xmm5, %xmm2
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movaps	TRMASK, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	movss	15 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	14 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movsd	12 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	10 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	 8 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 5 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	 4 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	 1 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x05, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movsd	 2 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movss	 5 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movsd	 6 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movss	10 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	11 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x05, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm3
kusano 2b45e8
kusano 2b45e8
	movss	15 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RN
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	
kusano 2b45e8
	mulps	%xmm6, %xmm0
kusano 2b45e8
kusano 2b45e8
	movss	 1 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	movaps	%xmm6, %xmm5
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm0, %xmm5
kusano 2b45e8
	subps	%xmm5, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 3 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	
kusano 2b45e8
	mulps	%xmm6, %xmm2
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	movss	 3 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	
kusano 2b45e8
	mulps	%xmm6, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 2 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	movaps	%xmm6, %xmm5
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm2, %xmm5
kusano 2b45e8
kusano 2b45e8
	subps	%xmm5, %xmm0
kusano 2b45e8
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	
kusano 2b45e8
	mulps	%xmm6, %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movlps	%xmm2,   0 * SIZE(B)
kusano 2b45e8
	movhps	%xmm2,   2 * SIZE(B)
kusano 2b45e8
	movlps	%xmm3,   4 * SIZE(B)
kusano 2b45e8
	movhps	%xmm3,   6 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
	pshufd	$0x00, %xmm2, %xmm0
kusano 2b45e8
	pshufd	$0x55, %xmm2, %xmm1
kusano 2b45e8
	pshufd	$0xaa, %xmm2, %xmm4
kusano 2b45e8
	pshufd	$0xff, %xmm2, %xmm6
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm2, %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm0, %xmm0
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0x55, %xmm1, %xmm1
kusano 2b45e8
	movaps	%xmm2, %xmm4
kusano 2b45e8
	shufps	$0xaa, %xmm4, %xmm4
kusano 2b45e8
	movaps	%xmm2, %xmm6
kusano 2b45e8
	shufps	$0xff, %xmm6, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,   0 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,   4 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm4,   8 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm6,  12 * SIZE(BB)
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
	pshufd	$0x00, %xmm3, %xmm0
kusano 2b45e8
	pshufd	$0x55, %xmm3, %xmm1
kusano 2b45e8
	pshufd	$0xaa, %xmm3, %xmm4
kusano 2b45e8
	pshufd	$0xff, %xmm3, %xmm6
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm3, %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm0, %xmm0
kusano 2b45e8
	movaps	%xmm3, %xmm1
kusano 2b45e8
	shufps	$0x55, %xmm1, %xmm1
kusano 2b45e8
	movaps	%xmm3, %xmm4
kusano 2b45e8
	shufps	$0xaa, %xmm4, %xmm4
kusano 2b45e8
	movaps	%xmm3, %xmm6
kusano 2b45e8
	shufps	$0xff, %xmm6, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,  16 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,  20 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm4,  24 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm6,  28 * SIZE(BB)
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm0,   0 * SIZE(AA)
kusano 2b45e8
	movaps	%xmm2,   4 * SIZE(AA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$4 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movaps	 %xmm2, %xmm0
kusano 2b45e8
	shufps	 $0x88, %xmm3, %xmm2
kusano 2b45e8
	shufps	 $0xdd, %xmm3, %xmm0
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm2, 0 * SIZE(CO1)
kusano 2b45e8
	movhps	%xmm2, 2 * SIZE(CO1)
kusano 2b45e8
	movlps	%xmm0, 0 * SIZE(CO1, LDC)
kusano 2b45e8
	movhps	%xmm0, 2 * SIZE(CO1, LDC)
kusano 2b45e8
#else
kusano 2b45e8
	movlps	%xmm0, 0 * SIZE(CO1)
kusano 2b45e8
	movhps	%xmm0, 2 * SIZE(CO1)
kusano 2b45e8
	movlps	%xmm2, 0 * SIZE(CO1, LDC)
kusano 2b45e8
	movhps	%xmm2, 2 * SIZE(CO1, LDC)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef LN
kusano 2b45e8
	addl	$4 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	K,  %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	leal	(,%eax, SIZE), %eax
kusano 2b45e8
	leal	(AA, %eax, 4), AA
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$8 * SIZE, B
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$4, KK
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$4, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	sall	$2 + BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
	ALIGN_2	
kusano 2b45e8
kusano 2b45e8
.L50:
kusano 2b45e8
	testl	$2, M
kusano 2b45e8
	jle	.L70
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
       movl	K, %eax
kusano 2b45e8
       sall	$1 + BASE_SHIFT, %eax
kusano 2b45e8
       subl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	sall	$1 + BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AA
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	sall	$1 + BASE_SHIFT, %eax
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movaps	 0 * SIZE(BB), %xmm2
kusano 2b45e8
	xorps	%xmm4, %xmm4
kusano 2b45e8
	movaps	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	xorps	%xmm5, %xmm5
kusano 2b45e8
	movaps	 16 * SIZE(BB), %xmm3
kusano 2b45e8
	xorps	%xmm6, %xmm6
kusano 2b45e8
	movaps	 8 * SIZE(AA), %xmm1
kusano 2b45e8
	xorps	%xmm7, %xmm7
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L52
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L51:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movaps	 4 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movsd	 2 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movaps	 8 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm6
kusano 2b45e8
	movaps	12 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movsd	 4 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm7
kusano 2b45e8
	movaps	32 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movaps	20 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
	movsd	 6 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movaps	24 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
	addps	%xmm3, %xmm6
kusano 2b45e8
	movaps	28 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm0, %xmm3
kusano 2b45e8
	movsd	16 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm3, %xmm7
kusano 2b45e8
	movaps	48 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movaps	36 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
	movsd	10 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movaps	40 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm6
kusano 2b45e8
	movaps	44 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
	movsd	12 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm2, %xmm7
kusano 2b45e8
	movaps	64 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	addps	%xmm3, %xmm4
kusano 2b45e8
	movaps	52 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movsd	14 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm5
kusano 2b45e8
	movaps	56 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	addps	%xmm3, %xmm6
kusano 2b45e8
	movaps	60 * SIZE(BB), %xmm3
kusano 2b45e8
	mulps	%xmm1, %xmm3
kusano 2b45e8
	movsd	24 * SIZE(AA), %xmm1
kusano 2b45e8
	addps	%xmm3, %xmm7
kusano 2b45e8
	movaps	80 * SIZE(BB), %xmm3
kusano 2b45e8
kusano 2b45e8
	addl   $16 * SIZE, AA
kusano 2b45e8
	addl   $64 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L51
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L52:
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L54
kusano 2b45e8
kusano 2b45e8
.L53:
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	addps	%xmm2, %xmm4
kusano 2b45e8
	movaps	 4 * SIZE(BB), %xmm2
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
	movsd	 2 * SIZE(AA), %xmm0
kusano 2b45e8
	addps	%xmm2, %xmm5
kusano 2b45e8
	movaps	 8 * SIZE(BB), %xmm2
kusano 2b45e8
kusano 2b45e8
	addl	$2 * SIZE, AA
kusano 2b45e8
	addl	$8 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L53
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L54:
kusano 2b45e8
	addps	%xmm6, %xmm4
kusano 2b45e8
	addps	%xmm7, %xmm5
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$2, %eax
kusano 2b45e8
#else
kusano 2b45e8
	subl	$2, %eax
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
	sall	$BASE_SHIFT, %eax
kusano 2b45e8
	leal	(AA, %eax, 2), AA
kusano 2b45e8
	leal	(B,  %eax, 2), B
kusano 2b45e8
	leal	(BB, %eax, 8), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	unpcklps %xmm5, %xmm4
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(B), %xmm2
kusano 2b45e8
	movhps	 2 * SIZE(B), %xmm2
kusano 2b45e8
kusano 2b45e8
	subps	%xmm4,  %xmm2
kusano 2b45e8
#else
kusano 2b45e8
#ifdef	movsd
kusano 2b45e8
	xorps	%xmm0, %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
	movsd	 0 * SIZE(AA), %xmm0
kusano 2b45e8
#ifdef	movsd
kusano 2b45e8
	xorps	%xmm2, %xmm2
kusano 2b45e8
#endif
kusano 2b45e8
	movsd	 2 * SIZE(AA), %xmm2
kusano 2b45e8
kusano 2b45e8
	subps	%xmm4, %xmm0
kusano 2b45e8
	subps	%xmm5, %xmm2
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movaps	TRMASK, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	movss	 3 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0xee, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	 2 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x50, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0x44, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movss	 1 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x05, %xmm0, %xmm0
kusano 2b45e8
	mulps	%xmm1, %xmm0
kusano 2b45e8
	subps	%xmm0, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 3 * SIZE(AA), %xmm0
kusano 2b45e8
	movaps	 %xmm6, %xmm1
kusano 2b45e8
	shufps	$0x00, %xmm0,  %xmm1
kusano 2b45e8
	mulps	%xmm1, %xmm2
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RN
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	
kusano 2b45e8
	mulps	%xmm6, %xmm0
kusano 2b45e8
kusano 2b45e8
	movss	 1 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	movaps	%xmm6, %xmm5
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm0, %xmm5
kusano 2b45e8
	subps	%xmm5, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 3 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	
kusano 2b45e8
	mulps	%xmm6, %xmm2
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	movss	 3 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	
kusano 2b45e8
	mulps	%xmm6, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 2 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	movaps	%xmm6, %xmm5
kusano 2b45e8
kusano 2b45e8
	mulps	%xmm2, %xmm5
kusano 2b45e8
kusano 2b45e8
	subps	%xmm5, %xmm0
kusano 2b45e8
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm6
kusano 2b45e8
	shufps	$0x00, %xmm6, %xmm6
kusano 2b45e8
	
kusano 2b45e8
	mulps	%xmm6, %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movlps	%xmm2,   0 * SIZE(B)
kusano 2b45e8
	movhps	%xmm2,   2 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
#ifdef HAVE_SSE2
kusano 2b45e8
	pshufd	$0x00, %xmm2, %xmm0
kusano 2b45e8
	pshufd	$0x55, %xmm2, %xmm1
kusano 2b45e8
	pshufd	$0xaa, %xmm2, %xmm4
kusano 2b45e8
	pshufd	$0xff, %xmm2, %xmm6
kusano 2b45e8
#else
kusano 2b45e8
	movaps	%xmm2, %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm0, %xmm0
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0x55, %xmm1, %xmm1
kusano 2b45e8
	movaps	%xmm2, %xmm4
kusano 2b45e8
	shufps	$0xaa, %xmm4, %xmm4
kusano 2b45e8
	movaps	%xmm2, %xmm6
kusano 2b45e8
	shufps	$0xff, %xmm6, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,   0 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,   4 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm4,   8 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm6,  12 * SIZE(BB)
kusano 2b45e8
#else
kusano 2b45e8
	movlps	%xmm0,   0 * SIZE(AA)
kusano 2b45e8
	movlps	%xmm2,   2 * SIZE(AA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$2 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movaps	 %xmm2, %xmm0
kusano 2b45e8
	shufps	 $0x88, %xmm3, %xmm2
kusano 2b45e8
	shufps	 $0xdd, %xmm3, %xmm0
kusano 2b45e8
kusano 2b45e8
	movlps	%xmm2, 0 * SIZE(CO1)
kusano 2b45e8
	movlps	%xmm0, 0 * SIZE(CO1, LDC)
kusano 2b45e8
#else
kusano 2b45e8
	movlps	%xmm0, 0 * SIZE(CO1)
kusano 2b45e8
	movlps	%xmm2, 0 * SIZE(CO1, LDC)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef LN
kusano 2b45e8
	addl	$2 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	K,  %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	leal	(,%eax, SIZE), %eax
kusano 2b45e8
	leal	(AA, %eax, 2), AA
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$4 * SIZE, B
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$2, KK
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$2, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	sall	$1 + BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
	ALIGN_2	
kusano 2b45e8
kusano 2b45e8
.L70:
kusano 2b45e8
	testl	$1, M
kusano 2b45e8
	jle	.L99
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
       movl	K, %eax
kusano 2b45e8
       sall	$BASE_SHIFT, %eax
kusano 2b45e8
       subl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	sall	$BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AA
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
	sall	$1 + BASE_SHIFT, %eax
kusano 2b45e8
	leal	(BB, %eax, 4), BB
kusano 2b45e8
#endif	
kusano 2b45e8
kusano 2b45e8
	movss	 0 * SIZE(BB), %xmm2
kusano 2b45e8
	xorps	%xmm4, %xmm4
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	xorps	%xmm5, %xmm5
kusano 2b45e8
	movss	 16 * SIZE(BB), %xmm3
kusano 2b45e8
	xorps	%xmm6, %xmm6
kusano 2b45e8
	movss	 4 * SIZE(AA), %xmm1
kusano 2b45e8
	xorps	%xmm7, %xmm7
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	sarl	$3, %eax
kusano 2b45e8
	je	.L72
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L71:
kusano 2b45e8
	mulss	%xmm0, %xmm2
kusano 2b45e8
	mulss	 4 * SIZE(BB), %xmm0
kusano 2b45e8
	addss	%xmm2, %xmm4
kusano 2b45e8
	movss	 8 * SIZE(BB), %xmm2
kusano 2b45e8
	addss	%xmm0, %xmm5
kusano 2b45e8
	movss	 1 * SIZE(AA), %xmm0
kusano 2b45e8
	mulss	%xmm0, %xmm2
kusano 2b45e8
	mulss	12 * SIZE(BB), %xmm0
kusano 2b45e8
	addss	%xmm2, %xmm6
kusano 2b45e8
	movss	32 * SIZE(BB), %xmm2
kusano 2b45e8
	addss	%xmm0, %xmm7
kusano 2b45e8
	movss	 2 * SIZE(AA), %xmm0
kusano 2b45e8
	mulss	%xmm0, %xmm3
kusano 2b45e8
	mulss	20 * SIZE(BB), %xmm0
kusano 2b45e8
	addss	%xmm3, %xmm4
kusano 2b45e8
	movss	24 * SIZE(BB), %xmm3
kusano 2b45e8
	addss	%xmm0, %xmm5
kusano 2b45e8
	movss	 3 * SIZE(AA), %xmm0
kusano 2b45e8
	mulss	%xmm0, %xmm3
kusano 2b45e8
	mulss	28 * SIZE(BB), %xmm0
kusano 2b45e8
	addss	%xmm3, %xmm6
kusano 2b45e8
	movss	48 * SIZE(BB), %xmm3
kusano 2b45e8
	addss	%xmm0, %xmm7
kusano 2b45e8
	movss	 8 * SIZE(AA), %xmm0
kusano 2b45e8
	mulss	%xmm1, %xmm2
kusano 2b45e8
	mulss	36 * SIZE(BB), %xmm1
kusano 2b45e8
	addss	%xmm2, %xmm4
kusano 2b45e8
	movss	40 * SIZE(BB), %xmm2
kusano 2b45e8
	addss	%xmm1, %xmm5
kusano 2b45e8
	movss	 5 * SIZE(AA), %xmm1
kusano 2b45e8
	mulss	%xmm1, %xmm2
kusano 2b45e8
	mulss	44 * SIZE(BB), %xmm1
kusano 2b45e8
	addss	%xmm2, %xmm6
kusano 2b45e8
	movss	64 * SIZE(BB), %xmm2
kusano 2b45e8
	addss	%xmm1, %xmm7
kusano 2b45e8
	movss	 6 * SIZE(AA), %xmm1
kusano 2b45e8
	mulss	%xmm1, %xmm3
kusano 2b45e8
	mulss	52 * SIZE(BB), %xmm1
kusano 2b45e8
	addss	%xmm3, %xmm4
kusano 2b45e8
	movss	56 * SIZE(BB), %xmm3
kusano 2b45e8
	addss	%xmm1, %xmm5
kusano 2b45e8
	movss	 7 * SIZE(AA), %xmm1
kusano 2b45e8
	mulss	%xmm1, %xmm3
kusano 2b45e8
	mulss	60 * SIZE(BB), %xmm1
kusano 2b45e8
	addss	%xmm3, %xmm6
kusano 2b45e8
	movss	80 * SIZE(BB), %xmm3
kusano 2b45e8
	addss	%xmm1, %xmm7
kusano 2b45e8
	movss	12 * SIZE(AA), %xmm1
kusano 2b45e8
kusano 2b45e8
	addl   $ 8 * SIZE, AA
kusano 2b45e8
	addl   $64 * SIZE, BB
kusano 2b45e8
	decl   %eax
kusano 2b45e8
	jne    .L71
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L72:
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#else
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
#endif
kusano 2b45e8
	andl	$7, %eax		# if (k & 1)
kusano 2b45e8
	BRANCH
kusano 2b45e8
	je .L74
kusano 2b45e8
kusano 2b45e8
.L73:
kusano 2b45e8
	mulss	%xmm0, %xmm2
kusano 2b45e8
	mulss	 4 * SIZE(BB), %xmm0
kusano 2b45e8
	addss	%xmm2, %xmm4
kusano 2b45e8
	movss	 8 * SIZE(BB), %xmm2
kusano 2b45e8
	addss	%xmm0, %xmm5
kusano 2b45e8
	movss	 1 * SIZE(AA), %xmm0
kusano 2b45e8
kusano 2b45e8
	addl	$1 * SIZE, AA
kusano 2b45e8
	addl	$8 * SIZE, BB
kusano 2b45e8
	decl	%eax
kusano 2b45e8
	jg	.L73
kusano 2b45e8
	ALIGN_4
kusano 2b45e8
kusano 2b45e8
.L74:
kusano 2b45e8
	addss	%xmm6, %xmm4
kusano 2b45e8
	addss	%xmm7, %xmm5
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(RT)
kusano 2b45e8
	movl	KK, %eax
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$1, %eax
kusano 2b45e8
#else
kusano 2b45e8
	subl	$2, %eax
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movl	AORIG, AA
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	leal	BUFFER, BB
kusano 2b45e8
kusano 2b45e8
	sall	$BASE_SHIFT, %eax
kusano 2b45e8
	leal	(AA, %eax, 1), AA
kusano 2b45e8
	leal	(B,  %eax, 2), B
kusano 2b45e8
	leal	(BB, %eax, 8), BB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	unpcklps %xmm5, %xmm4
kusano 2b45e8
kusano 2b45e8
#ifdef	movsd
kusano 2b45e8
	xorps	%xmm2, %xmm2
kusano 2b45e8
#endif
kusano 2b45e8
	movsd	 0 * SIZE(B), %xmm2
kusano 2b45e8
kusano 2b45e8
	subps	%xmm4,  %xmm2
kusano 2b45e8
#else
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	movss	 1 * SIZE(AA), %xmm2
kusano 2b45e8
kusano 2b45e8
	subss	%xmm4, %xmm0
kusano 2b45e8
	subss	%xmm5, %xmm2
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movaps	TRMASK, %xmm6
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movss	 0 * SIZE(AA), %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm6,  %xmm0
kusano 2b45e8
	mulps	%xmm0, %xmm2
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RN
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm6
kusano 2b45e8
	mulss	%xmm6, %xmm0
kusano 2b45e8
kusano 2b45e8
	movss	 1 * SIZE(B), %xmm6
kusano 2b45e8
	movaps	%xmm6, %xmm5
kusano 2b45e8
kusano 2b45e8
	mulss	%xmm0, %xmm5
kusano 2b45e8
	subss	%xmm5, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 3 * SIZE(B), %xmm6
kusano 2b45e8
	mulss	%xmm6, %xmm2
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	movss	 3 * SIZE(B), %xmm6
kusano 2b45e8
	mulss	%xmm6, %xmm2
kusano 2b45e8
kusano 2b45e8
	movss	 2 * SIZE(B), %xmm6
kusano 2b45e8
	movaps	%xmm6, %xmm5
kusano 2b45e8
kusano 2b45e8
	mulss	%xmm2, %xmm5
kusano 2b45e8
	subss	%xmm5, %xmm0
kusano 2b45e8
kusano 2b45e8
	movss	 0 * SIZE(B), %xmm6
kusano 2b45e8
	mulss	%xmm6, %xmm0
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
#ifdef	movsd
kusano 2b45e8
	xorps	%xmm2, %xmm2
kusano 2b45e8
#endif
kusano 2b45e8
	movsd	%xmm2,   0 * SIZE(B)
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm2, %xmm0
kusano 2b45e8
	shufps	$0x00, %xmm0, %xmm0
kusano 2b45e8
	movaps	%xmm2, %xmm1
kusano 2b45e8
	shufps	$0x55, %xmm1, %xmm1
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0,   0 * SIZE(BB)
kusano 2b45e8
	movaps	%xmm1,   4 * SIZE(BB)
kusano 2b45e8
#else
kusano 2b45e8
	movss	%xmm0,   0 * SIZE(AA)
kusano 2b45e8
	movss	%xmm2,   1 * SIZE(AA)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$1 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LN) || defined(LT)
kusano 2b45e8
	movaps	 %xmm2, %xmm0
kusano 2b45e8
	shufps	 $0x88, %xmm3, %xmm2
kusano 2b45e8
	shufps	 $0xdd, %xmm3, %xmm0
kusano 2b45e8
kusano 2b45e8
	movss	%xmm2, 0 * SIZE(CO1)
kusano 2b45e8
	movss	%xmm0, 0 * SIZE(CO1, LDC)
kusano 2b45e8
#else
kusano 2b45e8
	movss	%xmm0, 0 * SIZE(CO1)
kusano 2b45e8
	movss	%xmm2, 0 * SIZE(CO1, LDC)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef LN
kusano 2b45e8
	addl	$1 * SIZE, CO1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	K,  %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	leal	(,%eax, SIZE), %eax
kusano 2b45e8
	leal	(AA, %eax, 1), AA
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$2 * SIZE, B
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LN
kusano 2b45e8
	subl	$1, KK
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef LT
kusano 2b45e8
	addl	$1, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	movl	K, %eax
kusano 2b45e8
	movl	BORIG, B
kusano 2b45e8
	sall	$BASE_SHIFT, %eax
kusano 2b45e8
	addl	%eax, AORIG
kusano 2b45e8
#endif
kusano 2b45e8
	ALIGN_2	
kusano 2b45e8
kusano 2b45e8
.L99:
kusano 2b45e8
#ifdef LN
kusano 2b45e8
       movl	K, %eax
kusano 2b45e8
       leal	(, %eax, SIZE), %eax
kusano 2b45e8
       leal 	(B, %eax, 2), B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(LT) || defined(RN)
kusano 2b45e8
	movl	K,  %eax
kusano 2b45e8
	subl	KK, %eax
kusano 2b45e8
	leal	(,%eax, SIZE), %eax
kusano 2b45e8
	leal	(B,  %eax, 2), B
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RN
kusano 2b45e8
	addl	$2, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef RT
kusano 2b45e8
	subl	$2, KK
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	decl	J			# j --
kusano 2b45e8
	jg	.L01
kusano 2b45e8
	ALIGN_2
kusano 2b45e8
kusano 2b45e8
.L999:
kusano 2b45e8
	movl	OLD_STACK, %esp
kusano 2b45e8
kusano 2b45e8
	popl	%ebx
kusano 2b45e8
	popl	%esi
kusano 2b45e8
	popl	%edi
kusano 2b45e8
	popl	%ebp
kusano 2b45e8
	ret
kusano 2b45e8
kusano 2b45e8
	EPILOGUE