|
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 |
#include "version.h"
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define PREFETCHSIZE 88
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define N $16
|
|
kusano |
2b45e8 |
#define X $17
|
|
kusano |
2b45e8 |
#define INCX $18
|
|
kusano |
2b45e8 |
#define Y $19
|
|
kusano |
2b45e8 |
#define INCY $20
|
|
kusano |
2b45e8 |
#define XX $21
|
|
kusano |
2b45e8 |
#define YY $23
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define I $5
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define s0 $f0
|
|
kusano |
2b45e8 |
#define s1 $f1
|
|
kusano |
2b45e8 |
#define s2 $f2
|
|
kusano |
2b45e8 |
#define s3 $f30
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define a0 $f10
|
|
kusano |
2b45e8 |
#define a1 $f11
|
|
kusano |
2b45e8 |
#define a2 $f12
|
|
kusano |
2b45e8 |
#define a3 $f13
|
|
kusano |
2b45e8 |
#define a4 $f14
|
|
kusano |
2b45e8 |
#define a5 $f15
|
|
kusano |
2b45e8 |
#define a6 $f16
|
|
kusano |
2b45e8 |
#define a7 $f17
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define b0 $f18
|
|
kusano |
2b45e8 |
#define b1 $f19
|
|
kusano |
2b45e8 |
#define b2 $f20
|
|
kusano |
2b45e8 |
#define b3 $f21
|
|
kusano |
2b45e8 |
#define b4 $f22
|
|
kusano |
2b45e8 |
#define b5 $f23
|
|
kusano |
2b45e8 |
#define b6 $f24
|
|
kusano |
2b45e8 |
#define b7 $f25
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define t0 $f26
|
|
kusano |
2b45e8 |
#define t1 $f27
|
|
kusano |
2b45e8 |
#define t2 $f28
|
|
kusano |
2b45e8 |
#define t3 $f29
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
PROLOGUE
|
|
kusano |
2b45e8 |
PROFCODE
|
|
kusano |
2b45e8 |
.frame $sp, 16, $26, 0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
lda $sp, -16($sp)
|
|
kusano |
2b45e8 |
fclr s0
|
|
kusano |
2b45e8 |
stt $f2, 0($sp)
|
|
kusano |
2b45e8 |
fclr s1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fclr s2
|
|
kusano |
2b45e8 |
addq INCX, INCX, INCX
|
|
kusano |
2b45e8 |
fclr s3
|
|
kusano |
2b45e8 |
ble N, $L999
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addq INCY, INCY, INCY
|
|
kusano |
2b45e8 |
fclr t0
|
|
kusano |
2b45e8 |
fclr t1
|
|
kusano |
2b45e8 |
fclr t2
|
|
kusano |
2b45e8 |
fclr t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srl N, 3, I
|
|
kusano |
2b45e8 |
ble I, $L25
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a1, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
LD b0, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
LD b1, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a2, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a3, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
LD b2, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
LD b3, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a4, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a5, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
LD b4, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
LD b5, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a6, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
LD b6, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq I, 1, I
|
|
kusano |
2b45e8 |
ble I, $L23
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L22:
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
LD a7, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a0, b0, t0
|
|
kusano |
2b45e8 |
LD b7, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
ldl $31, PREFETCHSIZE * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a0, b1, t1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
ldl $31, PREFETCHSIZE * SIZE(Y)
|
|
kusano |
2b45e8 |
MUL a1, b0, t2
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
LD a0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a1, b1, t3
|
|
kusano |
2b45e8 |
LD a1, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
LD b0, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
MUL a2, b2, t0
|
|
kusano |
2b45e8 |
LD b1, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
MUL a2, b3, t1
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
MUL a3, b2, t2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
LD a2, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a3, b3, t3
|
|
kusano |
2b45e8 |
LD a3, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
LD b2, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
MUL a4, b4, t0
|
|
kusano |
2b45e8 |
LD b3, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
MUL a4, b5, t1
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
MUL a5, b4, t2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
LD a4, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a5, b5, t3
|
|
kusano |
2b45e8 |
LD a5, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
LD b4, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
MUL a6, b6, t0
|
|
kusano |
2b45e8 |
LD b5, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
MUL a6, b7, t1
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
MUL a7, b6, t2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
LD a6, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a7, b7, t3
|
|
kusano |
2b45e8 |
LD a7, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
LD b6, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
MUL a0, b0, t0
|
|
kusano |
2b45e8 |
LD b7, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
MUL a0, b1, t1
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
MUL a1, b0, t2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
LD a0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a1, b1, t3
|
|
kusano |
2b45e8 |
LD a1, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
LD b0, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
MUL a2, b2, t0
|
|
kusano |
2b45e8 |
LD b1, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
MUL a2, b3, t1
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
MUL a3, b2, t2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
LD a2, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a3, b3, t3
|
|
kusano |
2b45e8 |
LD a3, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
LD b2, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
MUL a4, b4, t0
|
|
kusano |
2b45e8 |
LD b3, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
MUL a4, b5, t1
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
MUL a5, b4, t2
|
|
kusano |
2b45e8 |
subq I, 1, I
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
LD a4, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a5, b5, t3
|
|
kusano |
2b45e8 |
LD a5, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
LD b4, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
MUL a6, b6, t0
|
|
kusano |
2b45e8 |
LD b5, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
MUL a6, b7, t1
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
LD a6, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a7, b6, t2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
LD b6, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
MUL a7, b7, t3
|
|
kusano |
2b45e8 |
bgt I, $L22
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L23:
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
LD a7, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a0, b0, t0
|
|
kusano |
2b45e8 |
LD b7, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
MUL a0, b1, t1
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
MUL a1, b0, t2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
LD a0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a1, b1, t3
|
|
kusano |
2b45e8 |
LD a1, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
LD b0, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
MUL a2, b2, t0
|
|
kusano |
2b45e8 |
LD b1, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
MUL a2, b3, t1
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
MUL a3, b2, t2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
LD a2, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a3, b3, t3
|
|
kusano |
2b45e8 |
LD a3, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
LD b2, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
MUL a4, b4, t0
|
|
kusano |
2b45e8 |
LD b3, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
MUL a4, b5, t1
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
MUL a5, b4, t2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
LD a4, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a5, b5, t3
|
|
kusano |
2b45e8 |
LD a5, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
LD b4, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
MUL a6, b6, t0
|
|
kusano |
2b45e8 |
LD b5, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
MUL a6, b7, t1
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
MUL a7, b6, t2
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
LD a6, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a7, b7, t3
|
|
kusano |
2b45e8 |
LD a7, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
LD b6, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
MUL a0, b0, t0
|
|
kusano |
2b45e8 |
LD b7, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
MUL a0, b1, t1
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
MUL a1, b0, t2
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
MUL a1, b1, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
MUL a2, b2, t0
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
MUL a2, b3, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
MUL a3, b2, t2
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
MUL a3, b3, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
MUL a4, b4, t0
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
MUL a4, b5, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
MUL a5, b4, t2
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
MUL a5, b5, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
MUL a6, b6, t0
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
MUL a6, b7, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
MUL a7, b6, t2
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
MUL a7, b7, t3
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L25:
|
|
kusano |
2b45e8 |
and N, 7, I
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
ble I, $L998
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a1, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
LD b0, 0 * SIZE(Y)
|
|
kusano |
2b45e8 |
LD b1, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
subq I, 1, I
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
ble I, $L28
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L26:
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
mov X, XX
|
|
kusano |
2b45e8 |
MUL a0, b0, t0
|
|
kusano |
2b45e8 |
mov Y, YY
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
MUL a0, b1, t1
|
|
kusano |
2b45e8 |
SXADDQ INCY, Y, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
LD a0, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
MUL a1, b0, t2
|
|
kusano |
2b45e8 |
LD b0, 0 * SIZE(YY)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
subq I, 1, I
|
|
kusano |
2b45e8 |
MUL a1, b1, t3
|
|
kusano |
2b45e8 |
LD a1, 1 * SIZE(XX)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD b1, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
bgt I, $L26
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L28:
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
MUL a0, b0, t0
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
MUL a0, b1, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
MUL a1, b0, t2
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
MUL a1, b1, t3
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L998:
|
|
kusano |
2b45e8 |
ADD s0, t0, s0
|
|
kusano |
2b45e8 |
ADD s1, t1, s1
|
|
kusano |
2b45e8 |
ADD s2, t2, s2
|
|
kusano |
2b45e8 |
ADD s3, t3, s3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef CONJ
|
|
kusano |
2b45e8 |
SUB s0, s3, s0
|
|
kusano |
2b45e8 |
ADD s1, s2, s1
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
ADD s0, s3, s0
|
|
kusano |
2b45e8 |
SUB s1, s2, s1
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L999:
|
|
kusano |
2b45e8 |
ldt $f2, 0($sp)
|
|
kusano |
2b45e8 |
lda $sp, 16($sp)
|
|
kusano |
2b45e8 |
ret
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
EPILOGUE
|