|
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 P 1024
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef __64BIT__
|
|
kusano |
2b45e8 |
#define STACKSIZE 224
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define STACKSIZE 304
|
|
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 A r6
|
|
kusano |
2b45e8 |
#define LDA r7
|
|
kusano |
2b45e8 |
#define X r8
|
|
kusano |
2b45e8 |
#define INCX r9
|
|
kusano |
2b45e8 |
#define Y r10
|
|
kusano |
2b45e8 |
#define INCY r5
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define M r3
|
|
kusano |
2b45e8 |
#define N r4
|
|
kusano |
2b45e8 |
#define A r8
|
|
kusano |
2b45e8 |
#define LDA r9
|
|
kusano |
2b45e8 |
#define X r10
|
|
kusano |
2b45e8 |
#define INCX r5
|
|
kusano |
2b45e8 |
#define Y r6
|
|
kusano |
2b45e8 |
#define INCY 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 A r10
|
|
kusano |
2b45e8 |
#define LDA r5
|
|
kusano |
2b45e8 |
#define X r6
|
|
kusano |
2b45e8 |
#define INCX r7
|
|
kusano |
2b45e8 |
#define Y r8
|
|
kusano |
2b45e8 |
#define INCY r9
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define M r3
|
|
kusano |
2b45e8 |
#define N r4
|
|
kusano |
2b45e8 |
#define A r8
|
|
kusano |
2b45e8 |
#define LDA r9
|
|
kusano |
2b45e8 |
#define X r10
|
|
kusano |
2b45e8 |
#define INCX r5
|
|
kusano |
2b45e8 |
#define Y r6
|
|
kusano |
2b45e8 |
#define INCY r7
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define BUFFER r11
|
|
kusano |
2b45e8 |
#define XP r12
|
|
kusano |
2b45e8 |
#define X1 r14
|
|
kusano |
2b45e8 |
#define J r15
|
|
kusano |
2b45e8 |
#define AO1 r16
|
|
kusano |
2b45e8 |
#define AO2 r17
|
|
kusano |
2b45e8 |
#define AO3 r18
|
|
kusano |
2b45e8 |
#define AO4 r19
|
|
kusano |
2b45e8 |
#define PREA r20
|
|
kusano |
2b45e8 |
#define PREC r21
|
|
kusano |
2b45e8 |
#define YY r22
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(PPCG4)
|
|
kusano |
2b45e8 |
#define PREFETCHSIZE_A (3 * 8)
|
|
kusano |
2b45e8 |
#define PREFETCHSIZE_C 7
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(POWER6)
|
|
kusano |
2b45e8 |
#define PREFETCHSIZE_A (3 * 8)
|
|
kusano |
2b45e8 |
#define PREFETCHSIZE_C 7
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if !(defined(CONJ) && defined(XCONJ))
|
|
kusano |
2b45e8 |
#define FMADDR FMADD
|
|
kusano |
2b45e8 |
#define FMSUBR FNMSUB
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define FMADDR FNMSUB
|
|
kusano |
2b45e8 |
#define FMSUBR FMADD
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef NEEDPARAM
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef __64BIT__
|
|
kusano |
2b45e8 |
#define FZERO 200(SP)
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define FZERO 256(SP)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
PROLOGUE
|
|
kusano |
2b45e8 |
PROFCODE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addi SP, SP, -STACKSIZE
|
|
kusano |
2b45e8 |
li r0, 0
|
|
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 r0, FZERO
|
|
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 r0, FZERO
|
|
kusano |
2b45e8 |
stw r0, 4 + FZERO
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef linux
|
|
kusano |
2b45e8 |
#ifndef __64BIT__
|
|
kusano |
2b45e8 |
lwz INCY, 8 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
lwz BUFFER, 12 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
ld INCX, 112 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
ld Y, 120 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
ld INCY, 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 LDA, 56 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
lwz X, 60 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
lwz INCX, 64 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
lwz Y, 68 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
lwz INCY, 72 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
lwz BUFFER, 76 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
lwz INCX, 56 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
lwz Y, 60 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
lwz INCY, 64 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
lwz BUFFER, 68 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
ld INCX, 112 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
ld Y, 120 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
ld INCY, 128 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
ld BUFFER, 136 + STACKSIZE(SP)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef XCONJ
|
|
kusano |
2b45e8 |
#ifndef CONJ
|
|
kusano |
2b45e8 |
#define FMADD1 FMADD
|
|
kusano |
2b45e8 |
#define FMADD2 FMADD
|
|
kusano |
2b45e8 |
#define FMADD3 FNMSUB
|
|
kusano |
2b45e8 |
#define FMADD4 FMADD
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define FMADD1 FMADD
|
|
kusano |
2b45e8 |
#define FMADD2 FMADD
|
|
kusano |
2b45e8 |
#define FMADD3 FMADD
|
|
kusano |
2b45e8 |
#define FMADD4 FNMSUB
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#ifndef CONJ
|
|
kusano |
2b45e8 |
#define FMADD1 FMADD
|
|
kusano |
2b45e8 |
#define FMADD2 FNMSUB
|
|
kusano |
2b45e8 |
#define FMADD3 FMADD
|
|
kusano |
2b45e8 |
#define FMADD4 FMADD
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define FMADD1 FMADD
|
|
kusano |
2b45e8 |
#define FMADD2 FMADD
|
|
kusano |
2b45e8 |
#define FMADD3 FNMSUB
|
|
kusano |
2b45e8 |
#define FMADD4 FMADD
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define y1 f0
|
|
kusano |
2b45e8 |
#define y2 f1
|
|
kusano |
2b45e8 |
#define y3 f2
|
|
kusano |
2b45e8 |
#define y4 f3
|
|
kusano |
2b45e8 |
#define y5 f4
|
|
kusano |
2b45e8 |
#define y6 f5
|
|
kusano |
2b45e8 |
#define y7 f6
|
|
kusano |
2b45e8 |
#define y8 f7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define a1 f8
|
|
kusano |
2b45e8 |
#define a2 f9
|
|
kusano |
2b45e8 |
#define a3 f10
|
|
kusano |
2b45e8 |
#define a4 f11
|
|
kusano |
2b45e8 |
#define a5 f12
|
|
kusano |
2b45e8 |
#define a6 f13
|
|
kusano |
2b45e8 |
#define a7 f14
|
|
kusano |
2b45e8 |
#define a8 f15
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define b1 f16
|
|
kusano |
2b45e8 |
#define b2 f17
|
|
kusano |
2b45e8 |
#define b3 f18
|
|
kusano |
2b45e8 |
#define b4 f19
|
|
kusano |
2b45e8 |
#define b5 f20
|
|
kusano |
2b45e8 |
#define b6 f21
|
|
kusano |
2b45e8 |
#define b7 f22
|
|
kusano |
2b45e8 |
#define b8 f23
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define alpha_r f24
|
|
kusano |
2b45e8 |
#define alpha_i f25
|
|
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 |
addi A, A, -SIZE
|
|
kusano |
2b45e8 |
addi INCX, INCX, -SIZE
|
|
kusano |
2b45e8 |
addi INCY, INCY, -SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
sub X, X, INCX
|
|
kusano |
2b45e8 |
sub Y, Y, INCY
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mr YY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
cmpwi cr0, M, 0
|
|
kusano |
2b45e8 |
ble LL(999)
|
|
kusano |
2b45e8 |
cmpwi cr0, N, 0
|
|
kusano |
2b45e8 |
ble LL(999)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mr XP, X
|
|
kusano |
2b45e8 |
cmpwi cr0, INCX, SIZE
|
|
kusano |
2b45e8 |
beq LL(10)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addi XP, BUFFER, -SIZE
|
|
kusano |
2b45e8 |
addi X1, BUFFER, -SIZE
|
|
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(02):
|
|
kusano |
2b45e8 |
LFDUX f0, X, INCX
|
|
kusano |
2b45e8 |
LFDU f1, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
LFDUX f2, X, INCX
|
|
kusano |
2b45e8 |
LFDU f3, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
LFDUX f4, X, INCX
|
|
kusano |
2b45e8 |
LFDU f5, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
LFDUX f6, X, INCX
|
|
kusano |
2b45e8 |
LFDU f7, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFDU f0, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
STFDU f1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
STFDU f2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
STFDU f3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
STFDU f4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
STFDU f5, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
STFDU f6, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
STFDU f7, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
bdnz LL(02)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(05):
|
|
kusano |
2b45e8 |
andi. r0, M, 3
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
ble LL(10)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(06):
|
|
kusano |
2b45e8 |
LFDUX f0, X, INCX
|
|
kusano |
2b45e8 |
LFDU f1, 1 * SIZE(X)
|
|
kusano |
2b45e8 |
STFDU f0, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
STFDU f1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
bdnz LL(06)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(10):
|
|
kusano |
2b45e8 |
srawi. J, N, 2
|
|
kusano |
2b45e8 |
ble LL(20)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(11):
|
|
kusano |
2b45e8 |
lfd y1, FZERO
|
|
kusano |
2b45e8 |
mr AO1, A
|
|
kusano |
2b45e8 |
fmr y2, y1
|
|
kusano |
2b45e8 |
mr X1, XP
|
|
kusano |
2b45e8 |
fmr y3, y1
|
|
kusano |
2b45e8 |
add AO2, A, LDA
|
|
kusano |
2b45e8 |
fmr y4, y1
|
|
kusano |
2b45e8 |
add AO3, AO2, LDA
|
|
kusano |
2b45e8 |
fmr y5, y1
|
|
kusano |
2b45e8 |
add AO4, AO3, LDA
|
|
kusano |
2b45e8 |
fmr y6, y1
|
|
kusano |
2b45e8 |
add A, AO4, LDA
|
|
kusano |
2b45e8 |
fmr y7, y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
dcbtst PREC, Y
|
|
kusano |
2b45e8 |
fmr y8, y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, M, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
ble LL(15)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
LFDU a5, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
LFDU a6, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
LFDU a7, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
bdz LL(13)
|
|
kusano |
2b45e8 |
.align 5
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(12):
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
LFDU a8, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b1, y3
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b2, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PPCG4
|
|
kusano |
2b45e8 |
dcbt AO1, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b2, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b1, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b2, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b1, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PPCG4
|
|
kusano |
2b45e8 |
dcbt X1, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y5, a5, b1, y5
|
|
kusano |
2b45e8 |
FMADD2 y6, a5, b2, y6
|
|
kusano |
2b45e8 |
FMADD1 y7, a7, b1, y7
|
|
kusano |
2b45e8 |
FMADD2 y8, a7, b2, y8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PPCG4
|
|
kusano |
2b45e8 |
dcbt AO2, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y5, a6, b2, y5
|
|
kusano |
2b45e8 |
LFDU a5, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD4 y6, a6, b1, y6
|
|
kusano |
2b45e8 |
LFDU a6, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD3 y7, a8, b2, y7
|
|
kusano |
2b45e8 |
LFDU a7, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
FMADD4 y8, a8, b1, y8
|
|
kusano |
2b45e8 |
LFDU a8, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b3, y1
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b4, y2
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b3, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b4, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PPCG4
|
|
kusano |
2b45e8 |
dcbt AO3, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b4, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b3, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b4, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b3, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y5, a5, b3, y5
|
|
kusano |
2b45e8 |
FMADD2 y6, a5, b4, y6
|
|
kusano |
2b45e8 |
FMADD1 y7, a7, b3, y7
|
|
kusano |
2b45e8 |
FMADD2 y8, a7, b4, y8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PPCG4
|
|
kusano |
2b45e8 |
dcbt AO4, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y5, a6, b4, y5
|
|
kusano |
2b45e8 |
LFDU a5, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD4 y6, a6, b3, y6
|
|
kusano |
2b45e8 |
LFDU a6, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD3 y7, a8, b4, y7
|
|
kusano |
2b45e8 |
LFDU a7, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
FMADD4 y8, a8, b3, y8
|
|
kusano |
2b45e8 |
LFDU a8, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b1, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b2, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(PPCG4) && defined(DOUBLE)
|
|
kusano |
2b45e8 |
dcbt AO1, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b2, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b1, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b2, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b1, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(PPCG4) && defined(DOUBLE)
|
|
kusano |
2b45e8 |
dcbt X1, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y5, a5, b1, y5
|
|
kusano |
2b45e8 |
FMADD2 y6, a5, b2, y6
|
|
kusano |
2b45e8 |
FMADD1 y7, a7, b1, y7
|
|
kusano |
2b45e8 |
FMADD2 y8, a7, b2, y8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(PPCG4) && defined(DOUBLE)
|
|
kusano |
2b45e8 |
dcbt AO2, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y5, a6, b2, y5
|
|
kusano |
2b45e8 |
LFDU a5, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD4 y6, a6, b1, y6
|
|
kusano |
2b45e8 |
LFDU a6, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD3 y7, a8, b2, y7
|
|
kusano |
2b45e8 |
LFDU a7, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
FMADD4 y8, a8, b1, y8
|
|
kusano |
2b45e8 |
LFDU a8, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b3, y1
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b4, y2
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b3, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b4, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(PPCG4) && defined(DOUBLE)
|
|
kusano |
2b45e8 |
dcbt AO3, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b4, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b3, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b4, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b3, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y5, a5, b3, y5
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y6, a5, b4, y6
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD1 y7, a7, b3, y7
|
|
kusano |
2b45e8 |
FMADD2 y8, a7, b4, y8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(PPCG4) && defined(DOUBLE)
|
|
kusano |
2b45e8 |
dcbt AO4, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y5, a6, b4, y5
|
|
kusano |
2b45e8 |
LFDU a5, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD4 y6, a6, b3, y6
|
|
kusano |
2b45e8 |
LFDU a6, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD3 y7, a8, b4, y7
|
|
kusano |
2b45e8 |
LFDU a7, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
FMADD4 y8, a8, b3, y8
|
|
kusano |
2b45e8 |
bdnz LL(12)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(13):
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
LFDU a8, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b1, y3
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b2, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b2, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b1, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b2, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b1, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y5, a5, b1, y5
|
|
kusano |
2b45e8 |
FMADD2 y6, a5, b2, y6
|
|
kusano |
2b45e8 |
FMADD1 y7, a7, b1, y7
|
|
kusano |
2b45e8 |
FMADD2 y8, a7, b2, y8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y5, a6, b2, y5
|
|
kusano |
2b45e8 |
LFDU a5, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD4 y6, a6, b1, y6
|
|
kusano |
2b45e8 |
LFDU a6, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD3 y7, a8, b2, y7
|
|
kusano |
2b45e8 |
LFDU a7, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
FMADD4 y8, a8, b1, y8
|
|
kusano |
2b45e8 |
LFDU a8, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b3, y1
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b4, y2
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b3, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b4, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b4, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b3, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b4, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b3, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y5, a5, b3, y5
|
|
kusano |
2b45e8 |
FMADD2 y6, a5, b4, y6
|
|
kusano |
2b45e8 |
FMADD1 y7, a7, b3, y7
|
|
kusano |
2b45e8 |
FMADD2 y8, a7, b4, y8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y5, a6, b4, y5
|
|
kusano |
2b45e8 |
LFDU a5, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD4 y6, a6, b3, y6
|
|
kusano |
2b45e8 |
LFDU a6, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD3 y7, a8, b4, y7
|
|
kusano |
2b45e8 |
LFDU a7, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
FMADD4 y8, a8, b3, y8
|
|
kusano |
2b45e8 |
LFDU a8, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b1, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b2, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b2, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b1, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b2, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b1, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y5, a5, b1, y5
|
|
kusano |
2b45e8 |
FMADD2 y6, a5, b2, y6
|
|
kusano |
2b45e8 |
FMADD1 y7, a7, b1, y7
|
|
kusano |
2b45e8 |
FMADD2 y8, a7, b2, y8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y5, a6, b2, y5
|
|
kusano |
2b45e8 |
LFDU a5, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD4 y6, a6, b1, y6
|
|
kusano |
2b45e8 |
LFDU a6, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD3 y7, a8, b2, y7
|
|
kusano |
2b45e8 |
LFDU a7, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
FMADD4 y8, a8, b1, y8
|
|
kusano |
2b45e8 |
LFDU a8, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b3, y1
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b4, y2
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b3, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b4, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b4, y1
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b3, y2
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b4, y3
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b3, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y5, a5, b3, y5
|
|
kusano |
2b45e8 |
FMADD2 y6, a5, b4, y6
|
|
kusano |
2b45e8 |
FMADD1 y7, a7, b3, y7
|
|
kusano |
2b45e8 |
FMADD2 y8, a7, b4, y8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y5, a6, b4, y5
|
|
kusano |
2b45e8 |
FMADD4 y6, a6, b3, y6
|
|
kusano |
2b45e8 |
FMADD3 y7, a8, b4, y7
|
|
kusano |
2b45e8 |
FMADD4 y8, a8, b3, y8
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(15):
|
|
kusano |
2b45e8 |
andi. r0, M, 2
|
|
kusano |
2b45e8 |
ble LL(17)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
LFDU a5, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
LFDU a6, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b1, y3
|
|
kusano |
2b45e8 |
LFDU a7, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b2, y4
|
|
kusano |
2b45e8 |
LFDU a8, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b2, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b1, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b2, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b1, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y5, a5, b1, y5
|
|
kusano |
2b45e8 |
FMADD2 y6, a5, b2, y6
|
|
kusano |
2b45e8 |
FMADD1 y7, a7, b1, y7
|
|
kusano |
2b45e8 |
FMADD2 y8, a7, b2, y8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y5, a6, b2, y5
|
|
kusano |
2b45e8 |
LFDU a5, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD4 y6, a6, b1, y6
|
|
kusano |
2b45e8 |
LFDU a6, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
FMADD3 y7, a8, b2, y7
|
|
kusano |
2b45e8 |
LFDU a7, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
FMADD4 y8, a8, b1, y8
|
|
kusano |
2b45e8 |
LFDU a8, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b3, y1
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b4, y2
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b3, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b4, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b4, y1
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b3, y2
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b4, y3
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b3, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y5, a5, b3, y5
|
|
kusano |
2b45e8 |
FMADD2 y6, a5, b4, y6
|
|
kusano |
2b45e8 |
FMADD1 y7, a7, b3, y7
|
|
kusano |
2b45e8 |
FMADD2 y8, a7, b4, y8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y5, a6, b4, y5
|
|
kusano |
2b45e8 |
FMADD4 y6, a6, b3, y6
|
|
kusano |
2b45e8 |
FMADD3 y7, a8, b4, y7
|
|
kusano |
2b45e8 |
FMADD4 y8, a8, b3, y8
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(17):
|
|
kusano |
2b45e8 |
andi. r0, M, 1
|
|
kusano |
2b45e8 |
ble LL(19)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
LFDU a5, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
LFDU a6, 1 * SIZE(AO3)
|
|
kusano |
2b45e8 |
LFDU a7, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
LFDU a8, 1 * SIZE(AO4)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b1, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b2, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b2, y1
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b1, y2
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b2, y3
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b1, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y5, a5, b1, y5
|
|
kusano |
2b45e8 |
FMADD2 y6, a5, b2, y6
|
|
kusano |
2b45e8 |
FMADD1 y7, a7, b1, y7
|
|
kusano |
2b45e8 |
FMADD2 y8, a7, b2, y8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y5, a6, b2, y5
|
|
kusano |
2b45e8 |
FMADD4 y6, a6, b1, y6
|
|
kusano |
2b45e8 |
FMADD3 y7, a8, b2, y7
|
|
kusano |
2b45e8 |
FMADD4 y8, a8, b1, y8
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(19):
|
|
kusano |
2b45e8 |
LFDUX b1, Y, INCY
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
LFDUX b3, Y, INCY
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
LFDUX b5, Y, INCY
|
|
kusano |
2b45e8 |
LFDU b6, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
LFDUX b7, Y, INCY
|
|
kusano |
2b45e8 |
LFDU b8, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD b1, alpha_r, y1, b1
|
|
kusano |
2b45e8 |
FMADDR b2, alpha_r, y2, b2
|
|
kusano |
2b45e8 |
FMADD b3, alpha_r, y3, b3
|
|
kusano |
2b45e8 |
FMADDR b4, alpha_r, y4, b4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD b5, alpha_r, y5, b5
|
|
kusano |
2b45e8 |
FMADDR b6, alpha_r, y6, b6
|
|
kusano |
2b45e8 |
FMADD b7, alpha_r, y7, b7
|
|
kusano |
2b45e8 |
FMADDR b8, alpha_r, y8, b8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMSUBR b1, alpha_i, y2, b1
|
|
kusano |
2b45e8 |
FMADD b2, alpha_i, y1, b2
|
|
kusano |
2b45e8 |
FMSUBR b3, alpha_i, y4, b3
|
|
kusano |
2b45e8 |
FMADD b4, alpha_i, y3, b4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMSUBR b5, alpha_i, y6, b5
|
|
kusano |
2b45e8 |
FMADD b6, alpha_i, y5, b6
|
|
kusano |
2b45e8 |
FMSUBR b7, alpha_i, y8, b7
|
|
kusano |
2b45e8 |
FMADD b8, alpha_i, y7, b8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFDUX b1, YY, INCY
|
|
kusano |
2b45e8 |
STFDU b2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
STFDUX b3, YY, INCY
|
|
kusano |
2b45e8 |
STFDU b4, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFDUX b5, YY, INCY
|
|
kusano |
2b45e8 |
STFDU b6, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
STFDUX b7, YY, INCY
|
|
kusano |
2b45e8 |
STFDU b8, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addi J, J, -1
|
|
kusano |
2b45e8 |
cmpwi cr0, J, 0
|
|
kusano |
2b45e8 |
bgt LL(11)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(20):
|
|
kusano |
2b45e8 |
andi. J, N, 2
|
|
kusano |
2b45e8 |
ble LL(30)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
lfd y1, FZERO
|
|
kusano |
2b45e8 |
mr AO1, A
|
|
kusano |
2b45e8 |
fmr y2, y1
|
|
kusano |
2b45e8 |
mr X1, XP
|
|
kusano |
2b45e8 |
fmr y3, y1
|
|
kusano |
2b45e8 |
add AO2, A, LDA
|
|
kusano |
2b45e8 |
fmr y4, y1
|
|
kusano |
2b45e8 |
add A, AO2, LDA
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, M, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
ble LL(25)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
bdz LL(23)
|
|
kusano |
2b45e8 |
.align 5
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(22):
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b1, y3
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b2, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PPCG4
|
|
kusano |
2b45e8 |
dcbt AO1, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b2, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b1, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b2, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b1, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PPCG4
|
|
kusano |
2b45e8 |
dcbt AO2, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b3, y1
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b4, y2
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b3, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b4, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PPCG4
|
|
kusano |
2b45e8 |
dcbt X1, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b4, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b3, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b4, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b3, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b1, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b2, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(PPCG4) && defined(DOUBLE)
|
|
kusano |
2b45e8 |
dcbt AO1, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b2, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b1, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b2, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b1, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(PPCG4) && defined(DOUBLE)
|
|
kusano |
2b45e8 |
dcbt AO2, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b3, y1
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b4, y2
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b3, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b4, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(PPCG4) && defined(DOUBLE)
|
|
kusano |
2b45e8 |
dcbt X1, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b4, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b3, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b4, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b3, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
bdnz LL(22)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(23):
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b1, y3
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b2, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b2, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b1, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b2, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b1, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b3, y1
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b4, y2
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b3, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b4, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b4, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b3, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b4, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b3, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b1, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b2, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b2, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b1, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b2, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b1, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b3, y1
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b4, y2
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b3, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b4, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b4, y1
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b3, y2
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b4, y3
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b3, y4
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(25):
|
|
kusano |
2b45e8 |
andi. r0, M, 2
|
|
kusano |
2b45e8 |
ble LL(27)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b1, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b2, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b2, y1
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b1, y2
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b2, y3
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b1, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b3, y1
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b4, y2
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b3, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b4, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b4, y1
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b3, y2
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b4, y3
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b3, y4
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(27):
|
|
kusano |
2b45e8 |
andi. r0, M, 1
|
|
kusano |
2b45e8 |
ble LL(29)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO2)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
FMADD1 y3, a3, b1, y3
|
|
kusano |
2b45e8 |
FMADD2 y4, a3, b2, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y1, a2, b2, y1
|
|
kusano |
2b45e8 |
FMADD4 y2, a2, b1, y2
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b2, y3
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b1, y4
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(29):
|
|
kusano |
2b45e8 |
LFDUX b1, Y, INCY
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
LFDUX b3, Y, INCY
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD b1, alpha_r, y1, b1
|
|
kusano |
2b45e8 |
FMADDR b2, alpha_r, y2, b2
|
|
kusano |
2b45e8 |
FMADD b3, alpha_r, y3, b3
|
|
kusano |
2b45e8 |
FMADDR b4, alpha_r, y4, b4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMSUBR b1, alpha_i, y2, b1
|
|
kusano |
2b45e8 |
FMADD b2, alpha_i, y1, b2
|
|
kusano |
2b45e8 |
FMSUBR b3, alpha_i, y4, b3
|
|
kusano |
2b45e8 |
FMADD b4, alpha_i, y3, b4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFDUX b1, YY, INCY
|
|
kusano |
2b45e8 |
STFDU b2, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
STFDUX b3, YY, INCY
|
|
kusano |
2b45e8 |
STFDU b4, 1 * SIZE(YY)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(30):
|
|
kusano |
2b45e8 |
andi. J, N, 1
|
|
kusano |
2b45e8 |
ble LL(999)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
lfd y1, FZERO
|
|
kusano |
2b45e8 |
mr AO1, A
|
|
kusano |
2b45e8 |
fmr y2, y1
|
|
kusano |
2b45e8 |
mr X1, XP
|
|
kusano |
2b45e8 |
fmr y3, y1
|
|
kusano |
2b45e8 |
fmr y4, y1
|
|
kusano |
2b45e8 |
add A, A, LDA
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, M, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
ble LL(35)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
bdz LL(33)
|
|
kusano |
2b45e8 |
.align 5
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(32):
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PPCG4
|
|
kusano |
2b45e8 |
dcbt AO1, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y3, a2, b2, y3
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y4, a2, b1, y4
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b3, y1
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b4, y2
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PPCG4
|
|
kusano |
2b45e8 |
dcbt X1, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y3, a2, b4, y3
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y4, a2, b3, y4
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(PPCG4) && defined(DOUBLE)
|
|
kusano |
2b45e8 |
dcbt AO1, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y3, a2, b2, y3
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y4, a2, b1, y4
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b3, y1
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b4, y2
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(PPCG4) && defined(DOUBLE)
|
|
kusano |
2b45e8 |
dcbt X1, PREA
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y3, a2, b4, y3
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y4, a2, b3, y4
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
bdnz LL(32)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(33):
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y3, a2, b2, y3
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y4, a2, b1, y4
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b3, y1
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b4, y2
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y3, a2, b4, y3
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y4, a2, b3, y4
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD3 y3, a2, b2, y3
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD4 y4, a2, b1, y4
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b3, y1
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b4, y2
|
|
kusano |
2b45e8 |
FMADD3 y3, a2, b4, y3
|
|
kusano |
2b45e8 |
FMADD4 y4, a2, b3, y4
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(35):
|
|
kusano |
2b45e8 |
andi. r0, M, 2
|
|
kusano |
2b45e8 |
ble LL(37)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
LFDU b3, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
LFDU a3, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
FMADD3 y3, a2, b2, y3
|
|
kusano |
2b45e8 |
LFDU b4, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
FMADD4 y4, a2, b1, y4
|
|
kusano |
2b45e8 |
LFDU a4, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a3, b3, y1
|
|
kusano |
2b45e8 |
FMADD2 y2, a3, b4, y2
|
|
kusano |
2b45e8 |
FMADD3 y3, a4, b4, y3
|
|
kusano |
2b45e8 |
FMADD4 y4, a4, b3, y4
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(37):
|
|
kusano |
2b45e8 |
andi. r0, M, 1
|
|
kusano |
2b45e8 |
ble LL(39)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDU a1, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU b1, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
LFDU a2, 1 * SIZE(AO1)
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(X1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD1 y1, a1, b1, y1
|
|
kusano |
2b45e8 |
FMADD2 y2, a1, b2, y2
|
|
kusano |
2b45e8 |
FMADD3 y3, a2, b2, y3
|
|
kusano |
2b45e8 |
FMADD4 y4, a2, b1, y4
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(39):
|
|
kusano |
2b45e8 |
LFDUX b1, Y, INCY
|
|
kusano |
2b45e8 |
LFDU b2, 1 * SIZE(Y)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FADD y1, y1, y3
|
|
kusano |
2b45e8 |
FADD y2, y2, y4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMADD b1, alpha_r, y1, b1
|
|
kusano |
2b45e8 |
FMADDR b2, alpha_r, y2, b2
|
|
kusano |
2b45e8 |
FMSUBR b1, alpha_i, y2, b1
|
|
kusano |
2b45e8 |
FMADD b2, alpha_i, y1, b2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFDUX b1, YY, INCY
|
|
kusano |
2b45e8 |
STFDU b2, 1 * SIZE(YY)
|
|
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 |
#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 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addi SP, SP, STACKSIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
blr
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
EPILOGUE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#endif
|