|
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 $20
|
|
kusano |
2b45e8 |
#define INCX $21
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define XX $18
|
|
kusano |
2b45e8 |
#define I $19
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define ALPHA $f19
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define s0 $f0
|
|
kusano |
2b45e8 |
#define s1 $f1
|
|
kusano |
2b45e8 |
#define s2 $f10
|
|
kusano |
2b45e8 |
#define s3 $f11
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define a0 $f12
|
|
kusano |
2b45e8 |
#define a1 $f13
|
|
kusano |
2b45e8 |
#define a2 $f14
|
|
kusano |
2b45e8 |
#define a3 $f15
|
|
kusano |
2b45e8 |
#define a4 $f16
|
|
kusano |
2b45e8 |
#define a5 $f17
|
|
kusano |
2b45e8 |
#define a6 $f18
|
|
kusano |
2b45e8 |
#define a7 $f21
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define t0 $f22
|
|
kusano |
2b45e8 |
#define t1 $f23
|
|
kusano |
2b45e8 |
#define t2 $f24
|
|
kusano |
2b45e8 |
#define t3 $f25
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
PROLOGUE
|
|
kusano |
2b45e8 |
PROFCODE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mov X, XX
|
|
kusano |
2b45e8 |
ble N, $L999
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
cmpeq INCX, 1, $0
|
|
kusano |
2b45e8 |
beq $0, $L20
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef DOUBLE
|
|
kusano |
2b45e8 |
sra N, 4, I
|
|
kusano |
2b45e8 |
ble I, $L15
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a1, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a2, 2 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a3, 3 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a4, 4 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a0, ALPHA, t0
|
|
kusano |
2b45e8 |
LD a5, 5 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a1, ALPHA, t1
|
|
kusano |
2b45e8 |
LD a6, 6 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a2, ALPHA, t2
|
|
kusano |
2b45e8 |
LD a7, 7 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a3, ALPHA, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a4, ALPHA, t0
|
|
kusano |
2b45e8 |
ST t1, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a5, ALPHA, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t2, 2 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a6, ALPHA, t2
|
|
kusano |
2b45e8 |
ST t3, 3 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a7, ALPHA, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a0, 8 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a1, 9 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a2, 10 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a3, 11 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t0, 4 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a0, ALPHA, t0
|
|
kusano |
2b45e8 |
ST t1, 5 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a1, ALPHA, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t2, 6 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a2, ALPHA, t2
|
|
kusano |
2b45e8 |
ST t3, 7 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a3, ALPHA, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a4, 12 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a5, 13 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a6, 14 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a7, 15 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
lda I, -1(I)
|
|
kusano |
2b45e8 |
ble I, $L13
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L12:
|
|
kusano |
2b45e8 |
ST t0, 8 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a4, ALPHA, t0
|
|
kusano |
2b45e8 |
ST t1, 9 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a5, ALPHA, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t2, 10 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a6, ALPHA, t2
|
|
kusano |
2b45e8 |
ST t3, 11 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a7, ALPHA, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a0, 16 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a1, 17 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a2, 18 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a3, 19 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t0, 12 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a0, ALPHA, t0
|
|
kusano |
2b45e8 |
ST t1, 13 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a1, ALPHA, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t2, 14 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a2, ALPHA, t2
|
|
kusano |
2b45e8 |
ST t3, 15 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a3, ALPHA, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a4, 20 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a5, 21 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a6, 22 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a7, 23 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t0, 16 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a4, ALPHA, t0
|
|
kusano |
2b45e8 |
ST t1, 17 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a5, ALPHA, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t2, 18 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a6, ALPHA, t2
|
|
kusano |
2b45e8 |
ST t3, 19 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a7, ALPHA, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a0, 24 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a1, 25 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a2, 26 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a3, 27 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t0, 20 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a0, ALPHA, t0
|
|
kusano |
2b45e8 |
ST t1, 21 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a1, ALPHA, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t2, 22 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a2, ALPHA, t2
|
|
kusano |
2b45e8 |
ST t3, 23 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a3, ALPHA, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a4, 28 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a5, 29 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a6, 30 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a7, 31 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
lds $f31, PREFETCHSIZE * SIZE(X)
|
|
kusano |
2b45e8 |
lda I, -1(I)
|
|
kusano |
2b45e8 |
addq X, 16 * SIZE, X
|
|
kusano |
2b45e8 |
bne I, $L12
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L13:
|
|
kusano |
2b45e8 |
ST t0, 8 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a4, ALPHA, t0
|
|
kusano |
2b45e8 |
ST t1, 9 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a5, ALPHA, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t2, 10 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a6, ALPHA, t2
|
|
kusano |
2b45e8 |
ST t3, 11 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a7, ALPHA, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t0, 12 * SIZE(X)
|
|
kusano |
2b45e8 |
ST t1, 13 * SIZE(X)
|
|
kusano |
2b45e8 |
ST t2, 14 * SIZE(X)
|
|
kusano |
2b45e8 |
ST t3, 15 * SIZE(X)
|
|
kusano |
2b45e8 |
addq X, 16 * SIZE, X
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L15:
|
|
kusano |
2b45e8 |
and N, 15, I
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
sra N, 3, I
|
|
kusano |
2b45e8 |
ble I, $L15
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a1, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a2, 2 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a3, 3 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a4, 4 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a0, ALPHA, t0
|
|
kusano |
2b45e8 |
LD a5, 5 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a1, ALPHA, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a6, 6 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a2, ALPHA, t2
|
|
kusano |
2b45e8 |
LD a7, 7 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a3, ALPHA, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
lda I, -1(I)
|
|
kusano |
2b45e8 |
ble I, $L13
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L12:
|
|
kusano |
2b45e8 |
ST t0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a4, ALPHA, t0
|
|
kusano |
2b45e8 |
ST t1, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a5, ALPHA, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t2, 2 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a6, ALPHA, t2
|
|
kusano |
2b45e8 |
ST t3, 3 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a7, ALPHA, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a0, 8 * SIZE(X)
|
|
kusano |
2b45e8 |
lda I, -1(I)
|
|
kusano |
2b45e8 |
LD a1, 9 * SIZE(X)
|
|
kusano |
2b45e8 |
addq X, 8 * SIZE, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a2, 2 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a3, 3 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t0, -4 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a0, ALPHA, t0
|
|
kusano |
2b45e8 |
ST t1, -3 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a1, ALPHA, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t2, -2 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a2, ALPHA, t2
|
|
kusano |
2b45e8 |
ST t3, -1 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a3, ALPHA, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a4, 4 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a5, 5 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a6, 6 * SIZE(X)
|
|
kusano |
2b45e8 |
LD a7, 7 * SIZE(X)
|
|
kusano |
2b45e8 |
lds $f31, PREFETCHSIZE * SIZE(X)
|
|
kusano |
2b45e8 |
bne I, $L12
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L13:
|
|
kusano |
2b45e8 |
ST t0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a4, ALPHA, t0
|
|
kusano |
2b45e8 |
ST t1, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a5, ALPHA, t1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t2, 2 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a6, ALPHA, t2
|
|
kusano |
2b45e8 |
ST t3, 3 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a7, ALPHA, t3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t0, 4 * SIZE(X)
|
|
kusano |
2b45e8 |
ST t1, 5 * SIZE(X)
|
|
kusano |
2b45e8 |
ST t2, 6 * SIZE(X)
|
|
kusano |
2b45e8 |
ST t3, 7 * SIZE(X)
|
|
kusano |
2b45e8 |
addq X, 8 * SIZE, X
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L15:
|
|
kusano |
2b45e8 |
and N, 7, I
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
ble I, $L999
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L17:
|
|
kusano |
2b45e8 |
LD a0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MUL a0, ALPHA, t0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addq X, SIZE, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
lda I, -1(I)
|
|
kusano |
2b45e8 |
bne I, $L17
|
|
kusano |
2b45e8 |
ret
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L20:
|
|
kusano |
2b45e8 |
sra N, 3, I
|
|
kusano |
2b45e8 |
ble I, $L25
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
LD a1, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
LD a2, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
LD a3, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a4, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a0, ALPHA, t0
|
|
kusano |
2b45e8 |
lda I, -1(I)
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a5, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a1, ALPHA, t1
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a6, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a2, ALPHA, t2
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a7, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
MUL a3, ALPHA, t3
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
ble I, $L23
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L22:
|
|
kusano |
2b45e8 |
ST t0, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
MUL a4, ALPHA, t0
|
|
kusano |
2b45e8 |
lds $f31, PREFETCHSIZE * SIZE(X)
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
lda I, -1(I)
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t1, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
MUL a5, ALPHA, t1
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a1, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t2, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
MUL a6, ALPHA, t2
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a2, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t3, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
MUL a7, ALPHA, t3
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a3, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t0, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
MUL a0, ALPHA, t0
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a4, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t1, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
MUL a1, ALPHA, t1
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a5, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t2, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
MUL a2, ALPHA, t2
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a6, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t3, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
MUL a3, ALPHA, t3
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LD a7, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
unop
|
|
kusano |
2b45e8 |
bne I, $L22
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L23:
|
|
kusano |
2b45e8 |
ST t0, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
MUL a4, ALPHA, t0
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t1, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
MUL a5, ALPHA, t1
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t2, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
MUL a6, ALPHA, t2
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t3, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
MUL a7, ALPHA, t3
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t0, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
ST t1, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
ST t2, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
ST t3, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
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, $L999
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L27:
|
|
kusano |
2b45e8 |
LD a0, 0 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MUL a0, ALPHA, t0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ST t0, 0 * SIZE(XX)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
SXADDQ INCX, X, X
|
|
kusano |
2b45e8 |
SXADDQ INCX, XX, XX
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
lda I, -1(I)
|
|
kusano |
2b45e8 |
bne I, $L27
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$L999:
|
|
kusano |
2b45e8 |
ret
|
|
kusano |
2b45e8 |
EPILOGUE
|