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
#ifndef NEEDPARAM
kusano 2b45e8
#ifndef DOUBLE
kusano 2b45e8
#include "cparam.h"
kusano 2b45e8
#else
kusano 2b45e8
#include "zparam.h"
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef linux
kusano 2b45e8
#ifndef __64BIT__
kusano 2b45e8
#define M	r3
kusano 2b45e8
#define	N	r4
kusano 2b45e8
#define X	r6
kusano 2b45e8
#define INCX	r7
kusano 2b45e8
#define Y	r8
kusano 2b45e8
#define	INCY	r9
kusano 2b45e8
#define	A	r10
kusano 2b45e8
#define	LDA	r5
kusano 2b45e8
#else
kusano 2b45e8
#define M	r3
kusano 2b45e8
#define	N	r4
kusano 2b45e8
#define X	r8
kusano 2b45e8
#define INCX	r9
kusano 2b45e8
#define Y	r10
kusano 2b45e8
#define	INCY	r5
kusano 2b45e8
#define	A	r6
kusano 2b45e8
#define	LDA	r7
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(_AIX) || defined(__APPLE__)
kusano 2b45e8
#if !defined(__64BIT__) && defined(DOUBLE)
kusano 2b45e8
#define M	r3
kusano 2b45e8
#define	N	r4
kusano 2b45e8
#define X	r10
kusano 2b45e8
#define INCX	r5
kusano 2b45e8
#define Y	r6
kusano 2b45e8
#define	INCY	r7
kusano 2b45e8
#define	A	r8
kusano 2b45e8
#define	LDA	r9
kusano 2b45e8
#else
kusano 2b45e8
#define M	r3
kusano 2b45e8
#define	N	r4
kusano 2b45e8
#define X	r8
kusano 2b45e8
#define INCX	r9
kusano 2b45e8
#define Y	r10
kusano 2b45e8
#define	INCY	r5
kusano 2b45e8
#define	A	r6
kusano 2b45e8
#define	LDA	r7
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#define I	r11
kusano 2b45e8
#define	J	r12
kusano 2b45e8
kusano 2b45e8
#define AO1	r14
kusano 2b45e8
#define AO2	r15
kusano 2b45e8
#define AO3	r16
kusano 2b45e8
#define AO4	r17
kusano 2b45e8
#define AO5	r18
kusano 2b45e8
#define AO6	r19
kusano 2b45e8
#define AO7	r20
kusano 2b45e8
#define AO8	r21
kusano 2b45e8
kusano 2b45e8
#define	X1	r22
kusano 2b45e8
#define	PREA	r23
kusano 2b45e8
#define	PREC	r24
kusano 2b45e8
#define XX	r25
kusano 2b45e8
#define BUFFER	r26
kusano 2b45e8
kusano 2b45e8
#define y01 f0
kusano 2b45e8
#define y02 f1
kusano 2b45e8
#define y03 f2
kusano 2b45e8
#define y04 f3
kusano 2b45e8
#define y05 f4
kusano 2b45e8
#define y06 f5
kusano 2b45e8
#define y07 f6
kusano 2b45e8
#define y08 f7
kusano 2b45e8
kusano 2b45e8
#define alpha1_r f8
kusano 2b45e8
#define alpha1_i f9
kusano 2b45e8
#define alpha2_r f10
kusano 2b45e8
#define alpha2_i f11
kusano 2b45e8
kusano 2b45e8
#define a1     f12
kusano 2b45e8
#define a2     f13
kusano 2b45e8
#define a3     f14
kusano 2b45e8
#define a4     f15
kusano 2b45e8
#define a5     f16
kusano 2b45e8
#define a6     f17
kusano 2b45e8
#define a7     f18
kusano 2b45e8
#define a8     f19
kusano 2b45e8
#define a9     f20
kusano 2b45e8
#define a10    f21
kusano 2b45e8
#define a11    f22
kusano 2b45e8
#define a12    f23
kusano 2b45e8
#define a13    f24
kusano 2b45e8
#define a14    f25
kusano 2b45e8
#define a15    f26
kusano 2b45e8
#define a16    f27
kusano 2b45e8
kusano 2b45e8
#define alpha_r  f30
kusano 2b45e8
#define alpha_i  f31
kusano 2b45e8
kusano 2b45e8
#ifndef CONJ
kusano 2b45e8
#define FMA1	FNMSUB
kusano 2b45e8
#define FMA2	FMADD
kusano 2b45e8
#else
kusano 2b45e8
#define FMA1	FMADD
kusano 2b45e8
#define FMA2	FNMSUB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(PPC440) || defined(PPC440FP2)
kusano 2b45e8
#define PREFETCHSIZE_A  24
kusano 2b45e8
#define PREFETCHSIZE_C  16
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef PPC970
kusano 2b45e8
#define PREFETCHSIZE_A  16
kusano 2b45e8
#define PREFETCHSIZE_C  16
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef POWER4
kusano 2b45e8
#define PREFETCHSIZE_A  16
kusano 2b45e8
#define PREFETCHSIZE_C  16
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef POWER5
kusano 2b45e8
#define PREFETCHSIZE_A  16
kusano 2b45e8
#define PREFETCHSIZE_C  16
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef NEEDPARAM
kusano 2b45e8
kusano 2b45e8
#ifndef __64BIT__
kusano 2b45e8
#define STACKSIZE 224
kusano 2b45e8
#else
kusano 2b45e8
#define STACKSIZE 280
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	PROLOGUE
kusano 2b45e8
	PROFCODE
kusano 2b45e8
kusano 2b45e8
	addi	SP,   SP, -STACKSIZE
kusano 2b45e8
kusano 2b45e8
	stfd	f14,     0(SP)
kusano 2b45e8
	stfd	f15,     8(SP)
kusano 2b45e8
	stfd	f16,    16(SP)
kusano 2b45e8
	stfd	f17,    24(SP)
kusano 2b45e8
	stfd	f18,    32(SP)
kusano 2b45e8
	stfd	f19,    40(SP)
kusano 2b45e8
	stfd	f20,    48(SP)
kusano 2b45e8
	stfd	f21,    56(SP)
kusano 2b45e8
	stfd	f22,    64(SP)
kusano 2b45e8
	stfd	f23,    72(SP)
kusano 2b45e8
	stfd	f24,    80(SP)
kusano 2b45e8
	stfd	f25,    88(SP)
kusano 2b45e8
	stfd	f26,    96(SP)
kusano 2b45e8
	stfd	f27,   104(SP)
kusano 2b45e8
	stfd	f28,   112(SP)
kusano 2b45e8
	stfd	f29,   120(SP)
kusano 2b45e8
	stfd	f30,   128(SP)
kusano 2b45e8
	stfd	f31,   136(SP)
kusano 2b45e8
kusano 2b45e8
#ifdef __64BIT__
kusano 2b45e8
	std	r14,   144(SP)
kusano 2b45e8
	std	r15,   152(SP)
kusano 2b45e8
	std	r16,   160(SP)
kusano 2b45e8
	std	r17,   168(SP)
kusano 2b45e8
	std	r18,   176(SP)
kusano 2b45e8
	std	r19,   184(SP)
kusano 2b45e8
	std	r20,   192(SP)
kusano 2b45e8
	std	r21,   200(SP)
kusano 2b45e8
	std	r22,   208(SP)
kusano 2b45e8
	std	r23,   216(SP)
kusano 2b45e8
	std	r24,   224(SP)
kusano 2b45e8
	std	r25,   232(SP)
kusano 2b45e8
	std	r26,   240(SP)
kusano 2b45e8
	std	r27,   248(SP)
kusano 2b45e8
#else
kusano 2b45e8
	stw	r14,   144(SP)
kusano 2b45e8
	stw	r15,   148(SP)
kusano 2b45e8
	stw	r16,   152(SP)
kusano 2b45e8
	stw	r17,   156(SP)
kusano 2b45e8
	stw	r18,   160(SP)
kusano 2b45e8
	stw	r19,   164(SP)
kusano 2b45e8
	stw	r20,   168(SP)
kusano 2b45e8
	stw	r21,   172(SP)
kusano 2b45e8
	stw	r22,   176(SP)
kusano 2b45e8
	stw	r23,   180(SP)
kusano 2b45e8
	stw	r24,   184(SP)
kusano 2b45e8
	stw	r25,   188(SP)
kusano 2b45e8
	stw	r26,   192(SP)
kusano 2b45e8
	stw	r27,   196(SP)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef linux
kusano 2b45e8
#ifndef __64BIT__
kusano 2b45e8
	lwz	LDA,       8 + STACKSIZE(SP)
kusano 2b45e8
	lwz	BUFFER,   12 + STACKSIZE(SP)
kusano 2b45e8
#else
kusano 2b45e8
	ld	INCY,    112 + STACKSIZE(SP)
kusano 2b45e8
	ld	A,       120 + STACKSIZE(SP)
kusano 2b45e8
	ld	LDA,     128 + STACKSIZE(SP)
kusano 2b45e8
	ld	BUFFER,  136 + STACKSIZE(SP)
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(_AIX) || defined(__APPLE__)
kusano 2b45e8
#ifndef __64BIT__
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
	lwz	INCX,    56 + STACKSIZE(SP)
kusano 2b45e8
	lwz	Y,       60 + STACKSIZE(SP)
kusano 2b45e8
	lwz	INCY,    64 + STACKSIZE(SP)
kusano 2b45e8
	lwz	A,       68 + STACKSIZE(SP)
kusano 2b45e8
	lwz	LDA,     72 + STACKSIZE(SP)
kusano 2b45e8
	lwz	BUFFER,  76 + STACKSIZE(SP)
kusano 2b45e8
#else
kusano 2b45e8
	lwz	INCY,    56 + STACKSIZE(SP)
kusano 2b45e8
	lwz	A,       60 + STACKSIZE(SP)
kusano 2b45e8
	lwz	LDA,     64 + STACKSIZE(SP)
kusano 2b45e8
	lwz	BUFFER,  68 + STACKSIZE(SP)
kusano 2b45e8
#endif
kusano 2b45e8
#else
kusano 2b45e8
	ld	INCY,    112 + STACKSIZE(SP)
kusano 2b45e8
	ld	A,       120 + STACKSIZE(SP)
kusano 2b45e8
	ld	LDA,     128 + STACKSIZE(SP)
kusano 2b45e8
	ld	BUFFER,  136 + STACKSIZE(SP)
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	fmr	alpha_r, f1
kusano 2b45e8
	fmr	alpha_i, f2
kusano 2b45e8
kusano 2b45e8
	slwi	LDA,  LDA,  ZBASE_SHIFT
kusano 2b45e8
	slwi	INCX, INCX, ZBASE_SHIFT
kusano 2b45e8
	slwi	INCY, INCY, ZBASE_SHIFT
kusano 2b45e8
kusano 2b45e8
	li	PREA, PREFETCHSIZE_A * SIZE
kusano 2b45e8
	li	PREC, PREFETCHSIZE_C * SIZE
kusano 2b45e8
kusano 2b45e8
	cmpwi	cr0, M, 0
kusano 2b45e8
	ble-	LL(999)
kusano 2b45e8
kusano 2b45e8
	cmpwi	cr0, N, 0
kusano 2b45e8
	ble-	LL(999)
kusano 2b45e8
kusano 2b45e8
	mr	XX, X
kusano 2b45e8
kusano 2b45e8
	cmpi	cr0, 0, INCX, 2 * SIZE
kusano 2b45e8
	beq	LL(10)
kusano 2b45e8
kusano 2b45e8
	mr	XX, BUFFER
kusano 2b45e8
	mr	X1, BUFFER
kusano 2b45e8
kusano 2b45e8
	srawi.	r0,  M, 2
kusano 2b45e8
	mtspr	CTR, r0
kusano 2b45e8
	ble	LL(05)
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(01):
kusano 2b45e8
	LFD	a1, 0 * SIZE(X)
kusano 2b45e8
	LFD	a2, 1 * SIZE(X)
kusano 2b45e8
	add	X, X, INCX
kusano 2b45e8
	LFD	a3, 0 * SIZE(X)
kusano 2b45e8
	LFD	a4, 1 * SIZE(X)
kusano 2b45e8
	add	X, X, INCX
kusano 2b45e8
	LFD	a5, 0 * SIZE(X)
kusano 2b45e8
	LFD	a6, 1 * SIZE(X)
kusano 2b45e8
	add	X, X, INCX
kusano 2b45e8
	LFD	a7, 0 * SIZE(X)
kusano 2b45e8
	LFD	a8, 1 * SIZE(X)
kusano 2b45e8
	add	X, X, INCX
kusano 2b45e8
kusano 2b45e8
	STFD	a1, 0 * SIZE(X1)
kusano 2b45e8
	STFD	a2, 1 * SIZE(X1)
kusano 2b45e8
	STFD	a3, 2 * SIZE(X1)
kusano 2b45e8
	STFD	a4, 3 * SIZE(X1)
kusano 2b45e8
	STFD	a5, 4 * SIZE(X1)
kusano 2b45e8
	STFD	a6, 5 * SIZE(X1)
kusano 2b45e8
	STFD	a7, 6 * SIZE(X1)
kusano 2b45e8
	STFD	a8, 7 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	addi	X1, X1, 8 * SIZE
kusano 2b45e8
	bdnz+	LL(01)
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(05):
kusano 2b45e8
	andi.	r0, M, 7
kusano 2b45e8
	mtspr	CTR, r0
kusano 2b45e8
	ble	LL(10)
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(06):
kusano 2b45e8
	LFD	a1, 0 * SIZE(X)
kusano 2b45e8
	LFD	a2, 1 * SIZE(X)
kusano 2b45e8
	STFD	a1, 0 * SIZE(X1)
kusano 2b45e8
	STFD	a2, 1 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	add	X, X, INCX
kusano 2b45e8
	addi	X1, X1, 2 * SIZE
kusano 2b45e8
	bdnz+	LL(06)
kusano 2b45e8
	.align 4
kusano 2b45e8
	
kusano 2b45e8
LL(10):
kusano 2b45e8
	srawi.	J, N, 1
kusano 2b45e8
	ble	LL(20)
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(11):
kusano 2b45e8
	LFD	alpha1_r, 0 * SIZE(Y)
kusano 2b45e8
	LFD	alpha1_i, 1 * SIZE(Y)
kusano 2b45e8
	add	Y, Y, INCY
kusano 2b45e8
	LFD	alpha2_r, 0 * SIZE(Y)
kusano 2b45e8
	LFD	alpha2_i, 1 * SIZE(Y)
kusano 2b45e8
	add	Y, Y, INCY
kusano 2b45e8
kusano 2b45e8
	FMUL	a1, alpha_r, alpha1_r
kusano 2b45e8
	FMUL	a2, alpha_i, alpha1_r
kusano 2b45e8
	FMUL	a3, alpha_r, alpha2_r
kusano 2b45e8
	FMUL	a4, alpha_i, alpha2_r
kusano 2b45e8
kusano 2b45e8
	FMA1	alpha1_r, alpha_i, alpha1_i, a1
kusano 2b45e8
	FMA2	alpha1_i, alpha_r, alpha1_i, a2
kusano 2b45e8
	FMA1	alpha2_r, alpha_i, alpha2_i, a3
kusano 2b45e8
	FMA2	alpha2_i, alpha_r, alpha2_i, a4
kusano 2b45e8
kusano 2b45e8
	mr	AO1, A
kusano 2b45e8
	add	AO2, A,   LDA
kusano 2b45e8
	add	A,   AO2, LDA
kusano 2b45e8
kusano 2b45e8
	mr	X1, XX
kusano 2b45e8
kusano 2b45e8
	srawi.	r0,  M, 3
kusano 2b45e8
	mtspr	CTR, r0
kusano 2b45e8
	ble	LL(15)
kusano 2b45e8
kusano 2b45e8
	LFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	LFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	LFD	a3,  2 * SIZE(AO1)
kusano 2b45e8
	LFD	a4,  3 * SIZE(AO1)
kusano 2b45e8
	LFD	a5,  4 * SIZE(AO1)
kusano 2b45e8
	LFD	a6,  5 * SIZE(AO1)
kusano 2b45e8
	LFD	a7,  6 * SIZE(AO1)
kusano 2b45e8
	LFD	a8,  7 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
 	LFD	y01, 0 * SIZE(X1)
kusano 2b45e8
	LFD	y02, 1 * SIZE(X1)
kusano 2b45e8
 	LFD	y03, 2 * SIZE(X1)
kusano 2b45e8
	LFD	y04, 3 * SIZE(X1)
kusano 2b45e8
 	LFD	y05, 4 * SIZE(X1)
kusano 2b45e8
	LFD	y06, 5 * SIZE(X1)
kusano 2b45e8
 	LFD	y07, 6 * SIZE(X1)
kusano 2b45e8
	LFD	y08, 7 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	LFD	a9,  0 * SIZE(AO2)
kusano 2b45e8
	LFD	a10, 1 * SIZE(AO2)
kusano 2b45e8
	LFD	a11, 2 * SIZE(AO2)
kusano 2b45e8
	LFD	a12, 3 * SIZE(AO2)
kusano 2b45e8
	LFD	a13, 4 * SIZE(AO2)
kusano 2b45e8
	LFD	a14, 5 * SIZE(AO2)
kusano 2b45e8
	LFD	a15, 6 * SIZE(AO2)
kusano 2b45e8
	LFD	a16, 7 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	bdz	LL(13)
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(12):
kusano 2b45e8
	FMADD	a1,  alpha1_r, y01, a1
kusano 2b45e8
	FMADD	a2,  alpha1_r, y02, a2
kusano 2b45e8
	FMADD	a3,  alpha1_r, y03, a3
kusano 2b45e8
	FMADD	a4,  alpha1_r, y04, a4
kusano 2b45e8
kusano 2b45e8
	FMADD	a5,  alpha1_r, y05, a5
kusano 2b45e8
	FMADD	a6,  alpha1_r, y06, a6
kusano 2b45e8
	FMADD	a7,  alpha1_r, y07, a7
kusano 2b45e8
	FMADD	a8,  alpha1_r, y08, a8
kusano 2b45e8
kusano 2b45e8
	FMADD	a9,  alpha2_r, y01, a9
kusano 2b45e8
	FMADD	a10, alpha2_r, y02, a10
kusano 2b45e8
	FMADD	a11, alpha2_r, y03, a11
kusano 2b45e8
	FMADD	a12, alpha2_r, y04, a12
kusano 2b45e8
kusano 2b45e8
	FMADD	a13, alpha2_r, y05, a13
kusano 2b45e8
	FMADD	a14, alpha2_r, y06, a14
kusano 2b45e8
	FMADD	a15, alpha2_r, y07, a15
kusano 2b45e8
	FMADD	a16, alpha2_r, y08, a16
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a1, alpha1_i, y02, a1
kusano 2b45e8
	FMADD	a2, alpha1_i, y01, a2
kusano 2b45e8
	FNMSUB	a3, alpha1_i, y04, a3
kusano 2b45e8
	FMADD	a4, alpha1_i, y03, a4
kusano 2b45e8
kusano 2b45e8
	STFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	STFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	STFD	a3,  2 * SIZE(AO1)
kusano 2b45e8
	STFD	a4,  3 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	LFD	a1,   8 * SIZE(AO1)
kusano 2b45e8
	LFD	a2,   9 * SIZE(AO1)
kusano 2b45e8
	LFD	a3,  10 * SIZE(AO1)
kusano 2b45e8
	LFD	a4,  11 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a5, alpha1_i, y06, a5
kusano 2b45e8
	FMADD	a6, alpha1_i, y05, a6
kusano 2b45e8
	FNMSUB	a7, alpha1_i, y08, a7
kusano 2b45e8
	FMADD	a8, alpha1_i, y07, a8
kusano 2b45e8
kusano 2b45e8
	STFD	a5,  4 * SIZE(AO1)
kusano 2b45e8
	STFD	a6,  5 * SIZE(AO1)
kusano 2b45e8
	STFD	a7,  6 * SIZE(AO1)
kusano 2b45e8
	STFD	a8,  7 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	LFD	a5,  12 * SIZE(AO1)
kusano 2b45e8
	LFD	a6,  13 * SIZE(AO1)
kusano 2b45e8
	LFD	a7,  14 * SIZE(AO1)
kusano 2b45e8
	LFD	a8,  15 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a9,  alpha2_i, y02, a9
kusano 2b45e8
	FMADD	a10, alpha2_i, y01, a10
kusano 2b45e8
	FNMSUB	a11, alpha2_i, y04, a11
kusano 2b45e8
	FMADD	a12, alpha2_i, y03, a12
kusano 2b45e8
kusano 2b45e8
 	LFD	y01,  8 * SIZE(X1)
kusano 2b45e8
	LFD	y02,  9 * SIZE(X1)
kusano 2b45e8
 	LFD	y03, 10 * SIZE(X1)
kusano 2b45e8
	LFD	y04, 11 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	STFD	a9,  0 * SIZE(AO2)
kusano 2b45e8
	STFD	a10, 1 * SIZE(AO2)
kusano 2b45e8
	STFD	a11, 2 * SIZE(AO2)
kusano 2b45e8
	STFD	a12, 3 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	LFD	a9,   8 * SIZE(AO2)
kusano 2b45e8
	LFD	a10,  9 * SIZE(AO2)
kusano 2b45e8
	LFD	a11, 10 * SIZE(AO2)
kusano 2b45e8
	LFD	a12, 11 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a13, alpha2_i, y06, a13
kusano 2b45e8
	FMADD	a14, alpha2_i, y05, a14
kusano 2b45e8
	FNMSUB	a15, alpha2_i, y08, a15
kusano 2b45e8
	FMADD	a16, alpha2_i, y07, a16
kusano 2b45e8
kusano 2b45e8
 	LFD	y05, 12 * SIZE(X1)
kusano 2b45e8
	LFD	y06, 13 * SIZE(X1)
kusano 2b45e8
 	LFD	y07, 14 * SIZE(X1)
kusano 2b45e8
	LFD	y08, 15 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	STFD	a13, 4 * SIZE(AO2)
kusano 2b45e8
	STFD	a14, 5 * SIZE(AO2)
kusano 2b45e8
	STFD	a15, 6 * SIZE(AO2)
kusano 2b45e8
	STFD	a16, 7 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	LFD	a13, 12 * SIZE(AO2)
kusano 2b45e8
	LFD	a14, 13 * SIZE(AO2)
kusano 2b45e8
	LFD	a15, 14 * SIZE(AO2)
kusano 2b45e8
	LFD	a16, 15 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	FMADD	a1,  alpha1_r, y01, a1
kusano 2b45e8
	FMADD	a2,  alpha1_r, y02, a2
kusano 2b45e8
	FMADD	a3,  alpha1_r, y03, a3
kusano 2b45e8
	FMADD	a4,  alpha1_r, y04, a4
kusano 2b45e8
kusano 2b45e8
	FMADD	a5,  alpha1_r, y05, a5
kusano 2b45e8
	FMADD	a6,  alpha1_r, y06, a6
kusano 2b45e8
	FMADD	a7,  alpha1_r, y07, a7
kusano 2b45e8
	FMADD	a8,  alpha1_r, y08, a8
kusano 2b45e8
kusano 2b45e8
	FMADD	a9,  alpha2_r, y01, a9
kusano 2b45e8
	FMADD	a10, alpha2_r, y02, a10
kusano 2b45e8
	FMADD	a11, alpha2_r, y03, a11
kusano 2b45e8
	FMADD	a12, alpha2_r, y04, a12
kusano 2b45e8
kusano 2b45e8
	FMADD	a13, alpha2_r, y05, a13
kusano 2b45e8
	FMADD	a14, alpha2_r, y06, a14
kusano 2b45e8
	FMADD	a15, alpha2_r, y07, a15
kusano 2b45e8
	FMADD	a16, alpha2_r, y08, a16
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a1, alpha1_i, y02, a1
kusano 2b45e8
	FMADD	a2, alpha1_i, y01, a2
kusano 2b45e8
	FNMSUB	a3, alpha1_i, y04, a3
kusano 2b45e8
	FMADD	a4, alpha1_i, y03, a4
kusano 2b45e8
kusano 2b45e8
	STFD	a1,   8 * SIZE(AO1)
kusano 2b45e8
	STFD	a2,   9 * SIZE(AO1)
kusano 2b45e8
	STFD	a3,  10 * SIZE(AO1)
kusano 2b45e8
	STFD	a4,  11 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	LFD	a1,  16 * SIZE(AO1)
kusano 2b45e8
	LFD	a2,  17 * SIZE(AO1)
kusano 2b45e8
	LFD	a3,  18 * SIZE(AO1)
kusano 2b45e8
	LFD	a4,  19 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a5, alpha1_i, y06, a5
kusano 2b45e8
	FMADD	a6, alpha1_i, y05, a6
kusano 2b45e8
	FNMSUB	a7, alpha1_i, y08, a7
kusano 2b45e8
	FMADD	a8, alpha1_i, y07, a8
kusano 2b45e8
kusano 2b45e8
	STFD	a5,  12 * SIZE(AO1)
kusano 2b45e8
	STFD	a6,  13 * SIZE(AO1)
kusano 2b45e8
	STFD	a7,  14 * SIZE(AO1)
kusano 2b45e8
	STFD	a8,  15 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	LFD	a5,  20 * SIZE(AO1)
kusano 2b45e8
	LFD	a6,  21 * SIZE(AO1)
kusano 2b45e8
	LFD	a7,  22 * SIZE(AO1)
kusano 2b45e8
	LFD	a8,  23 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a9,  alpha2_i, y02, a9
kusano 2b45e8
	FMADD	a10, alpha2_i, y01, a10
kusano 2b45e8
	FNMSUB	a11, alpha2_i, y04, a11
kusano 2b45e8
	FMADD	a12, alpha2_i, y03, a12
kusano 2b45e8
kusano 2b45e8
 	LFD	y01, 16 * SIZE(X1)
kusano 2b45e8
	LFD	y02, 17 * SIZE(X1)
kusano 2b45e8
 	LFD	y03, 18 * SIZE(X1)
kusano 2b45e8
	LFD	y04, 19 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	STFD	a9,   8 * SIZE(AO2)
kusano 2b45e8
	STFD	a10,  9 * SIZE(AO2)
kusano 2b45e8
	STFD	a11, 10 * SIZE(AO2)
kusano 2b45e8
	STFD	a12, 11 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	LFD	a9,  16 * SIZE(AO2)
kusano 2b45e8
	LFD	a10, 17 * SIZE(AO2)
kusano 2b45e8
	LFD	a11, 18 * SIZE(AO2)
kusano 2b45e8
	LFD	a12, 19 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a13, alpha2_i, y06, a13
kusano 2b45e8
	FMADD	a14, alpha2_i, y05, a14
kusano 2b45e8
	FNMSUB	a15, alpha2_i, y08, a15
kusano 2b45e8
	FMADD	a16, alpha2_i, y07, a16
kusano 2b45e8
kusano 2b45e8
 	LFD	y05, 20 * SIZE(X1)
kusano 2b45e8
	LFD	y06, 21 * SIZE(X1)
kusano 2b45e8
 	LFD	y07, 22 * SIZE(X1)
kusano 2b45e8
	LFD	y08, 23 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	STFD	a13, 12 * SIZE(AO2)
kusano 2b45e8
	STFD	a14, 13 * SIZE(AO2)
kusano 2b45e8
	STFD	a15, 14 * SIZE(AO2)
kusano 2b45e8
	STFD	a16, 15 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	LFD	a13, 20 * SIZE(AO2)
kusano 2b45e8
	LFD	a14, 21 * SIZE(AO2)
kusano 2b45e8
	LFD	a15, 22 * SIZE(AO2)
kusano 2b45e8
	LFD	a16, 23 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	addi	AO1, AO1, 16 * SIZE
kusano 2b45e8
	addi	AO2, AO2, 16 * SIZE
kusano 2b45e8
	addi	X1,  X1,  16 * SIZE
kusano 2b45e8
kusano 2b45e8
	DCBT(AO1, PREA)
kusano 2b45e8
	DCBT(AO2, PREA)
kusano 2b45e8
	DCBT(Y1, PREY)
kusano 2b45e8
kusano 2b45e8
	bdnz+	LL(12)
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(13):
kusano 2b45e8
	FMADD	a1,  alpha1_r, y01, a1
kusano 2b45e8
	FMADD	a2,  alpha1_r, y02, a2
kusano 2b45e8
	FMADD	a3,  alpha1_r, y03, a3
kusano 2b45e8
	FMADD	a4,  alpha1_r, y04, a4
kusano 2b45e8
kusano 2b45e8
	FMADD	a5,  alpha1_r, y05, a5
kusano 2b45e8
	FMADD	a6,  alpha1_r, y06, a6
kusano 2b45e8
	FMADD	a7,  alpha1_r, y07, a7
kusano 2b45e8
	FMADD	a8,  alpha1_r, y08, a8
kusano 2b45e8
kusano 2b45e8
	FMADD	a9,  alpha2_r, y01, a9
kusano 2b45e8
	FMADD	a10, alpha2_r, y02, a10
kusano 2b45e8
	FMADD	a11, alpha2_r, y03, a11
kusano 2b45e8
	FMADD	a12, alpha2_r, y04, a12
kusano 2b45e8
kusano 2b45e8
	FMADD	a13, alpha2_r, y05, a13
kusano 2b45e8
	FMADD	a14, alpha2_r, y06, a14
kusano 2b45e8
	FMADD	a15, alpha2_r, y07, a15
kusano 2b45e8
	FMADD	a16, alpha2_r, y08, a16
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a1, alpha1_i, y02, a1
kusano 2b45e8
	FMADD	a2, alpha1_i, y01, a2
kusano 2b45e8
	FNMSUB	a3, alpha1_i, y04, a3
kusano 2b45e8
	FMADD	a4, alpha1_i, y03, a4
kusano 2b45e8
kusano 2b45e8
	STFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	STFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	STFD	a3,  2 * SIZE(AO1)
kusano 2b45e8
	STFD	a4,  3 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	LFD	a1,   8 * SIZE(AO1)
kusano 2b45e8
	LFD	a2,   9 * SIZE(AO1)
kusano 2b45e8
	LFD	a3,  10 * SIZE(AO1)
kusano 2b45e8
	LFD	a4,  11 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a5, alpha1_i, y06, a5
kusano 2b45e8
	FMADD	a6, alpha1_i, y05, a6
kusano 2b45e8
	FNMSUB	a7, alpha1_i, y08, a7
kusano 2b45e8
	FMADD	a8, alpha1_i, y07, a8
kusano 2b45e8
kusano 2b45e8
	STFD	a5,  4 * SIZE(AO1)
kusano 2b45e8
	STFD	a6,  5 * SIZE(AO1)
kusano 2b45e8
	STFD	a7,  6 * SIZE(AO1)
kusano 2b45e8
	STFD	a8,  7 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	LFD	a5,  12 * SIZE(AO1)
kusano 2b45e8
	LFD	a6,  13 * SIZE(AO1)
kusano 2b45e8
	LFD	a7,  14 * SIZE(AO1)
kusano 2b45e8
	LFD	a8,  15 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a9,  alpha2_i, y02, a9
kusano 2b45e8
	FMADD	a10, alpha2_i, y01, a10
kusano 2b45e8
	FNMSUB	a11, alpha2_i, y04, a11
kusano 2b45e8
	FMADD	a12, alpha2_i, y03, a12
kusano 2b45e8
kusano 2b45e8
 	LFD	y01,  8 * SIZE(X1)
kusano 2b45e8
	LFD	y02,  9 * SIZE(X1)
kusano 2b45e8
 	LFD	y03, 10 * SIZE(X1)
kusano 2b45e8
	LFD	y04, 11 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	STFD	a9,  0 * SIZE(AO2)
kusano 2b45e8
	STFD	a10, 1 * SIZE(AO2)
kusano 2b45e8
	STFD	a11, 2 * SIZE(AO2)
kusano 2b45e8
	STFD	a12, 3 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	LFD	a9,   8 * SIZE(AO2)
kusano 2b45e8
	LFD	a10,  9 * SIZE(AO2)
kusano 2b45e8
	LFD	a11, 10 * SIZE(AO2)
kusano 2b45e8
	LFD	a12, 11 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a13, alpha2_i, y06, a13
kusano 2b45e8
	FMADD	a14, alpha2_i, y05, a14
kusano 2b45e8
	FNMSUB	a15, alpha2_i, y08, a15
kusano 2b45e8
	FMADD	a16, alpha2_i, y07, a16
kusano 2b45e8
kusano 2b45e8
 	LFD	y05, 12 * SIZE(X1)
kusano 2b45e8
	LFD	y06, 13 * SIZE(X1)
kusano 2b45e8
 	LFD	y07, 14 * SIZE(X1)
kusano 2b45e8
	LFD	y08, 15 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	STFD	a13, 4 * SIZE(AO2)
kusano 2b45e8
	STFD	a14, 5 * SIZE(AO2)
kusano 2b45e8
	STFD	a15, 6 * SIZE(AO2)
kusano 2b45e8
	STFD	a16, 7 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	LFD	a13, 12 * SIZE(AO2)
kusano 2b45e8
	LFD	a14, 13 * SIZE(AO2)
kusano 2b45e8
	LFD	a15, 14 * SIZE(AO2)
kusano 2b45e8
	LFD	a16, 15 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	FMADD	a1,  alpha1_r, y01, a1
kusano 2b45e8
	FMADD	a2,  alpha1_r, y02, a2
kusano 2b45e8
	FMADD	a3,  alpha1_r, y03, a3
kusano 2b45e8
	FMADD	a4,  alpha1_r, y04, a4
kusano 2b45e8
kusano 2b45e8
	FMADD	a5,  alpha1_r, y05, a5
kusano 2b45e8
	FMADD	a6,  alpha1_r, y06, a6
kusano 2b45e8
	FMADD	a7,  alpha1_r, y07, a7
kusano 2b45e8
	FMADD	a8,  alpha1_r, y08, a8
kusano 2b45e8
kusano 2b45e8
	FMADD	a9,  alpha2_r, y01, a9
kusano 2b45e8
	FMADD	a10, alpha2_r, y02, a10
kusano 2b45e8
	FMADD	a11, alpha2_r, y03, a11
kusano 2b45e8
	FMADD	a12, alpha2_r, y04, a12
kusano 2b45e8
kusano 2b45e8
	FMADD	a13, alpha2_r, y05, a13
kusano 2b45e8
	FMADD	a14, alpha2_r, y06, a14
kusano 2b45e8
	FMADD	a15, alpha2_r, y07, a15
kusano 2b45e8
	FMADD	a16, alpha2_r, y08, a16
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a1, alpha1_i, y02, a1
kusano 2b45e8
	FMADD	a2, alpha1_i, y01, a2
kusano 2b45e8
	FNMSUB	a3, alpha1_i, y04, a3
kusano 2b45e8
	FMADD	a4, alpha1_i, y03, a4
kusano 2b45e8
kusano 2b45e8
	STFD	a1,   8 * SIZE(AO1)
kusano 2b45e8
	STFD	a2,   9 * SIZE(AO1)
kusano 2b45e8
	STFD	a3,  10 * SIZE(AO1)
kusano 2b45e8
	STFD	a4,  11 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a5, alpha1_i, y06, a5
kusano 2b45e8
	FMADD	a6, alpha1_i, y05, a6
kusano 2b45e8
	FNMSUB	a7, alpha1_i, y08, a7
kusano 2b45e8
	FMADD	a8, alpha1_i, y07, a8
kusano 2b45e8
kusano 2b45e8
	STFD	a5,  12 * SIZE(AO1)
kusano 2b45e8
	STFD	a6,  13 * SIZE(AO1)
kusano 2b45e8
	STFD	a7,  14 * SIZE(AO1)
kusano 2b45e8
	STFD	a8,  15 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a9,  alpha2_i, y02, a9
kusano 2b45e8
	FMADD	a10, alpha2_i, y01, a10
kusano 2b45e8
	FNMSUB	a11, alpha2_i, y04, a11
kusano 2b45e8
	FMADD	a12, alpha2_i, y03, a12
kusano 2b45e8
kusano 2b45e8
	STFD	a9,   8 * SIZE(AO2)
kusano 2b45e8
	STFD	a10,  9 * SIZE(AO2)
kusano 2b45e8
	STFD	a11, 10 * SIZE(AO2)
kusano 2b45e8
	STFD	a12, 11 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a13, alpha2_i, y06, a13
kusano 2b45e8
	FMADD	a14, alpha2_i, y05, a14
kusano 2b45e8
	FNMSUB	a15, alpha2_i, y08, a15
kusano 2b45e8
	FMADD	a16, alpha2_i, y07, a16
kusano 2b45e8
kusano 2b45e8
	STFD	a13, 12 * SIZE(AO2)
kusano 2b45e8
	STFD	a14, 13 * SIZE(AO2)
kusano 2b45e8
	STFD	a15, 14 * SIZE(AO2)
kusano 2b45e8
	STFD	a16, 15 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	addi	AO1, AO1, 16 * SIZE
kusano 2b45e8
	addi	AO2, AO2, 16 * SIZE
kusano 2b45e8
	addi	X1,  X1,  16 * SIZE
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(15):
kusano 2b45e8
	andi.	r0, M, 7
kusano 2b45e8
	ble	LL(19)
kusano 2b45e8
kusano 2b45e8
	andi.	r0, M, 4
kusano 2b45e8
	ble	LL(17)
kusano 2b45e8
kusano 2b45e8
	LFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	LFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	LFD	a3,  2 * SIZE(AO1)
kusano 2b45e8
	LFD	a4,  3 * SIZE(AO1)
kusano 2b45e8
	LFD	a5,  4 * SIZE(AO1)
kusano 2b45e8
	LFD	a6,  5 * SIZE(AO1)
kusano 2b45e8
	LFD	a7,  6 * SIZE(AO1)
kusano 2b45e8
	LFD	a8,  7 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
 	LFD	y01, 0 * SIZE(X1)
kusano 2b45e8
	LFD	y02, 1 * SIZE(X1)
kusano 2b45e8
 	LFD	y03, 2 * SIZE(X1)
kusano 2b45e8
	LFD	y04, 3 * SIZE(X1)
kusano 2b45e8
 	LFD	y05, 4 * SIZE(X1)
kusano 2b45e8
	LFD	y06, 5 * SIZE(X1)
kusano 2b45e8
 	LFD	y07, 6 * SIZE(X1)
kusano 2b45e8
	LFD	y08, 7 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	LFD	a9,  0 * SIZE(AO2)
kusano 2b45e8
	LFD	a10, 1 * SIZE(AO2)
kusano 2b45e8
	LFD	a11, 2 * SIZE(AO2)
kusano 2b45e8
	LFD	a12, 3 * SIZE(AO2)
kusano 2b45e8
	LFD	a13, 4 * SIZE(AO2)
kusano 2b45e8
	LFD	a14, 5 * SIZE(AO2)
kusano 2b45e8
	LFD	a15, 6 * SIZE(AO2)
kusano 2b45e8
	LFD	a16, 7 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	FMADD	a1,  alpha1_r, y01, a1
kusano 2b45e8
	FMADD	a2,  alpha1_r, y02, a2
kusano 2b45e8
	FMADD	a3,  alpha1_r, y03, a3
kusano 2b45e8
	FMADD	a4,  alpha1_r, y04, a4
kusano 2b45e8
kusano 2b45e8
	FMADD	a5,  alpha1_r, y05, a5
kusano 2b45e8
	FMADD	a6,  alpha1_r, y06, a6
kusano 2b45e8
	FMADD	a7,  alpha1_r, y07, a7
kusano 2b45e8
	FMADD	a8,  alpha1_r, y08, a8
kusano 2b45e8
kusano 2b45e8
	FMADD	a9,  alpha2_r, y01, a9
kusano 2b45e8
	FMADD	a10, alpha2_r, y02, a10
kusano 2b45e8
	FMADD	a11, alpha2_r, y03, a11
kusano 2b45e8
	FMADD	a12, alpha2_r, y04, a12
kusano 2b45e8
kusano 2b45e8
	FMADD	a13, alpha2_r, y05, a13
kusano 2b45e8
	FMADD	a14, alpha2_r, y06, a14
kusano 2b45e8
	FMADD	a15, alpha2_r, y07, a15
kusano 2b45e8
	FMADD	a16, alpha2_r, y08, a16
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a1, alpha1_i, y02, a1
kusano 2b45e8
	FMADD	a2, alpha1_i, y01, a2
kusano 2b45e8
	FNMSUB	a3, alpha1_i, y04, a3
kusano 2b45e8
	FMADD	a4, alpha1_i, y03, a4
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a5, alpha1_i, y06, a5
kusano 2b45e8
	FMADD	a6, alpha1_i, y05, a6
kusano 2b45e8
	FNMSUB	a7, alpha1_i, y08, a7
kusano 2b45e8
	FMADD	a8, alpha1_i, y07, a8
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a9,  alpha2_i, y02, a9
kusano 2b45e8
	FMADD	a10, alpha2_i, y01, a10
kusano 2b45e8
	FNMSUB	a11, alpha2_i, y04, a11
kusano 2b45e8
	FMADD	a12, alpha2_i, y03, a12
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a13, alpha2_i, y06, a13
kusano 2b45e8
	FMADD	a14, alpha2_i, y05, a14
kusano 2b45e8
	FNMSUB	a15, alpha2_i, y08, a15
kusano 2b45e8
	FMADD	a16, alpha2_i, y07, a16
kusano 2b45e8
kusano 2b45e8
	STFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	STFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	STFD	a3,  2 * SIZE(AO1)
kusano 2b45e8
	STFD	a4,  3 * SIZE(AO1)
kusano 2b45e8
	STFD	a5,  4 * SIZE(AO1)
kusano 2b45e8
	STFD	a6,  5 * SIZE(AO1)
kusano 2b45e8
	STFD	a7,  6 * SIZE(AO1)
kusano 2b45e8
	STFD	a8,  7 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	STFD	a9,  0 * SIZE(AO2)
kusano 2b45e8
	STFD	a10, 1 * SIZE(AO2)
kusano 2b45e8
	STFD	a11, 2 * SIZE(AO2)
kusano 2b45e8
	STFD	a12, 3 * SIZE(AO2)
kusano 2b45e8
	STFD	a13, 4 * SIZE(AO2)
kusano 2b45e8
	STFD	a14, 5 * SIZE(AO2)
kusano 2b45e8
	STFD	a15, 6 * SIZE(AO2)
kusano 2b45e8
	STFD	a16, 7 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	addi	AO1, AO1, 8 * SIZE
kusano 2b45e8
	addi	AO2, AO2, 8 * SIZE
kusano 2b45e8
	addi	X1,  X1,  8 * SIZE
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(17):
kusano 2b45e8
	andi.	r0, M, 2
kusano 2b45e8
	ble	LL(18)
kusano 2b45e8
kusano 2b45e8
	LFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	LFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	LFD	a3,  2 * SIZE(AO1)
kusano 2b45e8
	LFD	a4,  3 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
 	LFD	y01, 0 * SIZE(X1)
kusano 2b45e8
	LFD	y02, 1 * SIZE(X1)
kusano 2b45e8
 	LFD	y03, 2 * SIZE(X1)
kusano 2b45e8
	LFD	y04, 3 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	LFD	a5,  0 * SIZE(AO2)
kusano 2b45e8
	LFD	a6,  1 * SIZE(AO2)
kusano 2b45e8
	LFD	a7,  2 * SIZE(AO2)
kusano 2b45e8
	LFD	a8,  3 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	FMADD	a1, alpha1_r, y01, a1
kusano 2b45e8
	FMADD	a2, alpha1_r, y02, a2
kusano 2b45e8
	FMADD	a3, alpha1_r, y03, a3
kusano 2b45e8
	FMADD	a4, alpha1_r, y04, a4
kusano 2b45e8
kusano 2b45e8
	FMADD	a5, alpha2_r, y01, a5
kusano 2b45e8
	FMADD	a6, alpha2_r, y02, a6
kusano 2b45e8
	FMADD	a7, alpha2_r, y03, a7
kusano 2b45e8
	FMADD	a8, alpha2_r, y04, a8
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a1, alpha1_i, y02, a1
kusano 2b45e8
	FMADD	a2, alpha1_i, y01, a2
kusano 2b45e8
	FNMSUB	a3, alpha1_i, y04, a3
kusano 2b45e8
	FMADD	a4, alpha1_i, y03, a4
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a5, alpha2_i, y02, a5
kusano 2b45e8
	FMADD	a6, alpha2_i, y01, a6
kusano 2b45e8
	FNMSUB	a7, alpha2_i, y04, a7
kusano 2b45e8
	FMADD	a8, alpha2_i, y03, a8
kusano 2b45e8
kusano 2b45e8
	STFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	STFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	STFD	a3,  2 * SIZE(AO1)
kusano 2b45e8
	STFD	a4,  3 * SIZE(AO1)
kusano 2b45e8
	STFD	a5,  0 * SIZE(AO2)
kusano 2b45e8
	STFD	a6,  1 * SIZE(AO2)
kusano 2b45e8
	STFD	a7,  2 * SIZE(AO2)
kusano 2b45e8
	STFD	a8,  3 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	addi	AO1, AO1, 4 * SIZE
kusano 2b45e8
	addi	AO2, AO2, 4 * SIZE
kusano 2b45e8
	addi	X1,  X1,  4 * SIZE
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(18):
kusano 2b45e8
	andi.	r0, M, 1
kusano 2b45e8
	ble	LL(19)
kusano 2b45e8
kusano 2b45e8
	LFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	LFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	LFD	a3,  0 * SIZE(AO2)
kusano 2b45e8
	LFD	a4,  1 * SIZE(AO2)
kusano 2b45e8
kusano 2b45e8
	LFD	y01, 0 * SIZE(X1)
kusano 2b45e8
	LFD	y02, 1 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	FMADD	a1, alpha1_r, y01, a1
kusano 2b45e8
	FMADD	a2, alpha1_r, y02, a2
kusano 2b45e8
	FMADD	a3, alpha2_r, y01, a3
kusano 2b45e8
	FMADD	a4, alpha2_r, y02, a4
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a1, alpha1_i, y02, a1
kusano 2b45e8
	FMADD	a2, alpha1_i, y01, a2
kusano 2b45e8
	FNMSUB	a3, alpha2_i, y02, a3
kusano 2b45e8
	FMADD	a4, alpha2_i, y01, a4
kusano 2b45e8
kusano 2b45e8
	STFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	STFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	STFD	a3,  0 * SIZE(AO2)
kusano 2b45e8
	STFD	a4,  1 * SIZE(AO2)
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(19):
kusano 2b45e8
	addi	J, J, -1
kusano 2b45e8
	cmpi	cr0, 0, J, 0
kusano 2b45e8
	bgt	LL(11)
kusano 2b45e8
	.align 4
kusano 2b45e8
	
kusano 2b45e8
LL(20):
kusano 2b45e8
	andi.	J, N, 1
kusano 2b45e8
	ble	LL(999)
kusano 2b45e8
kusano 2b45e8
	LFD	alpha1_r, 0 * SIZE(Y)
kusano 2b45e8
	LFD	alpha1_i, 1 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	FMUL	a1, alpha_r, alpha1_r
kusano 2b45e8
	FMUL	a2, alpha_i, alpha1_r
kusano 2b45e8
kusano 2b45e8
	FMA1	alpha1_r, alpha_i, alpha1_i, a1
kusano 2b45e8
	FMA2	alpha1_i, alpha_r, alpha1_i, a2
kusano 2b45e8
kusano 2b45e8
	mr	AO1, A
kusano 2b45e8
kusano 2b45e8
	mr	X1, XX
kusano 2b45e8
kusano 2b45e8
	srawi.	r0,  M, 3
kusano 2b45e8
	mtspr	CTR, r0
kusano 2b45e8
	ble	LL(25)
kusano 2b45e8
kusano 2b45e8
	LFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	LFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	LFD	a3,  2 * SIZE(AO1)
kusano 2b45e8
	LFD	a4,  3 * SIZE(AO1)
kusano 2b45e8
	LFD	a5,  4 * SIZE(AO1)
kusano 2b45e8
	LFD	a6,  5 * SIZE(AO1)
kusano 2b45e8
	LFD	a7,  6 * SIZE(AO1)
kusano 2b45e8
	LFD	a8,  7 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
 	LFD	y01, 0 * SIZE(X1)
kusano 2b45e8
	LFD	y02, 1 * SIZE(X1)
kusano 2b45e8
 	LFD	y03, 2 * SIZE(X1)
kusano 2b45e8
	LFD	y04, 3 * SIZE(X1)
kusano 2b45e8
 	LFD	y05, 4 * SIZE(X1)
kusano 2b45e8
	LFD	y06, 5 * SIZE(X1)
kusano 2b45e8
 	LFD	y07, 6 * SIZE(X1)
kusano 2b45e8
	LFD	y08, 7 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	bdz	LL(23)
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(22):
kusano 2b45e8
	FMADD	a1,  alpha1_r, y01, a1
kusano 2b45e8
	FMADD	a2,  alpha1_r, y02, a2
kusano 2b45e8
	FMADD	a3,  alpha1_r, y03, a3
kusano 2b45e8
	FMADD	a4,  alpha1_r, y04, a4
kusano 2b45e8
kusano 2b45e8
	FMADD	a5,  alpha1_r, y05, a5
kusano 2b45e8
	FMADD	a6,  alpha1_r, y06, a6
kusano 2b45e8
	FMADD	a7,  alpha1_r, y07, a7
kusano 2b45e8
	FMADD	a8,  alpha1_r, y08, a8
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a1, alpha1_i, y02, a1
kusano 2b45e8
	FMADD	a2, alpha1_i, y01, a2
kusano 2b45e8
	FNMSUB	a3, alpha1_i, y04, a3
kusano 2b45e8
	FMADD	a4, alpha1_i, y03, a4
kusano 2b45e8
kusano 2b45e8
	STFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	STFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	STFD	a3,  2 * SIZE(AO1)
kusano 2b45e8
	STFD	a4,  3 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	LFD	a1,   8 * SIZE(AO1)
kusano 2b45e8
	LFD	a2,   9 * SIZE(AO1)
kusano 2b45e8
	LFD	a3,  10 * SIZE(AO1)
kusano 2b45e8
	LFD	a4,  11 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a5, alpha1_i, y06, a5
kusano 2b45e8
	FMADD	a6, alpha1_i, y05, a6
kusano 2b45e8
	FNMSUB	a7, alpha1_i, y08, a7
kusano 2b45e8
	FMADD	a8, alpha1_i, y07, a8
kusano 2b45e8
kusano 2b45e8
	STFD	a5,  4 * SIZE(AO1)
kusano 2b45e8
	STFD	a6,  5 * SIZE(AO1)
kusano 2b45e8
	STFD	a7,  6 * SIZE(AO1)
kusano 2b45e8
	STFD	a8,  7 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	LFD	a5,  12 * SIZE(AO1)
kusano 2b45e8
	LFD	a6,  13 * SIZE(AO1)
kusano 2b45e8
	LFD	a7,  14 * SIZE(AO1)
kusano 2b45e8
	LFD	a8,  15 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
 	LFD	y01,  8 * SIZE(X1)
kusano 2b45e8
	LFD	y02,  9 * SIZE(X1)
kusano 2b45e8
 	LFD	y03, 10 * SIZE(X1)
kusano 2b45e8
	LFD	y04, 11 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
 	LFD	y05, 12 * SIZE(X1)
kusano 2b45e8
	LFD	y06, 13 * SIZE(X1)
kusano 2b45e8
 	LFD	y07, 14 * SIZE(X1)
kusano 2b45e8
	LFD	y08, 15 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	FMADD	a1,  alpha1_r, y01, a1
kusano 2b45e8
	FMADD	a2,  alpha1_r, y02, a2
kusano 2b45e8
	FMADD	a3,  alpha1_r, y03, a3
kusano 2b45e8
	FMADD	a4,  alpha1_r, y04, a4
kusano 2b45e8
kusano 2b45e8
	FMADD	a5,  alpha1_r, y05, a5
kusano 2b45e8
	FMADD	a6,  alpha1_r, y06, a6
kusano 2b45e8
	FMADD	a7,  alpha1_r, y07, a7
kusano 2b45e8
	FMADD	a8,  alpha1_r, y08, a8
kusano 2b45e8
kusano 2b45e8
	FMADD	a9,  alpha2_r, y01, a9
kusano 2b45e8
	FMADD	a10, alpha2_r, y02, a10
kusano 2b45e8
	FMADD	a11, alpha2_r, y03, a11
kusano 2b45e8
	FMADD	a12, alpha2_r, y04, a12
kusano 2b45e8
kusano 2b45e8
	FMADD	a13, alpha2_r, y05, a13
kusano 2b45e8
	FMADD	a14, alpha2_r, y06, a14
kusano 2b45e8
	FMADD	a15, alpha2_r, y07, a15
kusano 2b45e8
	FMADD	a16, alpha2_r, y08, a16
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a1, alpha1_i, y02, a1
kusano 2b45e8
	FMADD	a2, alpha1_i, y01, a2
kusano 2b45e8
	FNMSUB	a3, alpha1_i, y04, a3
kusano 2b45e8
	FMADD	a4, alpha1_i, y03, a4
kusano 2b45e8
kusano 2b45e8
	STFD	a1,   8 * SIZE(AO1)
kusano 2b45e8
	STFD	a2,   9 * SIZE(AO1)
kusano 2b45e8
	STFD	a3,  10 * SIZE(AO1)
kusano 2b45e8
	STFD	a4,  11 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	LFD	a1,  16 * SIZE(AO1)
kusano 2b45e8
	LFD	a2,  17 * SIZE(AO1)
kusano 2b45e8
	LFD	a3,  18 * SIZE(AO1)
kusano 2b45e8
	LFD	a4,  19 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a5, alpha1_i, y06, a5
kusano 2b45e8
	FMADD	a6, alpha1_i, y05, a6
kusano 2b45e8
	FNMSUB	a7, alpha1_i, y08, a7
kusano 2b45e8
	FMADD	a8, alpha1_i, y07, a8
kusano 2b45e8
kusano 2b45e8
	STFD	a5,  12 * SIZE(AO1)
kusano 2b45e8
	STFD	a6,  13 * SIZE(AO1)
kusano 2b45e8
	STFD	a7,  14 * SIZE(AO1)
kusano 2b45e8
	STFD	a8,  15 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	LFD	a5,  20 * SIZE(AO1)
kusano 2b45e8
	LFD	a6,  21 * SIZE(AO1)
kusano 2b45e8
	LFD	a7,  22 * SIZE(AO1)
kusano 2b45e8
	LFD	a8,  23 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
 	LFD	y01, 16 * SIZE(X1)
kusano 2b45e8
	LFD	y02, 17 * SIZE(X1)
kusano 2b45e8
 	LFD	y03, 18 * SIZE(X1)
kusano 2b45e8
	LFD	y04, 19 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
 	LFD	y05, 20 * SIZE(X1)
kusano 2b45e8
	LFD	y06, 21 * SIZE(X1)
kusano 2b45e8
 	LFD	y07, 22 * SIZE(X1)
kusano 2b45e8
	LFD	y08, 23 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	addi	AO1, AO1, 16 * SIZE
kusano 2b45e8
	addi	X1,  X1,  16 * SIZE
kusano 2b45e8
kusano 2b45e8
	DCBT(AO1, PREA)
kusano 2b45e8
	DCBT(Y1, PREY)
kusano 2b45e8
kusano 2b45e8
	bdnz+	LL(22)
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(23):
kusano 2b45e8
	FMADD	a1,  alpha1_r, y01, a1
kusano 2b45e8
	FMADD	a2,  alpha1_r, y02, a2
kusano 2b45e8
	FMADD	a3,  alpha1_r, y03, a3
kusano 2b45e8
	FMADD	a4,  alpha1_r, y04, a4
kusano 2b45e8
kusano 2b45e8
	FMADD	a5,  alpha1_r, y05, a5
kusano 2b45e8
	FMADD	a6,  alpha1_r, y06, a6
kusano 2b45e8
	FMADD	a7,  alpha1_r, y07, a7
kusano 2b45e8
	FMADD	a8,  alpha1_r, y08, a8
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a1, alpha1_i, y02, a1
kusano 2b45e8
	FMADD	a2, alpha1_i, y01, a2
kusano 2b45e8
	FNMSUB	a3, alpha1_i, y04, a3
kusano 2b45e8
	FMADD	a4, alpha1_i, y03, a4
kusano 2b45e8
kusano 2b45e8
	STFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	STFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	STFD	a3,  2 * SIZE(AO1)
kusano 2b45e8
	STFD	a4,  3 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	LFD	a1,   8 * SIZE(AO1)
kusano 2b45e8
	LFD	a2,   9 * SIZE(AO1)
kusano 2b45e8
	LFD	a3,  10 * SIZE(AO1)
kusano 2b45e8
	LFD	a4,  11 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a5, alpha1_i, y06, a5
kusano 2b45e8
	FMADD	a6, alpha1_i, y05, a6
kusano 2b45e8
	FNMSUB	a7, alpha1_i, y08, a7
kusano 2b45e8
	FMADD	a8, alpha1_i, y07, a8
kusano 2b45e8
kusano 2b45e8
	STFD	a5,  4 * SIZE(AO1)
kusano 2b45e8
	STFD	a6,  5 * SIZE(AO1)
kusano 2b45e8
	STFD	a7,  6 * SIZE(AO1)
kusano 2b45e8
	STFD	a8,  7 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	LFD	a5,  12 * SIZE(AO1)
kusano 2b45e8
	LFD	a6,  13 * SIZE(AO1)
kusano 2b45e8
	LFD	a7,  14 * SIZE(AO1)
kusano 2b45e8
	LFD	a8,  15 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
 	LFD	y01,  8 * SIZE(X1)
kusano 2b45e8
	LFD	y02,  9 * SIZE(X1)
kusano 2b45e8
 	LFD	y03, 10 * SIZE(X1)
kusano 2b45e8
	LFD	y04, 11 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
 	LFD	y05, 12 * SIZE(X1)
kusano 2b45e8
	LFD	y06, 13 * SIZE(X1)
kusano 2b45e8
 	LFD	y07, 14 * SIZE(X1)
kusano 2b45e8
	LFD	y08, 15 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	FMADD	a1,  alpha1_r, y01, a1
kusano 2b45e8
	FMADD	a2,  alpha1_r, y02, a2
kusano 2b45e8
	FMADD	a3,  alpha1_r, y03, a3
kusano 2b45e8
	FMADD	a4,  alpha1_r, y04, a4
kusano 2b45e8
kusano 2b45e8
	FMADD	a5,  alpha1_r, y05, a5
kusano 2b45e8
	FMADD	a6,  alpha1_r, y06, a6
kusano 2b45e8
	FMADD	a7,  alpha1_r, y07, a7
kusano 2b45e8
	FMADD	a8,  alpha1_r, y08, a8
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a1, alpha1_i, y02, a1
kusano 2b45e8
	FMADD	a2, alpha1_i, y01, a2
kusano 2b45e8
	FNMSUB	a3, alpha1_i, y04, a3
kusano 2b45e8
	FMADD	a4, alpha1_i, y03, a4
kusano 2b45e8
kusano 2b45e8
	STFD	a1,   8 * SIZE(AO1)
kusano 2b45e8
	STFD	a2,   9 * SIZE(AO1)
kusano 2b45e8
	STFD	a3,  10 * SIZE(AO1)
kusano 2b45e8
	STFD	a4,  11 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a5, alpha1_i, y06, a5
kusano 2b45e8
	FMADD	a6, alpha1_i, y05, a6
kusano 2b45e8
	FNMSUB	a7, alpha1_i, y08, a7
kusano 2b45e8
	FMADD	a8, alpha1_i, y07, a8
kusano 2b45e8
kusano 2b45e8
	STFD	a5,  12 * SIZE(AO1)
kusano 2b45e8
	STFD	a6,  13 * SIZE(AO1)
kusano 2b45e8
	STFD	a7,  14 * SIZE(AO1)
kusano 2b45e8
	STFD	a8,  15 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	addi	AO1, AO1, 16 * SIZE
kusano 2b45e8
	addi	X1,  X1,  16 * SIZE
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(25):
kusano 2b45e8
	andi.	r0, M, 7
kusano 2b45e8
	ble	LL(999)
kusano 2b45e8
kusano 2b45e8
	andi.	r0, M, 4
kusano 2b45e8
	ble	LL(27)
kusano 2b45e8
kusano 2b45e8
	LFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	LFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	LFD	a3,  2 * SIZE(AO1)
kusano 2b45e8
	LFD	a4,  3 * SIZE(AO1)
kusano 2b45e8
	LFD	a5,  4 * SIZE(AO1)
kusano 2b45e8
	LFD	a6,  5 * SIZE(AO1)
kusano 2b45e8
	LFD	a7,  6 * SIZE(AO1)
kusano 2b45e8
	LFD	a8,  7 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
 	LFD	y01, 0 * SIZE(X1)
kusano 2b45e8
	LFD	y02, 1 * SIZE(X1)
kusano 2b45e8
 	LFD	y03, 2 * SIZE(X1)
kusano 2b45e8
	LFD	y04, 3 * SIZE(X1)
kusano 2b45e8
 	LFD	y05, 4 * SIZE(X1)
kusano 2b45e8
	LFD	y06, 5 * SIZE(X1)
kusano 2b45e8
 	LFD	y07, 6 * SIZE(X1)
kusano 2b45e8
	LFD	y08, 7 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	FMADD	a1,  alpha1_r, y01, a1
kusano 2b45e8
	FMADD	a2,  alpha1_r, y02, a2
kusano 2b45e8
	FMADD	a3,  alpha1_r, y03, a3
kusano 2b45e8
	FMADD	a4,  alpha1_r, y04, a4
kusano 2b45e8
kusano 2b45e8
	FMADD	a5,  alpha1_r, y05, a5
kusano 2b45e8
	FMADD	a6,  alpha1_r, y06, a6
kusano 2b45e8
	FMADD	a7,  alpha1_r, y07, a7
kusano 2b45e8
	FMADD	a8,  alpha1_r, y08, a8
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a1, alpha1_i, y02, a1
kusano 2b45e8
	FMADD	a2, alpha1_i, y01, a2
kusano 2b45e8
	FNMSUB	a3, alpha1_i, y04, a3
kusano 2b45e8
	FMADD	a4, alpha1_i, y03, a4
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a5, alpha1_i, y06, a5
kusano 2b45e8
	FMADD	a6, alpha1_i, y05, a6
kusano 2b45e8
	FNMSUB	a7, alpha1_i, y08, a7
kusano 2b45e8
	FMADD	a8, alpha1_i, y07, a8
kusano 2b45e8
kusano 2b45e8
	STFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	STFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	STFD	a3,  2 * SIZE(AO1)
kusano 2b45e8
	STFD	a4,  3 * SIZE(AO1)
kusano 2b45e8
	STFD	a5,  4 * SIZE(AO1)
kusano 2b45e8
	STFD	a6,  5 * SIZE(AO1)
kusano 2b45e8
	STFD	a7,  6 * SIZE(AO1)
kusano 2b45e8
	STFD	a8,  7 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	addi	AO1, AO1, 8 * SIZE
kusano 2b45e8
	addi	X1,  X1,  8 * SIZE
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(27):
kusano 2b45e8
	andi.	r0, M, 2
kusano 2b45e8
	ble	LL(28)
kusano 2b45e8
kusano 2b45e8
	LFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	LFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	LFD	a3,  2 * SIZE(AO1)
kusano 2b45e8
	LFD	a4,  3 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
 	LFD	y01, 0 * SIZE(X1)
kusano 2b45e8
	LFD	y02, 1 * SIZE(X1)
kusano 2b45e8
 	LFD	y03, 2 * SIZE(X1)
kusano 2b45e8
	LFD	y04, 3 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	FMADD	a1, alpha1_r, y01, a1
kusano 2b45e8
	FMADD	a2, alpha1_r, y02, a2
kusano 2b45e8
	FMADD	a3, alpha1_r, y03, a3
kusano 2b45e8
	FMADD	a4, alpha1_r, y04, a4
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a1, alpha1_i, y02, a1
kusano 2b45e8
	FMADD	a2, alpha1_i, y01, a2
kusano 2b45e8
	FNMSUB	a3, alpha1_i, y04, a3
kusano 2b45e8
	FMADD	a4, alpha1_i, y03, a4
kusano 2b45e8
kusano 2b45e8
	STFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	STFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	STFD	a3,  2 * SIZE(AO1)
kusano 2b45e8
	STFD	a4,  3 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	addi	AO1, AO1, 4 * SIZE
kusano 2b45e8
	addi	X1,  X1,  4 * SIZE
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(28):
kusano 2b45e8
	andi.	r0, M, 1
kusano 2b45e8
	ble	LL(999)
kusano 2b45e8
kusano 2b45e8
	LFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	LFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
kusano 2b45e8
	LFD	y01, 0 * SIZE(X1)
kusano 2b45e8
	LFD	y02, 1 * SIZE(X1)
kusano 2b45e8
kusano 2b45e8
	FMADD	a1, alpha1_r, y01, a1
kusano 2b45e8
	FMADD	a2, alpha1_r, y02, a2
kusano 2b45e8
kusano 2b45e8
	FNMSUB	a1, alpha1_i, y02, a1
kusano 2b45e8
	FMADD	a2, alpha1_i, y01, a2
kusano 2b45e8
kusano 2b45e8
	STFD	a1,  0 * SIZE(AO1)
kusano 2b45e8
	STFD	a2,  1 * SIZE(AO1)
kusano 2b45e8
	.align 4
kusano 2b45e8
kusano 2b45e8
LL(999):
kusano 2b45e8
	li	r3, 0
kusano 2b45e8
kusano 2b45e8
	lfd	f14,     0(SP)
kusano 2b45e8
	lfd	f15,     8(SP)
kusano 2b45e8
	lfd	f16,    16(SP)
kusano 2b45e8
	lfd	f17,    24(SP)
kusano 2b45e8
	lfd	f18,    32(SP)
kusano 2b45e8
	lfd	f19,    40(SP)
kusano 2b45e8
	lfd	f20,    48(SP)
kusano 2b45e8
	lfd	f21,    56(SP)
kusano 2b45e8
	lfd	f22,    64(SP)
kusano 2b45e8
	lfd	f23,    72(SP)
kusano 2b45e8
	lfd	f24,    80(SP)
kusano 2b45e8
	lfd	f25,    88(SP)
kusano 2b45e8
	lfd	f26,    96(SP)
kusano 2b45e8
	lfd	f27,   104(SP)
kusano 2b45e8
	lfd	f28,   112(SP)
kusano 2b45e8
	lfd	f29,   120(SP)
kusano 2b45e8
	lfd	f30,   128(SP)
kusano 2b45e8
	lfd	f31,   136(SP)
kusano 2b45e8
kusano 2b45e8
#ifdef __64BIT__
kusano 2b45e8
	ld	r14,   144(SP)
kusano 2b45e8
	ld	r15,   152(SP)
kusano 2b45e8
	ld	r16,   160(SP)
kusano 2b45e8
	ld	r17,   168(SP)
kusano 2b45e8
	ld	r18,   176(SP)
kusano 2b45e8
	ld	r19,   184(SP)
kusano 2b45e8
	ld	r20,   192(SP)
kusano 2b45e8
	ld	r21,   200(SP)
kusano 2b45e8
	ld	r22,   208(SP)
kusano 2b45e8
	ld	r23,   216(SP)
kusano 2b45e8
	ld	r24,   224(SP)
kusano 2b45e8
	ld	r25,   232(SP)
kusano 2b45e8
	ld	r26,   240(SP)
kusano 2b45e8
	ld	r27,   248(SP)
kusano 2b45e8
#else
kusano 2b45e8
	lwz	r14,   144(SP)
kusano 2b45e8
	lwz	r15,   148(SP)
kusano 2b45e8
	lwz	r16,   152(SP)
kusano 2b45e8
	lwz	r17,   156(SP)
kusano 2b45e8
	lwz	r18,   160(SP)
kusano 2b45e8
	lwz	r19,   164(SP)
kusano 2b45e8
	lwz	r20,   168(SP)
kusano 2b45e8
	lwz	r21,   172(SP)
kusano 2b45e8
	lwz	r22,   176(SP)
kusano 2b45e8
	lwz	r23,   180(SP)
kusano 2b45e8
	lwz	r24,   184(SP)
kusano 2b45e8
	lwz	r25,   188(SP)
kusano 2b45e8
	lwz	r26,   192(SP)
kusano 2b45e8
	lwz	r27,   196(SP)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	addi	SP, SP, STACKSIZE
kusano 2b45e8
	blr
kusano 2b45e8
kusano 2b45e8
	EPILOGUE
kusano 2b45e8
#endif