|
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 r3
|
|
kusano |
2b45e8 |
#define N r4
|
|
kusano |
2b45e8 |
#define A r5
|
|
kusano |
2b45e8 |
#define LDA r6
|
|
kusano |
2b45e8 |
#define B r7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define AO1 r8
|
|
kusano |
2b45e8 |
#define AO2 r9
|
|
kusano |
2b45e8 |
#define AO3 r10
|
|
kusano |
2b45e8 |
#define AO4 r11
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define J r25
|
|
kusano |
2b45e8 |
#define B1 r26
|
|
kusano |
2b45e8 |
#define B2 r27
|
|
kusano |
2b45e8 |
#define B3 r28
|
|
kusano |
2b45e8 |
#define M4 r29
|
|
kusano |
2b45e8 |
#define INC r30
|
|
kusano |
2b45e8 |
#define INC2 r31
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define c01 f0
|
|
kusano |
2b45e8 |
#define c02 f1
|
|
kusano |
2b45e8 |
#define c03 f2
|
|
kusano |
2b45e8 |
#define c04 f3
|
|
kusano |
2b45e8 |
#define c05 f4
|
|
kusano |
2b45e8 |
#define c06 f5
|
|
kusano |
2b45e8 |
#define c07 f6
|
|
kusano |
2b45e8 |
#define c08 f7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
PROLOGUE
|
|
kusano |
2b45e8 |
PROFCODE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
stwu r31, -4(SP)
|
|
kusano |
2b45e8 |
stwu r30, -4(SP)
|
|
kusano |
2b45e8 |
stwu r29, -4(SP)
|
|
kusano |
2b45e8 |
stwu r28, -4(SP)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
stwu r27, -4(SP)
|
|
kusano |
2b45e8 |
stwu r26, -4(SP)
|
|
kusano |
2b45e8 |
stwu r25, -4(SP)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
slwi LDA, LDA, BASE_SHIFT
|
|
kusano |
2b45e8 |
slwi M4, M, 2 + BASE_SHIFT
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
li r8, -4
|
|
kusano |
2b45e8 |
li r9, -2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
and B2, N, r8
|
|
kusano |
2b45e8 |
and B3, N, r9
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mullw B2, B2, M
|
|
kusano |
2b45e8 |
mullw B3, B3, M
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
slwi B2, B2, BASE_SHIFT
|
|
kusano |
2b45e8 |
slwi B3, B3, BASE_SHIFT
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
add B2, B2, B
|
|
kusano |
2b45e8 |
add B3, B3, B
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
cmpwi cr0, M, 0
|
|
kusano |
2b45e8 |
ble- .L99
|
|
kusano |
2b45e8 |
cmpwi cr0, N, 0
|
|
kusano |
2b45e8 |
ble- .L99
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subi B2, B2, 2 * SIZE
|
|
kusano |
2b45e8 |
subi B3, B3, 2 * SIZE
|
|
kusano |
2b45e8 |
subi M4, M4, 14 * SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
li INC, 1 * SIZE
|
|
kusano |
2b45e8 |
li INC2, 2 * SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
andi. r0, A, 2 * SIZE - 1
|
|
kusano |
2b45e8 |
bne .L100
|
|
kusano |
2b45e8 |
andi. r0, LDA, 2 * SIZE - 1
|
|
kusano |
2b45e8 |
bne .L100
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subi A, A, 2 * SIZE
|
|
kusano |
2b45e8 |
srawi. J, M, 2
|
|
kusano |
2b45e8 |
ble .L20
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L10:
|
|
kusano |
2b45e8 |
mr AO1, A
|
|
kusano |
2b45e8 |
add AO2, A, LDA
|
|
kusano |
2b45e8 |
add AO3, AO2, LDA
|
|
kusano |
2b45e8 |
add AO4, AO3, LDA
|
|
kusano |
2b45e8 |
add A, AO4, LDA
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
sub B1, B, M4
|
|
kusano |
2b45e8 |
addi B, B, 16 * SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, N, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
ble .L15
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L12:
|
|
kusano |
2b45e8 |
LFPDUX c01, AO1, INC2
|
|
kusano |
2b45e8 |
LFPDUX c02, AO1, INC2
|
|
kusano |
2b45e8 |
LFPDUX c03, AO2, INC2
|
|
kusano |
2b45e8 |
LFPDUX c04, AO2, INC2
|
|
kusano |
2b45e8 |
LFPDUX c05, AO3, INC2
|
|
kusano |
2b45e8 |
LFPDUX c06, AO3, INC2
|
|
kusano |
2b45e8 |
LFPDUX c07, AO4, INC2
|
|
kusano |
2b45e8 |
LFPDUX c08, AO4, INC2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX c01, B1, M4
|
|
kusano |
2b45e8 |
STFPDUX c02, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c03, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c04, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c05, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c06, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c07, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c08, B1, INC2
|
|
kusano |
2b45e8 |
bdnz .L12
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L15:
|
|
kusano |
2b45e8 |
andi. r0, N, 3
|
|
kusano |
2b45e8 |
ble .L19
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
andi. r0, N, 2
|
|
kusano |
2b45e8 |
ble .L17
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFPDUX c01, AO1, INC2
|
|
kusano |
2b45e8 |
LFPDUX c03, AO2, INC2
|
|
kusano |
2b45e8 |
LFPDUX c05, AO3, INC2
|
|
kusano |
2b45e8 |
LFPDUX c07, AO4, INC2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX c01, B2, INC2
|
|
kusano |
2b45e8 |
STFPDUX c03, B2, INC2
|
|
kusano |
2b45e8 |
STFPDUX c05, B2, INC2
|
|
kusano |
2b45e8 |
STFPDUX c07, B2, INC2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L17:
|
|
kusano |
2b45e8 |
andi. r0, N, 1
|
|
kusano |
2b45e8 |
ble .L19
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX c01, AO1, INC2
|
|
kusano |
2b45e8 |
LFDUX c02, AO2, INC2
|
|
kusano |
2b45e8 |
LFDUX c03, AO3, INC2
|
|
kusano |
2b45e8 |
LFDUX c04, AO4, INC2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fsmfp c01, c02
|
|
kusano |
2b45e8 |
fsmfp c03, c04
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX c01, B3, INC2
|
|
kusano |
2b45e8 |
STFPDUX c03, B3, INC2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L19:
|
|
kusano |
2b45e8 |
addic. J, J, -1
|
|
kusano |
2b45e8 |
bgt .L10
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L20:
|
|
kusano |
2b45e8 |
andi. J, M, 2
|
|
kusano |
2b45e8 |
addi M4, M4, 8 * SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ble .L30
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mr AO1, A
|
|
kusano |
2b45e8 |
add AO2, A, LDA
|
|
kusano |
2b45e8 |
add A, AO2, LDA
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
sub B1, B, M4
|
|
kusano |
2b45e8 |
addi B, B, 8 * SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, N, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
ble .L23
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L22:
|
|
kusano |
2b45e8 |
LFPDUX c01, AO1, INC2
|
|
kusano |
2b45e8 |
LFPDUX c02, AO1, INC2
|
|
kusano |
2b45e8 |
LFPDUX c03, AO2, INC2
|
|
kusano |
2b45e8 |
LFPDUX c04, AO2, INC2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX c01, B1, M4
|
|
kusano |
2b45e8 |
STFPDUX c02, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c03, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c04, B1, INC2
|
|
kusano |
2b45e8 |
bdnz .L22
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L23:
|
|
kusano |
2b45e8 |
andi. r0, N, 2
|
|
kusano |
2b45e8 |
ble .L24
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFPDUX c01, AO1, INC2
|
|
kusano |
2b45e8 |
LFPDUX c03, AO2, INC2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX c01, B2, INC2
|
|
kusano |
2b45e8 |
STFPDUX c03, B2, INC2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L24:
|
|
kusano |
2b45e8 |
andi. r0, N, 1
|
|
kusano |
2b45e8 |
ble .L30
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX c01, AO1, INC2
|
|
kusano |
2b45e8 |
LFDUX c02, AO2, INC2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fsmfp c01, c02
|
|
kusano |
2b45e8 |
STFPDUX c01, B3, INC2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L30:
|
|
kusano |
2b45e8 |
andi. J, M, 1
|
|
kusano |
2b45e8 |
addi M4, M4, 4 * SIZE
|
|
kusano |
2b45e8 |
ble .L99
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mr AO1, A
|
|
kusano |
2b45e8 |
sub B1, B, M4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, N, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
ble .L33
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L32:
|
|
kusano |
2b45e8 |
LFPDUX c01, AO1, INC2
|
|
kusano |
2b45e8 |
LFPDUX c02, AO1, INC2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX c01, B1, M4
|
|
kusano |
2b45e8 |
STFPDUX c02, B1, INC2
|
|
kusano |
2b45e8 |
bdnz .L32
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L33:
|
|
kusano |
2b45e8 |
andi. r0, N, 2
|
|
kusano |
2b45e8 |
ble .L34
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFPDUX c01, AO1, INC2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX c01, B2, INC2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L34:
|
|
kusano |
2b45e8 |
andi. r0, N, 1
|
|
kusano |
2b45e8 |
ble .L99
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDX c01, AO1, INC2
|
|
kusano |
2b45e8 |
STFDX c01, B3, INC2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L99:
|
|
kusano |
2b45e8 |
addi SP, SP, -4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
lwzu r25, 4(SP)
|
|
kusano |
2b45e8 |
lwzu r26, 4(SP)
|
|
kusano |
2b45e8 |
lwzu r27, 4(SP)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
lwzu r28, 4(SP)
|
|
kusano |
2b45e8 |
lwzu r29, 4(SP)
|
|
kusano |
2b45e8 |
lwzu r30, 4(SP)
|
|
kusano |
2b45e8 |
lwzu r31, 4(SP)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addi SP, SP, 4
|
|
kusano |
2b45e8 |
blr
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L100:
|
|
kusano |
2b45e8 |
subi A, A, SIZE
|
|
kusano |
2b45e8 |
srawi. J, M, 2
|
|
kusano |
2b45e8 |
ble .L120
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L110:
|
|
kusano |
2b45e8 |
mr AO1, A
|
|
kusano |
2b45e8 |
add AO2, A, LDA
|
|
kusano |
2b45e8 |
add AO3, AO2, LDA
|
|
kusano |
2b45e8 |
add AO4, AO3, LDA
|
|
kusano |
2b45e8 |
add A, AO4, LDA
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
sub B1, B, M4
|
|
kusano |
2b45e8 |
addi B, B, 16 * SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, N, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
ble .L115
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L112:
|
|
kusano |
2b45e8 |
LFDUX c01, AO1, INC
|
|
kusano |
2b45e8 |
LFDUX c03, AO2, INC
|
|
kusano |
2b45e8 |
LFDUX c05, AO3, INC
|
|
kusano |
2b45e8 |
LFDUX c07, AO4, INC
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFSDUX c01, AO1, INC
|
|
kusano |
2b45e8 |
LFSDUX c03, AO2, INC
|
|
kusano |
2b45e8 |
LFSDUX c05, AO3, INC
|
|
kusano |
2b45e8 |
LFSDUX c07, AO4, INC
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX c02, AO1, INC
|
|
kusano |
2b45e8 |
LFDUX c04, AO2, INC
|
|
kusano |
2b45e8 |
LFDUX c06, AO3, INC
|
|
kusano |
2b45e8 |
LFDUX c08, AO4, INC
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFSDUX c02, AO1, INC
|
|
kusano |
2b45e8 |
LFSDUX c04, AO2, INC
|
|
kusano |
2b45e8 |
LFSDUX c06, AO3, INC
|
|
kusano |
2b45e8 |
LFSDUX c08, AO4, INC
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX c01, B1, M4
|
|
kusano |
2b45e8 |
STFPDUX c02, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c03, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c04, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c05, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c06, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c07, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c08, B1, INC2
|
|
kusano |
2b45e8 |
bdnz .L112
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L115:
|
|
kusano |
2b45e8 |
andi. r0, N, 3
|
|
kusano |
2b45e8 |
ble .L119
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
andi. r0, N, 2
|
|
kusano |
2b45e8 |
ble .L117
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX c01, AO1, INC
|
|
kusano |
2b45e8 |
LFDUX c03, AO2, INC
|
|
kusano |
2b45e8 |
LFDUX c05, AO3, INC
|
|
kusano |
2b45e8 |
LFDUX c07, AO4, INC
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFSDUX c01, AO1, INC
|
|
kusano |
2b45e8 |
LFSDUX c03, AO2, INC
|
|
kusano |
2b45e8 |
LFSDUX c05, AO3, INC
|
|
kusano |
2b45e8 |
LFSDUX c07, AO4, INC
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX c01, B2, INC2
|
|
kusano |
2b45e8 |
STFPDUX c03, B2, INC2
|
|
kusano |
2b45e8 |
STFPDUX c05, B2, INC2
|
|
kusano |
2b45e8 |
STFPDUX c07, B2, INC2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L117:
|
|
kusano |
2b45e8 |
andi. r0, N, 1
|
|
kusano |
2b45e8 |
ble .L119
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX c01, AO1, INC
|
|
kusano |
2b45e8 |
LFDUX c02, AO2, INC
|
|
kusano |
2b45e8 |
LFDUX c03, AO3, INC
|
|
kusano |
2b45e8 |
LFDUX c04, AO4, INC
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fsmfp c01, c02
|
|
kusano |
2b45e8 |
fsmfp c03, c04
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX c01, B3, INC2
|
|
kusano |
2b45e8 |
STFPDUX c03, B3, INC2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L119:
|
|
kusano |
2b45e8 |
addic. J, J, -1
|
|
kusano |
2b45e8 |
bgt .L110
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L120:
|
|
kusano |
2b45e8 |
andi. J, M, 2
|
|
kusano |
2b45e8 |
addi M4, M4, 8 * SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ble .L130
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mr AO1, A
|
|
kusano |
2b45e8 |
add AO2, A, LDA
|
|
kusano |
2b45e8 |
add A, AO2, LDA
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
sub B1, B, M4
|
|
kusano |
2b45e8 |
addi B, B, 8 * SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, N, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
ble .L123
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L122:
|
|
kusano |
2b45e8 |
LFDUX c01, AO1, INC
|
|
kusano |
2b45e8 |
LFDUX c03, AO2, INC
|
|
kusano |
2b45e8 |
LFSDUX c01, AO1, INC
|
|
kusano |
2b45e8 |
LFSDUX c03, AO2, INC
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX c02, AO1, INC
|
|
kusano |
2b45e8 |
LFDUX c04, AO2, INC
|
|
kusano |
2b45e8 |
LFSDUX c02, AO1, INC
|
|
kusano |
2b45e8 |
LFSDUX c04, AO2, INC
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX c01, B1, M4
|
|
kusano |
2b45e8 |
STFPDUX c02, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c03, B1, INC2
|
|
kusano |
2b45e8 |
STFPDUX c04, B1, INC2
|
|
kusano |
2b45e8 |
bdnz .L122
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L123:
|
|
kusano |
2b45e8 |
andi. r0, N, 2
|
|
kusano |
2b45e8 |
ble .L124
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX c01, AO1, INC
|
|
kusano |
2b45e8 |
LFDUX c03, AO2, INC
|
|
kusano |
2b45e8 |
LFSDUX c01, AO1, INC
|
|
kusano |
2b45e8 |
LFSDUX c03, AO2, INC
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX c01, B2, INC2
|
|
kusano |
2b45e8 |
STFPDUX c03, B2, INC2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L124:
|
|
kusano |
2b45e8 |
andi. r0, N, 1
|
|
kusano |
2b45e8 |
ble .L130
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX c01, AO1, INC
|
|
kusano |
2b45e8 |
LFDUX c02, AO2, INC
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fsmfp c01, c02
|
|
kusano |
2b45e8 |
STFPDUX c01, B3, INC2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L130:
|
|
kusano |
2b45e8 |
andi. J, M, 1
|
|
kusano |
2b45e8 |
addi M4, M4, 4 * SIZE
|
|
kusano |
2b45e8 |
ble .L999
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mr AO1, A
|
|
kusano |
2b45e8 |
sub B1, B, M4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, N, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
ble .L133
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L132:
|
|
kusano |
2b45e8 |
LFDUX c01, AO1, INC
|
|
kusano |
2b45e8 |
LFDUX c02, AO1, INC
|
|
kusano |
2b45e8 |
LFDUX c03, AO1, INC
|
|
kusano |
2b45e8 |
LFDUX c04, AO1, INC
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fsmfp c01, c02
|
|
kusano |
2b45e8 |
fsmfp c03, c04
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX c01, B1, M4
|
|
kusano |
2b45e8 |
STFPDUX c03, B1, INC2
|
|
kusano |
2b45e8 |
bdnz .L132
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L133:
|
|
kusano |
2b45e8 |
andi. r0, N, 2
|
|
kusano |
2b45e8 |
ble .L134
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX c01, AO1, INC
|
|
kusano |
2b45e8 |
LFDUX c02, AO1, INC
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fsmfp c01, c02
|
|
kusano |
2b45e8 |
STFPDUX c01, B2, INC2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L134:
|
|
kusano |
2b45e8 |
andi. r0, N, 1
|
|
kusano |
2b45e8 |
ble .L999
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDX c01, AO1, INC
|
|
kusano |
2b45e8 |
STFDX c01, B3, INC2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L999:
|
|
kusano |
2b45e8 |
addi SP, SP, -4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
lwzu r25, 4(SP)
|
|
kusano |
2b45e8 |
lwzu r26, 4(SP)
|
|
kusano |
2b45e8 |
lwzu r27, 4(SP)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
lwzu r28, 4(SP)
|
|
kusano |
2b45e8 |
lwzu r29, 4(SP)
|
|
kusano |
2b45e8 |
lwzu r30, 4(SP)
|
|
kusano |
2b45e8 |
lwzu r31, 4(SP)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addi SP, SP, 4
|
|
kusano |
2b45e8 |
blr
|
|
kusano |
2b45e8 |
EPILOGUE
|