|
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 M $4
|
|
kusano |
2b45e8 |
#define N $5
|
|
kusano |
2b45e8 |
#define A $9
|
|
kusano |
2b45e8 |
#define LDA $10
|
|
kusano |
2b45e8 |
#define X $11
|
|
kusano |
2b45e8 |
#define INCX $2
|
|
kusano |
2b45e8 |
#define Y $6
|
|
kusano |
2b45e8 |
#define INCY $7
|
|
kusano |
2b45e8 |
#define BUFFER $8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define YORIG $3
|
|
kusano |
2b45e8 |
#define XX $12
|
|
kusano |
2b45e8 |
#define YY $13
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define I $14
|
|
kusano |
2b45e8 |
#define J $15
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define AO1 $16
|
|
kusano |
2b45e8 |
#define AO2 $17
|
|
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 x1 $f8
|
|
kusano |
2b45e8 |
#define x2 $f9
|
|
kusano |
2b45e8 |
#define x3 $f10
|
|
kusano |
2b45e8 |
#define x4 $f11
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define y1 $f12
|
|
kusano |
2b45e8 |
#define y2 $f13
|
|
kusano |
2b45e8 |
#define y3 $f14
|
|
kusano |
2b45e8 |
#define y4 $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 |
#define t5 $f22
|
|
kusano |
2b45e8 |
#define t6 $f23
|
|
kusano |
2b45e8 |
#define t7 $f24
|
|
kusano |
2b45e8 |
#define t8 $f25
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if !defined(CONJ) && !defined(XCONJ)
|
|
kusano |
2b45e8 |
#define MADD1 MADD
|
|
kusano |
2b45e8 |
#define MADD2 MADD
|
|
kusano |
2b45e8 |
#define MADD3 NMSUB
|
|
kusano |
2b45e8 |
#define MADD4 MADD
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(CONJ) && !defined(XCONJ)
|
|
kusano |
2b45e8 |
#define MADD1 MADD
|
|
kusano |
2b45e8 |
#define MADD2 MADD
|
|
kusano |
2b45e8 |
#define MADD3 MADD
|
|
kusano |
2b45e8 |
#define MADD4 NMSUB
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if !defined(CONJ) && defined(XCONJ)
|
|
kusano |
2b45e8 |
#define MADD1 MADD
|
|
kusano |
2b45e8 |
#define MADD2 NMSUB
|
|
kusano |
2b45e8 |
#define MADD3 MADD
|
|
kusano |
2b45e8 |
#define MADD4 MADD
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(CONJ) && defined(XCONJ)
|
|
kusano |
2b45e8 |
#define MADD1 MADD
|
|
kusano |
2b45e8 |
#define MADD2 NMSUB
|
|
kusano |
2b45e8 |
#define MADD3 NMSUB
|
|
kusano |
2b45e8 |
#define MADD4 NMSUB
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
PROLOGUE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LDARG INCX, 0($sp)
|
|
kusano |
2b45e8 |
LDARG Y, 8($sp)
|
|
kusano |
2b45e8 |
LDARG INCY, 16($sp)
|
|
kusano |
2b45e8 |
LDARG BUFFER, 24($sp)
|
|
kusano |
2b45e8 |
#ifndef __64BIT__
|
|
kusano |
2b45e8 |
daddiu $sp, $sp, -64
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
daddiu $sp, $sp, -32
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
SDARG $16, 0($sp)
|
|
kusano |
2b45e8 |
SDARG $17, 8($sp)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
sdc1 $f24, 16($sp)
|
|
kusano |
2b45e8 |
sdc1 $f25, 24($sp)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef __64BIT__
|
|
kusano |
2b45e8 |
sdc1 $f20, 32($sp)
|
|
kusano |
2b45e8 |
sdc1 $f21, 40($sp)
|
|
kusano |
2b45e8 |
sdc1 $f22, 48($sp)
|
|
kusano |
2b45e8 |
sdc1 $f23, 56($sp)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
dsll LDA, LDA, ZBASE_SHIFT
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
blez M, .L999
|
|
kusano |
2b45e8 |
dsll INCX, INCX, ZBASE_SHIFT
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
blez N, .L999
|
|
kusano |
2b45e8 |
dsll INCY, INCY, ZBASE_SHIFT
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
li YORIG, 2 * SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
beq INCY, YORIG, .L10
|
|
kusano |
2b45e8 |
move YORIG, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
dsra I, M, 2
|
|
kusano |
2b45e8 |
move YORIG, BUFFER
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
move XX, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
blez I, .L05
|
|
kusano |
2b45e8 |
move YY, BUFFER
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L02:
|
|
kusano |
2b45e8 |
LD a1, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
LD a2, 1 * SIZE(XX)
|
|
kusano |
2b45e8 |
daddu XX, XX, INCY
|
|
kusano |
2b45e8 |
LD a3, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
LD a4, 1 * SIZE(XX)
|
|
kusano |
2b45e8 |
daddu XX, XX, INCY
|
|
kusano |
2b45e8 |
LD a5, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
LD a6, 1 * SIZE(XX)
|
|
kusano |
2b45e8 |
daddu XX, XX, INCY
|
|
kusano |
2b45e8 |
LD a7, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
LD a8, 1 * SIZE(XX)
|
|
kusano |
2b45e8 |
daddu XX, XX, INCY
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
daddiu I, I, -1
|
|
kusano |
2b45e8 |
daddiu YY, YY, 8 * SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST a1, -8 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST a2, -7 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST a3, -6 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST a4, -5 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST a5, -4 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST a6, -3 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST a7, -2 * SIZE(YY)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
bgtz I, .L02
|
|
kusano |
2b45e8 |
ST a8, -1 * SIZE(YY)
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L05:
|
|
kusano |
2b45e8 |
andi I, M, 3
|
|
kusano |
2b45e8 |
blez I, .L10
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L06:
|
|
kusano |
2b45e8 |
LD a1, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
LD a2, 1 * SIZE(XX)
|
|
kusano |
2b45e8 |
daddu XX, XX, INCY
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
daddiu I, I, -1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST a1, 0 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST a2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
bgtz I, .L06
|
|
kusano |
2b45e8 |
daddiu YY, YY, 2 * SIZE
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L10:
|
|
kusano |
2b45e8 |
dsra J, N, 1
|
|
kusano |
2b45e8 |
blez J, .L20
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L11:
|
|
kusano |
2b45e8 |
LD x1, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
LD x2, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
daddu X, X, INCX
|
|
kusano |
2b45e8 |
LD x3, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
LD x4, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
daddu X, X, INCX
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MUL a1, ALPHA_R, x1
|
|
kusano |
2b45e8 |
move AO1, A
|
|
kusano |
2b45e8 |
MUL a2, ALPHA_I, x1
|
|
kusano |
2b45e8 |
daddu AO2, A, LDA
|
|
kusano |
2b45e8 |
MUL a3, ALPHA_R, x3
|
|
kusano |
2b45e8 |
daddu A, AO2, LDA
|
|
kusano |
2b45e8 |
MUL a4, ALPHA_I, x3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef XCONJ
|
|
kusano |
2b45e8 |
NMSUB x1, a1, ALPHA_I, x2
|
|
kusano |
2b45e8 |
MADD x2, a2, ALPHA_R, x2
|
|
kusano |
2b45e8 |
NMSUB x3, a3, ALPHA_I, x4
|
|
kusano |
2b45e8 |
MADD x4, a4, ALPHA_R, x4
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
MADD x1, a1, ALPHA_I, x2
|
|
kusano |
2b45e8 |
MSUB x2, a2, ALPHA_R, x2
|
|
kusano |
2b45e8 |
MADD x3, a3, ALPHA_I, x4
|
|
kusano |
2b45e8 |
MSUB x4, a4, ALPHA_R, x4
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
dsra I, M, 2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
blez I, .L15
|
|
kusano |
2b45e8 |
move YY, YORIG
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD y1, 0 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD a1, 0 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD y2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD a3, 2 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD y3, 2 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD y4, 3 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD a4, 3 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a5, 0 * SIZE(AO2)
|
|
kusano |
2b45e8 |
LD a6, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
LD a7, 2 * SIZE(AO2)
|
|
kusano |
2b45e8 |
LD a8, 3 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD1 t1, y1, x1, a1
|
|
kusano |
2b45e8 |
LD y1, 4 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t2, y2, x2, a1
|
|
kusano |
2b45e8 |
LD a1, 4 * SIZE(AO1)
|
|
kusano |
2b45e8 |
MADD1 t3, y3, x1, a3
|
|
kusano |
2b45e8 |
LD y2, 5 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t4, y4, x2, a3
|
|
kusano |
2b45e8 |
LD a3, 6 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x2, a2
|
|
kusano |
2b45e8 |
LD y3, 6 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x1, a2
|
|
kusano |
2b45e8 |
LD a2, 5 * SIZE(AO1)
|
|
kusano |
2b45e8 |
MADD3 t3, t3, x2, a4
|
|
kusano |
2b45e8 |
LD y4, 7 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t4, t4, x1, a4
|
|
kusano |
2b45e8 |
LD a4, 7 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD1 t1, t1, x3, a5
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
MADD2 t2, t2, x4, a5
|
|
kusano |
2b45e8 |
LD a5, 4 * SIZE(AO2)
|
|
kusano |
2b45e8 |
MADD1 t3, t3, x3, a7
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
MADD2 t4, t4, x4, a7
|
|
kusano |
2b45e8 |
LD a7, 6 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x4, a6
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x3, a6
|
|
kusano |
2b45e8 |
LD a6, 5 * SIZE(AO2)
|
|
kusano |
2b45e8 |
MADD3 t3, t3, x4, a8
|
|
kusano |
2b45e8 |
daddiu I, I, -1
|
|
kusano |
2b45e8 |
MADD4 t4, t4, x3, a8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
blez I, .L13
|
|
kusano |
2b45e8 |
LD a8, 7 * SIZE(AO2)
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L12:
|
|
kusano |
2b45e8 |
MADD1 t5, y1, x1, a1
|
|
kusano |
2b45e8 |
LD y1, 8 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t6, y2, x2, a1
|
|
kusano |
2b45e8 |
LD a1, 8 * SIZE(AO1)
|
|
kusano |
2b45e8 |
MADD1 t7, y3, x1, a3
|
|
kusano |
2b45e8 |
LD y2, 9 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t8, y4, x2, a3
|
|
kusano |
2b45e8 |
LD a3, 10 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t5, t5, x2, a2
|
|
kusano |
2b45e8 |
LD y3, 10 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t6, t6, x1, a2
|
|
kusano |
2b45e8 |
LD a2, 9 * SIZE(AO1)
|
|
kusano |
2b45e8 |
MADD3 t7, t7, x2, a4
|
|
kusano |
2b45e8 |
LD y4, 11 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t8, t8, x1, a4
|
|
kusano |
2b45e8 |
LD a4, 11 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD1 t5, t5, x3, a5
|
|
kusano |
2b45e8 |
ST t1, 0 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t6, t6, x4, a5
|
|
kusano |
2b45e8 |
LD a5, 8 * SIZE(AO2)
|
|
kusano |
2b45e8 |
MADD1 t7, t7, x3, a7
|
|
kusano |
2b45e8 |
ST t2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t8, t8, x4, a7
|
|
kusano |
2b45e8 |
LD a7, 10 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t5, t5, x4, a6
|
|
kusano |
2b45e8 |
ST t3, 2 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t6, t6, x3, a6
|
|
kusano |
2b45e8 |
LD a6, 9 * SIZE(AO2)
|
|
kusano |
2b45e8 |
MADD3 t7, t7, x4, a8
|
|
kusano |
2b45e8 |
ST t4, 3 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t8, t8, x3, a8
|
|
kusano |
2b45e8 |
LD a8, 11 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD1 t1, y1, x1, a1
|
|
kusano |
2b45e8 |
LD y1, 12 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t2, y2, x2, a1
|
|
kusano |
2b45e8 |
LD a1, 12 * SIZE(AO1)
|
|
kusano |
2b45e8 |
MADD1 t3, y3, x1, a3
|
|
kusano |
2b45e8 |
LD y2, 13 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t4, y4, x2, a3
|
|
kusano |
2b45e8 |
LD a3, 14 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x2, a2
|
|
kusano |
2b45e8 |
LD y3, 14 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x1, a2
|
|
kusano |
2b45e8 |
LD a2, 13 * SIZE(AO1)
|
|
kusano |
2b45e8 |
MADD3 t3, t3, x2, a4
|
|
kusano |
2b45e8 |
LD y4, 15 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t4, t4, x1, a4
|
|
kusano |
2b45e8 |
LD a4, 15 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD1 t1, t1, x3, a5
|
|
kusano |
2b45e8 |
ST t5, 4 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t2, t2, x4, a5
|
|
kusano |
2b45e8 |
LD a5, 12 * SIZE(AO2)
|
|
kusano |
2b45e8 |
MADD1 t3, t3, x3, a7
|
|
kusano |
2b45e8 |
ST t6, 5 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t4, t4, x4, a7
|
|
kusano |
2b45e8 |
LD a7, 14 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x4, a6
|
|
kusano |
2b45e8 |
ST t7, 6 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x3, a6
|
|
kusano |
2b45e8 |
LD a6, 13 * SIZE(AO2)
|
|
kusano |
2b45e8 |
MADD3 t3, t3, x4, a8
|
|
kusano |
2b45e8 |
ST t8, 7 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t4, t4, x3, a8
|
|
kusano |
2b45e8 |
LD a8, 15 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
daddiu I, I, -1
|
|
kusano |
2b45e8 |
daddiu YY, YY, 8 * SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
daddiu AO1, AO1, 8 * SIZE
|
|
kusano |
2b45e8 |
bgtz I, .L12
|
|
kusano |
2b45e8 |
daddiu AO2, AO2, 8 * SIZE
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L13:
|
|
kusano |
2b45e8 |
ST t1, 0 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD1 t1, y1, x1, a1
|
|
kusano |
2b45e8 |
ST t2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t2, y2, x2, a1
|
|
kusano |
2b45e8 |
ST t3, 2 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD1 t3, y3, x1, a3
|
|
kusano |
2b45e8 |
ST t4, 3 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t4, y4, x2, a3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x2, a2
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x1, a2
|
|
kusano |
2b45e8 |
MADD3 t3, t3, x2, a4
|
|
kusano |
2b45e8 |
MADD4 t4, t4, x1, a4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD1 t1, t1, x3, a5
|
|
kusano |
2b45e8 |
MADD2 t2, t2, x4, a5
|
|
kusano |
2b45e8 |
MADD1 t3, t3, x3, a7
|
|
kusano |
2b45e8 |
MADD2 t4, t4, x4, a7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x4, a6
|
|
kusano |
2b45e8 |
daddiu AO1, AO1, 8 * SIZE
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x3, a6
|
|
kusano |
2b45e8 |
daddiu AO2, AO2, 8 * SIZE
|
|
kusano |
2b45e8 |
MADD3 t3, t3, x4, a8
|
|
kusano |
2b45e8 |
daddiu YY, YY, 8 * SIZE
|
|
kusano |
2b45e8 |
MADD4 t4, t4, x3, a8
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t1, -4 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t2, -3 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t3, -2 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t4, -1 * SIZE(YY)
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L15:
|
|
kusano |
2b45e8 |
andi I, M, 2
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
blez I, .L16
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a1, 0 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD y1, 0 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD y2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a3, 2 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD y3, 2 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD a4, 3 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD y4, 3 * SIZE(YY)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD1 t1, y1, x1, a1
|
|
kusano |
2b45e8 |
LD a5, 0 * SIZE(AO2)
|
|
kusano |
2b45e8 |
MADD2 t2, y2, x2, a1
|
|
kusano |
2b45e8 |
LD a6, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
MADD1 t3, y3, x1, a3
|
|
kusano |
2b45e8 |
LD a7, 2 * SIZE(AO2)
|
|
kusano |
2b45e8 |
MADD2 t4, y4, x2, a3
|
|
kusano |
2b45e8 |
LD a8, 3 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x2, a2
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x1, a2
|
|
kusano |
2b45e8 |
MADD3 t3, t3, x2, a4
|
|
kusano |
2b45e8 |
MADD4 t4, t4, x1, a4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD1 t1, t1, x3, a5
|
|
kusano |
2b45e8 |
MADD2 t2, t2, x4, a5
|
|
kusano |
2b45e8 |
MADD1 t3, t3, x3, a7
|
|
kusano |
2b45e8 |
MADD2 t4, t4, x4, a7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x4, a6
|
|
kusano |
2b45e8 |
daddiu YY, YY, 4 * SIZE
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x3, a6
|
|
kusano |
2b45e8 |
daddiu AO1, AO1, 4 * SIZE
|
|
kusano |
2b45e8 |
MADD3 t3, t3, x4, a8
|
|
kusano |
2b45e8 |
daddiu AO2, AO2, 4 * SIZE
|
|
kusano |
2b45e8 |
MADD4 t4, t4, x3, a8
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t1, -4 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t2, -3 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t3, -2 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t4, -1 * SIZE(YY)
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L16:
|
|
kusano |
2b45e8 |
andi I, M, 1
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
blez I, .L19
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD y1, 0 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD y2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD a1, 0 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD1 t1, y1, x1, a1
|
|
kusano |
2b45e8 |
LD a5, 0 * SIZE(AO2)
|
|
kusano |
2b45e8 |
MADD2 t2, y2, x2, a1
|
|
kusano |
2b45e8 |
LD a6, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x2, a2
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x1, a2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD1 t1, t1, x3, a5
|
|
kusano |
2b45e8 |
MADD2 t2, t2, x4, a5
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x4, a6
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x3, a6
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t1, 0 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L19:
|
|
kusano |
2b45e8 |
daddiu J, J, -1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
bgtz J, .L11
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L20:
|
|
kusano |
2b45e8 |
andi J, N, 1
|
|
kusano |
2b45e8 |
blez J, .L900
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD x1, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
LD x2, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
daddu X, X, INCX
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MUL a1, ALPHA_R, x1
|
|
kusano |
2b45e8 |
move AO1, A
|
|
kusano |
2b45e8 |
MUL a2, ALPHA_I, x1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef XCONJ
|
|
kusano |
2b45e8 |
NMSUB x1, a1, ALPHA_I, x2
|
|
kusano |
2b45e8 |
MADD x2, a2, ALPHA_R, x2
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
MADD x1, a1, ALPHA_I, x2
|
|
kusano |
2b45e8 |
MSUB x2, a2, ALPHA_R, x2
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
dsra I, M, 2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
blez I, .L25
|
|
kusano |
2b45e8 |
move YY, YORIG
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD y1, 0 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD a1, 0 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD y2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD a3, 2 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD y3, 2 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD y4, 3 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD a4, 3 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD1 t1, y1, x1, a1
|
|
kusano |
2b45e8 |
LD y1, 4 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t2, y2, x2, a1
|
|
kusano |
2b45e8 |
LD a1, 4 * SIZE(AO1)
|
|
kusano |
2b45e8 |
MADD1 t3, y3, x1, a3
|
|
kusano |
2b45e8 |
LD y2, 5 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t4, y4, x2, a3
|
|
kusano |
2b45e8 |
LD a3, 6 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x2, a2
|
|
kusano |
2b45e8 |
LD y3, 6 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x1, a2
|
|
kusano |
2b45e8 |
LD a2, 5 * SIZE(AO1)
|
|
kusano |
2b45e8 |
MADD3 t3, t3, x2, a4
|
|
kusano |
2b45e8 |
LD y4, 7 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t4, t4, x1, a4
|
|
kusano |
2b45e8 |
daddiu I, I, -1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
blez I, .L23
|
|
kusano |
2b45e8 |
LD a4, 7 * SIZE(AO1)
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L22:
|
|
kusano |
2b45e8 |
MADD1 t5, y1, x1, a1
|
|
kusano |
2b45e8 |
LD y1, 8 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t6, y2, x2, a1
|
|
kusano |
2b45e8 |
LD a1, 8 * SIZE(AO1)
|
|
kusano |
2b45e8 |
MADD1 t7, y3, x1, a3
|
|
kusano |
2b45e8 |
LD y2, 9 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t8, y4, x2, a3
|
|
kusano |
2b45e8 |
LD a3, 10 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t5, t5, x2, a2
|
|
kusano |
2b45e8 |
LD y3, 10 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t6, t6, x1, a2
|
|
kusano |
2b45e8 |
LD a2, 9 * SIZE(AO1)
|
|
kusano |
2b45e8 |
MADD3 t7, t7, x2, a4
|
|
kusano |
2b45e8 |
LD y4, 11 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t8, t8, x1, a4
|
|
kusano |
2b45e8 |
LD a4, 11 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t1, 0 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t3, 2 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t4, 3 * SIZE(YY)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD1 t1, y1, x1, a1
|
|
kusano |
2b45e8 |
LD y1, 12 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t2, y2, x2, a1
|
|
kusano |
2b45e8 |
LD a1, 12 * SIZE(AO1)
|
|
kusano |
2b45e8 |
MADD1 t3, y3, x1, a3
|
|
kusano |
2b45e8 |
LD y2, 13 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t4, y4, x2, a3
|
|
kusano |
2b45e8 |
LD a3, 14 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x2, a2
|
|
kusano |
2b45e8 |
LD y3, 14 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x1, a2
|
|
kusano |
2b45e8 |
LD a2, 13 * SIZE(AO1)
|
|
kusano |
2b45e8 |
MADD3 t3, t3, x2, a4
|
|
kusano |
2b45e8 |
LD y4, 15 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD4 t4, t4, x1, a4
|
|
kusano |
2b45e8 |
LD a4, 15 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t5, 4 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t6, 5 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t7, 6 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t8, 7 * SIZE(YY)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
daddiu I, I, -1
|
|
kusano |
2b45e8 |
daddiu YY, YY, 8 * SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
bgtz I, .L22
|
|
kusano |
2b45e8 |
daddiu AO1, AO1, 8 * SIZE
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L23:
|
|
kusano |
2b45e8 |
ST t1, 0 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD1 t1, y1, x1, a1
|
|
kusano |
2b45e8 |
ST t2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t2, y2, x2, a1
|
|
kusano |
2b45e8 |
ST t3, 2 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD1 t3, y3, x1, a3
|
|
kusano |
2b45e8 |
ST t4, 3 * SIZE(YY)
|
|
kusano |
2b45e8 |
MADD2 t4, y4, x2, a3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x2, a2
|
|
kusano |
2b45e8 |
daddiu AO1, AO1, 8 * SIZE
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x1, a2
|
|
kusano |
2b45e8 |
daddiu YY, YY, 8 * SIZE
|
|
kusano |
2b45e8 |
MADD3 t3, t3, x2, a4
|
|
kusano |
2b45e8 |
MADD4 t4, t4, x1, a4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t1, -4 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t2, -3 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t3, -2 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t4, -1 * SIZE(YY)
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L25:
|
|
kusano |
2b45e8 |
andi I, M, 2
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
blez I, .L26
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a1, 0 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD y1, 0 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD y2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a3, 2 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD y3, 2 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD a4, 3 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD y4, 3 * SIZE(YY)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD1 t1, y1, x1, a1
|
|
kusano |
2b45e8 |
MADD2 t2, y2, x2, a1
|
|
kusano |
2b45e8 |
MADD1 t3, y3, x1, a3
|
|
kusano |
2b45e8 |
MADD2 t4, y4, x2, a3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x2, a2
|
|
kusano |
2b45e8 |
daddiu YY, YY, 4 * SIZE
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x1, a2
|
|
kusano |
2b45e8 |
daddiu AO1, AO1, 4 * SIZE
|
|
kusano |
2b45e8 |
MADD3 t3, t3, x2, a4
|
|
kusano |
2b45e8 |
MADD4 t4, t4, x1, a4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t1, -4 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t2, -3 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t3, -2 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t4, -1 * SIZE(YY)
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L26:
|
|
kusano |
2b45e8 |
andi I, M, 1
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
blez I, .L900
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD y1, 0 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD y2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
LD a1, 0 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LD a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MADD1 t1, y1, x1, a1
|
|
kusano |
2b45e8 |
MADD2 t2, y2, x2, a1
|
|
kusano |
2b45e8 |
MADD3 t1, t1, x2, a2
|
|
kusano |
2b45e8 |
MADD4 t2, t2, x1, a2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t1, 0 * SIZE(YY)
|
|
kusano |
2b45e8 |
ST t2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L900:
|
|
kusano |
2b45e8 |
li YORIG, 2 * SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
beq INCY, YORIG, .L999
|
|
kusano |
2b45e8 |
dsra I, M, 2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
blez I, .L905
|
|
kusano |
2b45e8 |
move XX, BUFFER
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L902:
|
|
kusano |
2b45e8 |
LD a1, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
LD a2, 1 * SIZE(XX)
|
|
kusano |
2b45e8 |
LD a3, 2 * SIZE(XX)
|
|
kusano |
2b45e8 |
LD a4, 3 * SIZE(XX)
|
|
kusano |
2b45e8 |
LD a5, 4 * SIZE(XX)
|
|
kusano |
2b45e8 |
LD a6, 5 * SIZE(XX)
|
|
kusano |
2b45e8 |
LD a7, 6 * SIZE(XX)
|
|
kusano |
2b45e8 |
LD a8, 7 * SIZE(XX)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
daddiu I, I, -1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST a1, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
ST a2, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
daddu Y, Y, INCY
|
|
kusano |
2b45e8 |
ST a3, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
ST a4, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
daddu Y, Y, INCY
|
|
kusano |
2b45e8 |
ST a5, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
ST a6, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
daddu Y, Y, INCY
|
|
kusano |
2b45e8 |
ST a7, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
ST a8, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
daddu Y, Y, INCY
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
bgtz I, .L902
|
|
kusano |
2b45e8 |
daddiu XX, XX, 8 * SIZE
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L905:
|
|
kusano |
2b45e8 |
andi I, M, 3
|
|
kusano |
2b45e8 |
blez I, .L999
|
|
kusano |
2b45e8 |
NOP
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L906:
|
|
kusano |
2b45e8 |
LD a1, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
LD a2, 1 * SIZE(XX)
|
|
kusano |
2b45e8 |
daddiu XX, XX, 2 * SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
daddiu I, I, -1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST a1, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
ST a2, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
bgtz I, .L906
|
|
kusano |
2b45e8 |
daddu Y, Y, INCY
|
|
kusano |
2b45e8 |
.align 3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L999:
|
|
kusano |
2b45e8 |
LDARG $16, 0($sp)
|
|
kusano |
2b45e8 |
LDARG $17, 8($sp)
|
|
kusano |
2b45e8 |
ldc1 $f24, 16($sp)
|
|
kusano |
2b45e8 |
ldc1 $f25, 24($sp)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef __64BIT__
|
|
kusano |
2b45e8 |
ldc1 $f20, 32($sp)
|
|
kusano |
2b45e8 |
ldc1 $f21, 40($sp)
|
|
kusano |
2b45e8 |
ldc1 $f22, 48($sp)
|
|
kusano |
2b45e8 |
ldc1 $f23, 56($sp)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
j $31
|
|
kusano |
2b45e8 |
#ifdef __64BIT__
|
|
kusano |
2b45e8 |
daddiu $sp, $sp, 32
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
daddiu $sp, $sp, 64
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
EPILOGUE
|