kusano 2b45e8
/*********************************************************************/
kusano 2b45e8
/* Copyright 2009, 2010 The University of Texas at Austin.           */
kusano 2b45e8
/* All rights reserved.                                              */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/* Redistribution and use in source and binary forms, with or        */
kusano 2b45e8
/* without modification, are permitted provided that the following   */
kusano 2b45e8
/* conditions are met:                                               */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/*   1. Redistributions of source code must retain the above         */
kusano 2b45e8
/*      copyright notice, this list of conditions and the following  */
kusano 2b45e8
/*      disclaimer.                                                  */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/*   2. Redistributions in binary form must reproduce the above      */
kusano 2b45e8
/*      copyright notice, this list of conditions and the following  */
kusano 2b45e8
/*      disclaimer in the documentation and/or other materials       */
kusano 2b45e8
/*      provided with the distribution.                              */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/*    THIS  SOFTWARE IS PROVIDED  BY THE  UNIVERSITY OF  TEXAS AT    */
kusano 2b45e8
/*    AUSTIN  ``AS IS''  AND ANY  EXPRESS OR  IMPLIED WARRANTIES,    */
kusano 2b45e8
/*    INCLUDING, BUT  NOT LIMITED  TO, THE IMPLIED  WARRANTIES OF    */
kusano 2b45e8
/*    MERCHANTABILITY  AND FITNESS FOR  A PARTICULAR  PURPOSE ARE    */
kusano 2b45e8
/*    DISCLAIMED.  IN  NO EVENT SHALL THE UNIVERSITY  OF TEXAS AT    */
kusano 2b45e8
/*    AUSTIN OR CONTRIBUTORS BE  LIABLE FOR ANY DIRECT, INDIRECT,    */
kusano 2b45e8
/*    INCIDENTAL,  SPECIAL, EXEMPLARY,  OR  CONSEQUENTIAL DAMAGES    */
kusano 2b45e8
/*    (INCLUDING, BUT  NOT LIMITED TO,  PROCUREMENT OF SUBSTITUTE    */
kusano 2b45e8
/*    GOODS  OR  SERVICES; LOSS  OF  USE,  DATA,  OR PROFITS;  OR    */
kusano 2b45e8
/*    BUSINESS INTERRUPTION) HOWEVER CAUSED  AND ON ANY THEORY OF    */
kusano 2b45e8
/*    LIABILITY, WHETHER  IN CONTRACT, STRICT  LIABILITY, OR TORT    */
kusano 2b45e8
/*    (INCLUDING NEGLIGENCE OR OTHERWISE)  ARISING IN ANY WAY OUT    */
kusano 2b45e8
/*    OF  THE  USE OF  THIS  SOFTWARE,  EVEN  IF ADVISED  OF  THE    */
kusano 2b45e8
/*    POSSIBILITY OF SUCH DAMAGE.                                    */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/* The views and conclusions contained in the software and           */
kusano 2b45e8
/* documentation are those of the authors and should not be          */
kusano 2b45e8
/* interpreted as representing official policies, either expressed   */
kusano 2b45e8
/* or implied, of The University of Texas at Austin.                 */
kusano 2b45e8
/*********************************************************************/
kusano 2b45e8
kusano 2b45e8
#define ASSEMBLER
kusano 2b45e8
#include "common.h"
kusano 2b45e8
kusano 2b45e8
#define N	$4
kusano 2b45e8
kusano 2b45e8
#define X	$9
kusano 2b45e8
#define INCX	$10
kusano 2b45e8
#define Y	$11
kusano 2b45e8
#define INCY	$8
kusano 2b45e8
kusano 2b45e8
#define I	$2
kusano 2b45e8
#define TEMP	$3
kusano 2b45e8
kusano 2b45e8
#define YY	$5
kusano 2b45e8
kusano 2b45e8
#define ALPHA_R	$f15
kusano 2b45e8
#define ALPHA_I	$f16
kusano 2b45e8
kusano 2b45e8
#define a1	$f0
kusano 2b45e8
#define a2	$f1
kusano 2b45e8
#define a3	$f2
kusano 2b45e8
#define a4	$f3
kusano 2b45e8
#define a5	$f4
kusano 2b45e8
#define a6	$f5
kusano 2b45e8
#define a7	$f6
kusano 2b45e8
#define a8	$f7
kusano 2b45e8
kusano 2b45e8
#define b1	$f8
kusano 2b45e8
#define b2	$f9
kusano 2b45e8
#define b3	$f10
kusano 2b45e8
#define b4	$f11
kusano 2b45e8
#define b5	$f12
kusano 2b45e8
#define b6	$f13
kusano 2b45e8
#define b7	$f14
kusano 2b45e8
#define b8	$f17
kusano 2b45e8
kusano 2b45e8
#define t1	$f18
kusano 2b45e8
#define t2	$f19
kusano 2b45e8
#define t3	$f20
kusano 2b45e8
#define t4	$f21
kusano 2b45e8
kusano 2b45e8
#ifndef CONJ
kusano 2b45e8
#define MADD1	NMSUB
kusano 2b45e8
#define MADD2	MADD
kusano 2b45e8
#else
kusano 2b45e8
#define MADD1	MADD
kusano 2b45e8
#define MADD2	NMSUB
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	PROLOGUE
kusano 2b45e8
	
kusano 2b45e8
	LDARG	INCY, 0($sp)
kusano 2b45e8
	li	TEMP, 2 * SIZE
kusano 2b45e8
kusano 2b45e8
#ifndef __64BIT__
kusano 2b45e8
	daddiu	$sp, $sp, -16
kusano 2b45e8
	sdc1	$f20, 0($sp)
kusano 2b45e8
	sdc1	$f21, 8($sp)
kusano 2b45e8
#endif
kusano 2b45e8
	
kusano 2b45e8
	blez	N, .L999
kusano 2b45e8
	dsll	INCX, INCX, ZBASE_SHIFT
kusano 2b45e8
kusano 2b45e8
	bne	INCX, TEMP, .L20
kusano 2b45e8
	dsll	INCY, INCY, ZBASE_SHIFT
kusano 2b45e8
kusano 2b45e8
	bne	INCY, TEMP, .L20
kusano 2b45e8
	dsra	I, N, 2
kusano 2b45e8
kusano 2b45e8
	blez	I, .L15
kusano 2b45e8
	daddiu	I, I, -1
kusano 2b45e8
kusano 2b45e8
	LD	a1,  0 * SIZE(X)
kusano 2b45e8
	LD	b1,  0 * SIZE(Y)
kusano 2b45e8
	LD	a2,  1 * SIZE(X)
kusano 2b45e8
	LD	b2,  1 * SIZE(Y)
kusano 2b45e8
	LD	a3,  2 * SIZE(X)
kusano 2b45e8
	LD	b3,  2 * SIZE(Y)
kusano 2b45e8
	LD	a4,  3 * SIZE(X)
kusano 2b45e8
	LD	b4,  3 * SIZE(Y)
kusano 2b45e8
	LD	a5,  4 * SIZE(X)
kusano 2b45e8
	LD	b5,  4 * SIZE(Y)
kusano 2b45e8
	LD	a6,  5 * SIZE(X)
kusano 2b45e8
	LD	b6,  5 * SIZE(Y)
kusano 2b45e8
	LD	a7,  6 * SIZE(X)
kusano 2b45e8
	LD	b7,  6 * SIZE(Y)
kusano 2b45e8
	LD	a8,  7 * SIZE(X)
kusano 2b45e8
	LD	b8,  7 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	blez	I, .L13
kusano 2b45e8
	NOP
kusano 2b45e8
	.align 3
kusano 2b45e8
kusano 2b45e8
.L12:
kusano 2b45e8
	MADD	t1, b1, ALPHA_R, a1
kusano 2b45e8
	LD	b1,  8 * SIZE(Y)
kusano 2b45e8
	MADD	t2, b2, ALPHA_I, a1
kusano 2b45e8
	LD	a1,  8 * SIZE(X)
kusano 2b45e8
	MADD	t3, b3, ALPHA_R, a3
kusano 2b45e8
	LD	b3, 10 * SIZE(Y)
kusano 2b45e8
	MADD	t4, b4, ALPHA_I, a3
kusano 2b45e8
	LD	a3, 10 * SIZE(X)
kusano 2b45e8
kusano 2b45e8
	MADD1	t1, t1, ALPHA_I, a2
kusano 2b45e8
	LD	b2,  9 * SIZE(Y)
kusano 2b45e8
	MADD2	t2, t2, ALPHA_R, a2
kusano 2b45e8
	LD	a2,  9 * SIZE(X)
kusano 2b45e8
	MADD1	t3, t3, ALPHA_I, a4
kusano 2b45e8
	LD	b4, 11 * SIZE(Y)
kusano 2b45e8
	MADD2	t4, t4, ALPHA_R, a4
kusano 2b45e8
	LD	a4, 11 * SIZE(X)
kusano 2b45e8
kusano 2b45e8
	ST	t1,  0 * SIZE(Y)
kusano 2b45e8
	ST	t2,  1 * SIZE(Y)
kusano 2b45e8
	ST	t3,  2 * SIZE(Y)
kusano 2b45e8
	ST	t4,  3 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	MADD	t1, b5, ALPHA_R, a5
kusano 2b45e8
	LD	b5, 12 * SIZE(Y)
kusano 2b45e8
	MADD	t2, b6, ALPHA_I, a5
kusano 2b45e8
	LD	a5, 12 * SIZE(X)
kusano 2b45e8
	MADD	t3, b7, ALPHA_R, a7
kusano 2b45e8
	LD	b7, 14 * SIZE(Y)
kusano 2b45e8
	MADD	t4, b8, ALPHA_I, a7
kusano 2b45e8
	LD	a7, 14 * SIZE(X)
kusano 2b45e8
kusano 2b45e8
	MADD1	t1, t1, ALPHA_I, a6
kusano 2b45e8
	LD	b6, 13 * SIZE(Y)
kusano 2b45e8
	MADD2	t2, t2, ALPHA_R, a6
kusano 2b45e8
	LD	a6, 13 * SIZE(X)
kusano 2b45e8
	MADD1	t3, t3, ALPHA_I, a8
kusano 2b45e8
	LD	b8, 15 * SIZE(Y)
kusano 2b45e8
	MADD2	t4, t4, ALPHA_R, a8
kusano 2b45e8
	LD	a8, 15 * SIZE(X)
kusano 2b45e8
kusano 2b45e8
	ST	t1,  4 * SIZE(Y)
kusano 2b45e8
	ST	t2,  5 * SIZE(Y)
kusano 2b45e8
	ST	t3,  6 * SIZE(Y)
kusano 2b45e8
	ST	t4,  7 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	daddiu	I, I, -1
kusano 2b45e8
	daddiu	Y, Y, 8 * SIZE
kusano 2b45e8
kusano 2b45e8
	bgtz	I, .L12
kusano 2b45e8
	daddiu	X, X, 8 * SIZE
kusano 2b45e8
	.align 3
kusano 2b45e8
kusano 2b45e8
.L13:
kusano 2b45e8
	MADD	t1, b1, ALPHA_R, a1
kusano 2b45e8
	MADD	t2, b2, ALPHA_I, a1
kusano 2b45e8
	MADD	t3, b3, ALPHA_R, a3
kusano 2b45e8
	MADD	t4, b4, ALPHA_I, a3
kusano 2b45e8
kusano 2b45e8
	MADD1	t1, t1, ALPHA_I, a2
kusano 2b45e8
	MADD2	t2, t2, ALPHA_R, a2
kusano 2b45e8
	MADD1	t3, t3, ALPHA_I, a4
kusano 2b45e8
	MADD2	t4, t4, ALPHA_R, a4
kusano 2b45e8
kusano 2b45e8
	ST	t1,  0 * SIZE(Y)
kusano 2b45e8
	MADD	t1, b5, ALPHA_R, a5
kusano 2b45e8
	ST	t2,  1 * SIZE(Y)
kusano 2b45e8
	MADD	t2, b6, ALPHA_I, a5
kusano 2b45e8
	ST	t3,  2 * SIZE(Y)
kusano 2b45e8
	MADD	t3, b7, ALPHA_R, a7
kusano 2b45e8
	ST	t4,  3 * SIZE(Y)
kusano 2b45e8
	MADD	t4, b8, ALPHA_I, a7
kusano 2b45e8
kusano 2b45e8
	MADD1	t1, t1, ALPHA_I, a6
kusano 2b45e8
	MADD2	t2, t2, ALPHA_R, a6
kusano 2b45e8
	MADD1	t3, t3, ALPHA_I, a8
kusano 2b45e8
	MADD2	t4, t4, ALPHA_R, a8
kusano 2b45e8
kusano 2b45e8
	ST	t1,  4 * SIZE(Y)
kusano 2b45e8
	ST	t2,  5 * SIZE(Y)
kusano 2b45e8
	ST	t3,  6 * SIZE(Y)
kusano 2b45e8
	ST	t4,  7 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	daddiu	X, X, 8 * SIZE
kusano 2b45e8
	daddiu	Y, Y, 8 * SIZE
kusano 2b45e8
	.align 3
kusano 2b45e8
kusano 2b45e8
.L15:
kusano 2b45e8
	andi	I,  N, 3
kusano 2b45e8
kusano 2b45e8
	blez	I, .L999
kusano 2b45e8
	NOP
kusano 2b45e8
	.align	3
kusano 2b45e8
kusano 2b45e8
.L16:
kusano 2b45e8
 	LD	a1,  0 * SIZE(X)
kusano 2b45e8
 	LD	a2,  1 * SIZE(X)
kusano 2b45e8
	LD	b1,  0 * SIZE(Y)
kusano 2b45e8
	LD	b2,  1 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	MADD	t1, b1, ALPHA_R, a1
kusano 2b45e8
	daddiu	X, X, 2 * SIZE
kusano 2b45e8
	MADD	t2, b2, ALPHA_I, a1
kusano 2b45e8
kusano 2b45e8
	MADD1	t1, t1, ALPHA_I, a2
kusano 2b45e8
	daddiu	I, I, -1
kusano 2b45e8
	MADD2	t2, t2, ALPHA_R, a2
kusano 2b45e8
	daddiu	Y, Y, 2 * SIZE
kusano 2b45e8
kusano 2b45e8
	ST	t1, -2 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	bgtz	I, .L16
kusano 2b45e8
	ST	t2, -1 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
#ifndef __64BIT__
kusano 2b45e8
	ldc1	$f20, 0($sp)
kusano 2b45e8
	ldc1	$f21, 8($sp)
kusano 2b45e8
	daddiu	$sp, $sp,  16
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	j	$31
kusano 2b45e8
	NOP
kusano 2b45e8
	.align 3
kusano 2b45e8
kusano 2b45e8
.L20:
kusano 2b45e8
	dsra	I, N, 2
kusano 2b45e8
	move	YY, Y
kusano 2b45e8
kusano 2b45e8
	blez	I, .L25
kusano 2b45e8
	daddiu	I, I, -1
kusano 2b45e8
kusano 2b45e8
	LD	a1,  0 * SIZE(X)
kusano 2b45e8
	LD	b1,  0 * SIZE(Y)
kusano 2b45e8
	LD	a2,  1 * SIZE(X)
kusano 2b45e8
	LD	b2,  1 * SIZE(Y)
kusano 2b45e8
	daddu	X, X, INCX
kusano 2b45e8
	daddu	Y, Y, INCY
kusano 2b45e8
kusano 2b45e8
	LD	a3,  0 * SIZE(X)
kusano 2b45e8
	LD	b3,  0 * SIZE(Y)
kusano 2b45e8
	LD	a4,  1 * SIZE(X)
kusano 2b45e8
	LD	b4,  1 * SIZE(Y)
kusano 2b45e8
	daddu	X, X, INCX
kusano 2b45e8
	daddu	Y, Y, INCY
kusano 2b45e8
kusano 2b45e8
	LD	a5,  0 * SIZE(X)
kusano 2b45e8
	LD	b5,  0 * SIZE(Y)
kusano 2b45e8
	LD	a6,  1 * SIZE(X)
kusano 2b45e8
	LD	b6,  1 * SIZE(Y)
kusano 2b45e8
	daddu	X, X, INCX
kusano 2b45e8
	daddu	Y, Y, INCY
kusano 2b45e8
kusano 2b45e8
	LD	a7,  0 * SIZE(X)
kusano 2b45e8
	blez	I, .L23
kusano 2b45e8
	LD	b7,  0 * SIZE(Y)
kusano 2b45e8
	.align 3
kusano 2b45e8
kusano 2b45e8
.L22:
kusano 2b45e8
	MADD	t1, b1, ALPHA_R, a1
kusano 2b45e8
	LD	b8,  1 * SIZE(Y)
kusano 2b45e8
	daddu	Y, Y, INCY
kusano 2b45e8
	MADD	t2, b2, ALPHA_I, a1
kusano 2b45e8
	LD	a8,  1 * SIZE(X)
kusano 2b45e8
	daddu	X, X, INCX
kusano 2b45e8
kusano 2b45e8
	MADD	t3, b3, ALPHA_R, a3
kusano 2b45e8
	LD	b1,  0 * SIZE(Y)
kusano 2b45e8
	MADD	t4, b4, ALPHA_I, a3
kusano 2b45e8
	LD	a1,  0 * SIZE(X)
kusano 2b45e8
kusano 2b45e8
	MADD1	t1, t1, ALPHA_I, a2
kusano 2b45e8
	LD	b2,  1 * SIZE(Y)
kusano 2b45e8
	daddu	Y, Y, INCY
kusano 2b45e8
	MADD2	t2, t2, ALPHA_R, a2
kusano 2b45e8
	LD	a2,  1 * SIZE(X)
kusano 2b45e8
	daddu	X, X, INCX
kusano 2b45e8
kusano 2b45e8
	MADD1	t3, t3, ALPHA_I, a4
kusano 2b45e8
	LD	a3,  0 * SIZE(X)
kusano 2b45e8
	MADD2	t4, t4, ALPHA_R, a4
kusano 2b45e8
	LD	b3,  0 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	ST	t1,  0 * SIZE(YY)
kusano 2b45e8
	ST	t2,  1 * SIZE(YY)
kusano 2b45e8
	daddu	YY, YY, INCY
kusano 2b45e8
	ST	t3,  0 * SIZE(YY)
kusano 2b45e8
	ST	t4,  1 * SIZE(YY)
kusano 2b45e8
	daddu	YY, YY, INCY
kusano 2b45e8
kusano 2b45e8
	MADD	t1, b5, ALPHA_R, a5
kusano 2b45e8
	LD	a4,  1 * SIZE(X)
kusano 2b45e8
	daddu	X, X, INCX
kusano 2b45e8
	MADD	t2, b6, ALPHA_I, a5
kusano 2b45e8
	LD	b4,  1 * SIZE(Y)
kusano 2b45e8
	daddu	Y, Y, INCY
kusano 2b45e8
kusano 2b45e8
	MADD	t3, b7, ALPHA_R, a7
kusano 2b45e8
	LD	b5,  0 * SIZE(Y)
kusano 2b45e8
	MADD	t4, b8, ALPHA_I, a7
kusano 2b45e8
	LD	a5,  0 * SIZE(X)
kusano 2b45e8
kusano 2b45e8
	MADD1	t1, t1, ALPHA_I, a6
kusano 2b45e8
	LD	b6,  1 * SIZE(Y)
kusano 2b45e8
	daddu	Y, Y, INCY
kusano 2b45e8
	MADD2	t2, t2, ALPHA_R, a6
kusano 2b45e8
	LD	a6,  1 * SIZE(X)
kusano 2b45e8
	daddu	X, X, INCX
kusano 2b45e8
kusano 2b45e8
	MADD1	t3, t3, ALPHA_I, a8
kusano 2b45e8
	LD	b7,  0 * SIZE(Y)
kusano 2b45e8
	MADD2	t4, t4, ALPHA_R, a8
kusano 2b45e8
	LD	a7,  0 * SIZE(X)
kusano 2b45e8
kusano 2b45e8
	ST	t1,  0 * SIZE(YY)
kusano 2b45e8
	ST	t2,  1 * SIZE(YY)
kusano 2b45e8
	daddu	YY, YY, INCY
kusano 2b45e8
	ST	t3,  0 * SIZE(YY)
kusano 2b45e8
	ST	t4,  1 * SIZE(YY)
kusano 2b45e8
	daddu	YY, YY, INCY
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
	daddiu	I, I, -1
kusano 2b45e8
kusano 2b45e8
	bgtz	I, .L22
kusano 2b45e8
	NOP
kusano 2b45e8
	.align 3
kusano 2b45e8
kusano 2b45e8
.L23:
kusano 2b45e8
	MADD	t1, b1, ALPHA_R, a1
kusano 2b45e8
	LD	a8,  1 * SIZE(X)
kusano 2b45e8
	MADD	t2, b2, ALPHA_I, a1
kusano 2b45e8
	LD	b8,  1 * SIZE(Y)
kusano 2b45e8
	MADD	t3, b3, ALPHA_R, a3
kusano 2b45e8
	daddu	X, X, INCX
kusano 2b45e8
	MADD	t4, b4, ALPHA_I, a3
kusano 2b45e8
	daddu	Y, Y, INCY
kusano 2b45e8
kusano 2b45e8
	MADD1	t1, t1, ALPHA_I, a2
kusano 2b45e8
	MADD2	t2, t2, ALPHA_R, a2
kusano 2b45e8
	MADD1	t3, t3, ALPHA_I, a4
kusano 2b45e8
	MADD2	t4, t4, ALPHA_R, a4
kusano 2b45e8
kusano 2b45e8
	ST	t1,  0 * SIZE(YY)
kusano 2b45e8
	MADD	t1, b5, ALPHA_R, a5
kusano 2b45e8
	ST	t2,  1 * SIZE(YY)
kusano 2b45e8
	MADD	t2, b6, ALPHA_I, a5
kusano 2b45e8
	daddu	YY, YY, INCY
kusano 2b45e8
kusano 2b45e8
	ST	t3,  0 * SIZE(YY)
kusano 2b45e8
	MADD	t3, b7, ALPHA_R, a7
kusano 2b45e8
	ST	t4,  1 * SIZE(YY)
kusano 2b45e8
	MADD	t4, b8, ALPHA_I, a7
kusano 2b45e8
	daddu	YY, YY, INCY
kusano 2b45e8
kusano 2b45e8
	MADD1	t1, t1, ALPHA_I, a6
kusano 2b45e8
	MADD2	t2, t2, ALPHA_R, a6
kusano 2b45e8
	MADD1	t3, t3, ALPHA_I, a8
kusano 2b45e8
	MADD2	t4, t4, ALPHA_R, a8
kusano 2b45e8
kusano 2b45e8
	ST	t1,  0 * SIZE(YY)
kusano 2b45e8
	ST	t2,  1 * SIZE(YY)
kusano 2b45e8
	daddu	YY, YY, INCY
kusano 2b45e8
	ST	t3,  0 * SIZE(YY)
kusano 2b45e8
	ST	t4,  1 * SIZE(YY)
kusano 2b45e8
	daddu	YY, YY, INCY
kusano 2b45e8
	.align 3
kusano 2b45e8
kusano 2b45e8
.L25:
kusano 2b45e8
	andi	I,  N, 3
kusano 2b45e8
kusano 2b45e8
	blez	I, .L999
kusano 2b45e8
	NOP
kusano 2b45e8
	.align	3
kusano 2b45e8
kusano 2b45e8
.L26:
kusano 2b45e8
 	LD	a1,  0 * SIZE(X)
kusano 2b45e8
 	LD	a2,  1 * SIZE(X)
kusano 2b45e8
	LD	b1,  0 * SIZE(Y)
kusano 2b45e8
	LD	b2,  1 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	MADD	t1, b1, ALPHA_R, a1
kusano 2b45e8
	MADD	t2, b2, ALPHA_I, a1
kusano 2b45e8
	daddu	X, X, INCX
kusano 2b45e8
kusano 2b45e8
	MADD1	t1, t1, ALPHA_I, a2
kusano 2b45e8
	MADD2	t2, t2, ALPHA_R, a2
kusano 2b45e8
	daddiu	I, I, -1
kusano 2b45e8
kusano 2b45e8
	ST	t1,  0 * SIZE(Y)
kusano 2b45e8
	ST	t2,  1 * SIZE(Y)
kusano 2b45e8
kusano 2b45e8
	bgtz	I, .L26
kusano 2b45e8
	daddu	Y, Y, INCY
kusano 2b45e8
	.align 3
kusano 2b45e8
kusano 2b45e8
.L999:
kusano 2b45e8
#ifndef __64BIT__
kusano 2b45e8
	ldc1	$f20, 0($sp)
kusano 2b45e8
	ldc1	$f21, 8($sp)
kusano 2b45e8
	daddiu	$sp, $sp,  16
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	j	$31
kusano 2b45e8
	NOP
kusano 2b45e8
kusano 2b45e8
	EPILOGUE