|
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 N r3
|
|
kusano |
2b45e8 |
#define X r6
|
|
kusano |
2b45e8 |
#define INCX r7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define INCX2 r4
|
|
kusano |
2b45e8 |
#define XX r5
|
|
kusano |
2b45e8 |
#define Y r8
|
|
kusano |
2b45e8 |
#define YY r9
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define ALPHA f1
|
|
kusano |
2b45e8 |
#define ALPHA_I f2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define A1 f0
|
|
kusano |
2b45e8 |
#define A2 f16
|
|
kusano |
2b45e8 |
#define A3 f17
|
|
kusano |
2b45e8 |
#define A4 f3
|
|
kusano |
2b45e8 |
#define A5 f4
|
|
kusano |
2b45e8 |
#define A6 f5
|
|
kusano |
2b45e8 |
#define A7 f6
|
|
kusano |
2b45e8 |
#define A8 f7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define B1 f8
|
|
kusano |
2b45e8 |
#define B2 f9
|
|
kusano |
2b45e8 |
#define B3 f10
|
|
kusano |
2b45e8 |
#define B4 f11
|
|
kusano |
2b45e8 |
#define B5 f12
|
|
kusano |
2b45e8 |
#define B6 f13
|
|
kusano |
2b45e8 |
#define B7 f14
|
|
kusano |
2b45e8 |
#define B8 f15
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
PROLOGUE
|
|
kusano |
2b45e8 |
PROFCODE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
li r10, -16
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
stfpdux f14, SP, r10
|
|
kusano |
2b45e8 |
stfpdux f15, SP, r10
|
|
kusano |
2b45e8 |
stfpdux f16, SP, r10
|
|
kusano |
2b45e8 |
stfpdux f17, SP, r10
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
li r10, 0
|
|
kusano |
2b45e8 |
stwu r10, -4(SP)
|
|
kusano |
2b45e8 |
stwu r10, -4(SP)
|
|
kusano |
2b45e8 |
stwu r10, -4(SP)
|
|
kusano |
2b45e8 |
stwu r10, -4(SP)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
lfpdx A1, SP, r10 # Zero clear
|
|
kusano |
2b45e8 |
fsmfp ALPHA, ALPHA_I
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
slwi INCX, INCX, BASE_SHIFT
|
|
kusano |
2b45e8 |
add INCX2, INCX, INCX
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
cmpwi cr0, N, 0
|
|
kusano |
2b45e8 |
ble LL(999)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
cmpwi cr0, INCX, SIZE
|
|
kusano |
2b45e8 |
bne LL(100)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fcmpu cr7, ALPHA, A1
|
|
kusano |
2b45e8 |
bne cr7, LL(50)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fscmp cr7, ALPHA, A1
|
|
kusano |
2b45e8 |
bne cr7, LL(50)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
andi. r0, X, 2 * SIZE - 1
|
|
kusano |
2b45e8 |
bne LL(20)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
sub X, X, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, N, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
beq- LL(15)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(12):
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
bdnz LL(12)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(15):
|
|
kusano |
2b45e8 |
andi. r0, N, 3
|
|
kusano |
2b45e8 |
beq LL(999)
|
|
kusano |
2b45e8 |
andi. r0, N, 2
|
|
kusano |
2b45e8 |
beq LL(17)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(17):
|
|
kusano |
2b45e8 |
andi. r0, N, 1
|
|
kusano |
2b45e8 |
beq LL(999)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
b LL(999)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(20):
|
|
kusano |
2b45e8 |
sub X, X, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFDX A1, X, INCX2
|
|
kusano |
2b45e8 |
addi X, X, SIZE
|
|
kusano |
2b45e8 |
addi N, N, -1
|
|
kusano |
2b45e8 |
cmpwi cr0, N, 0
|
|
kusano |
2b45e8 |
ble LL(29)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, N, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
beq- LL(25)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(22):
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
bdnz LL(22)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(25):
|
|
kusano |
2b45e8 |
andi. r0, N, 3
|
|
kusano |
2b45e8 |
beq LL(29)
|
|
kusano |
2b45e8 |
andi. r0, N, 2
|
|
kusano |
2b45e8 |
beq LL(27)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(27):
|
|
kusano |
2b45e8 |
andi. r0, N, 1
|
|
kusano |
2b45e8 |
beq LL(29)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(29):
|
|
kusano |
2b45e8 |
STFDX A1, X, INCX2
|
|
kusano |
2b45e8 |
b LL(999)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(50):
|
|
kusano |
2b45e8 |
sub Y, X, INCX2
|
|
kusano |
2b45e8 |
sub X, X, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
andi. r0, X, 2 * SIZE - 1
|
|
kusano |
2b45e8 |
bne LL(60)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, N, 3
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
beq- LL(55)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
LFPDUX A2, X, INCX2
|
|
kusano |
2b45e8 |
LFPDUX A3, X, INCX2
|
|
kusano |
2b45e8 |
LFPDUX A4, X, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFPDUX A5, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
LFPDUX A6, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B2, ALPHA, A2
|
|
kusano |
2b45e8 |
LFPDUX A7, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B3, ALPHA, A3
|
|
kusano |
2b45e8 |
LFPDUX A8, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B4, ALPHA, A4
|
|
kusano |
2b45e8 |
fxpmul B5, ALPHA, A5
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B1, ALPHA, A1, B1
|
|
kusano |
2b45e8 |
fxcxnpma B2, ALPHA, A2, B2
|
|
kusano |
2b45e8 |
bdz LL(53)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(52):
|
|
kusano |
2b45e8 |
fxcxnpma B3, ALPHA, A3, B3
|
|
kusano |
2b45e8 |
LFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B6, ALPHA, A6
|
|
kusano |
2b45e8 |
STFPDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B4, ALPHA, A4, B4
|
|
kusano |
2b45e8 |
LFPDUX A2, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B7, ALPHA, A7
|
|
kusano |
2b45e8 |
STFPDUX B2, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B5, ALPHA, A5, B5
|
|
kusano |
2b45e8 |
LFPDUX A3, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B8, ALPHA, A8
|
|
kusano |
2b45e8 |
STFPDUX B3, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B6, ALPHA, A6, B6
|
|
kusano |
2b45e8 |
LFPDUX A4, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
STFPDUX B4, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B7, ALPHA, A7, B7
|
|
kusano |
2b45e8 |
LFPDUX A5, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B2, ALPHA, A2
|
|
kusano |
2b45e8 |
STFPDUX B5, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B8, ALPHA, A8, B8
|
|
kusano |
2b45e8 |
LFPDUX A6, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B3, ALPHA, A3
|
|
kusano |
2b45e8 |
STFPDUX B6, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B1, ALPHA, A1, B1
|
|
kusano |
2b45e8 |
LFPDUX A7, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B4, ALPHA, A4
|
|
kusano |
2b45e8 |
STFPDUX B7, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B2, ALPHA, A2, B2
|
|
kusano |
2b45e8 |
LFPDUX A8, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B5, ALPHA, A5
|
|
kusano |
2b45e8 |
STFPDUX B8, Y, INCX2
|
|
kusano |
2b45e8 |
bdnz LL(52)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(53):
|
|
kusano |
2b45e8 |
fxcxnpma B3, ALPHA, A3, B3
|
|
kusano |
2b45e8 |
fxpmul B6, ALPHA, A6
|
|
kusano |
2b45e8 |
STFPDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B4, ALPHA, A4, B4
|
|
kusano |
2b45e8 |
fxpmul B7, ALPHA, A7
|
|
kusano |
2b45e8 |
STFPDUX B2, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B5, ALPHA, A5, B5
|
|
kusano |
2b45e8 |
fxpmul B8, ALPHA, A8
|
|
kusano |
2b45e8 |
STFPDUX B3, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B6, ALPHA, A6, B6
|
|
kusano |
2b45e8 |
STFPDUX B4, Y, INCX2
|
|
kusano |
2b45e8 |
fxcxnpma B7, ALPHA, A7, B7
|
|
kusano |
2b45e8 |
STFPDUX B5, Y, INCX2
|
|
kusano |
2b45e8 |
fxcxnpma B8, ALPHA, A8, B8
|
|
kusano |
2b45e8 |
STFPDUX B6, Y, INCX2
|
|
kusano |
2b45e8 |
STFPDUX B7, Y, INCX2
|
|
kusano |
2b45e8 |
STFPDUX B8, Y, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(55):
|
|
kusano |
2b45e8 |
andi. r0, N, 7
|
|
kusano |
2b45e8 |
beq LL(999)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
andi. r0, N, 4
|
|
kusano |
2b45e8 |
beq LL(56)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
LFPDUX A2, X, INCX2
|
|
kusano |
2b45e8 |
LFPDUX A3, X, INCX2
|
|
kusano |
2b45e8 |
LFPDUX A4, X, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxpmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
fxpmul B2, ALPHA, A2
|
|
kusano |
2b45e8 |
fxpmul B3, ALPHA, A3
|
|
kusano |
2b45e8 |
fxpmul B4, ALPHA, A4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B1, ALPHA, A1, B1
|
|
kusano |
2b45e8 |
fxcxnpma B2, ALPHA, A2, B2
|
|
kusano |
2b45e8 |
fxcxnpma B3, ALPHA, A3, B3
|
|
kusano |
2b45e8 |
fxcxnpma B4, ALPHA, A4, B4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
STFPDUX B2, Y, INCX2
|
|
kusano |
2b45e8 |
STFPDUX B3, Y, INCX2
|
|
kusano |
2b45e8 |
STFPDUX B4, Y, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(56):
|
|
kusano |
2b45e8 |
andi. r0, N, 2
|
|
kusano |
2b45e8 |
beq LL(57)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
LFPDUX A2, X, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxpmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
fxpmul B2, ALPHA, A2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B1, ALPHA, A1, B1
|
|
kusano |
2b45e8 |
fxcxnpma B2, ALPHA, A2, B2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
STFPDUX B2, Y, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(57):
|
|
kusano |
2b45e8 |
andi. r0, N, 1
|
|
kusano |
2b45e8 |
beq LL(999)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxpmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
fxcxnpma B1, ALPHA, A1, B1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
b LL(999)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(60):
|
|
kusano |
2b45e8 |
addi XX, X, SIZE
|
|
kusano |
2b45e8 |
addi YY, Y, SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, N, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
beq- LL(65)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
LFDUX A2, XX, INCX2
|
|
kusano |
2b45e8 |
LFDUX A3, X, INCX2
|
|
kusano |
2b45e8 |
LFDUX A4, XX, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX A5, X, INCX2
|
|
kusano |
2b45e8 |
fmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
LFDUX A6, XX, INCX2
|
|
kusano |
2b45e8 |
fmul B2, ALPHA_I, A1
|
|
kusano |
2b45e8 |
LFDUX A7, X, INCX2
|
|
kusano |
2b45e8 |
fmul B3, ALPHA, A3
|
|
kusano |
2b45e8 |
LFDUX A8, XX, INCX2
|
|
kusano |
2b45e8 |
fmul B4, ALPHA_I, A3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmul B5, ALPHA, A5
|
|
kusano |
2b45e8 |
fnmsub B1, ALPHA_I, A2, B1
|
|
kusano |
2b45e8 |
fmadd B2, ALPHA , A2, B2
|
|
kusano |
2b45e8 |
bdz LL(63)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(62):
|
|
kusano |
2b45e8 |
fnmsub B3, ALPHA_I, A4, B3
|
|
kusano |
2b45e8 |
LFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
fmul B6, ALPHA_I, A5
|
|
kusano |
2b45e8 |
STFDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmadd B4, ALPHA , A4, B4
|
|
kusano |
2b45e8 |
LFDUX A2, XX, INCX2
|
|
kusano |
2b45e8 |
fmul B7, ALPHA, A7
|
|
kusano |
2b45e8 |
STFDUX B2, YY, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fnmsub B5, ALPHA_I, A6, B5
|
|
kusano |
2b45e8 |
LFDUX A3, X, INCX2
|
|
kusano |
2b45e8 |
fmul B8, ALPHA_I, A7
|
|
kusano |
2b45e8 |
STFDUX B3, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmadd B6, ALPHA , A6, B6
|
|
kusano |
2b45e8 |
LFDUX A4, XX, INCX2
|
|
kusano |
2b45e8 |
fmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
STFDUX B4, YY, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fnmsub B7, ALPHA_I, A8, B7
|
|
kusano |
2b45e8 |
LFDUX A5, X, INCX2
|
|
kusano |
2b45e8 |
fmul B2, ALPHA_I, A1
|
|
kusano |
2b45e8 |
STFDUX B5, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmadd B8, ALPHA , A8, B8
|
|
kusano |
2b45e8 |
LFDUX A6, XX, INCX2
|
|
kusano |
2b45e8 |
fmul B3, ALPHA, A3
|
|
kusano |
2b45e8 |
STFDUX B6, YY, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fnmsub B1, ALPHA_I, A2, B1
|
|
kusano |
2b45e8 |
LFDUX A7, X, INCX2
|
|
kusano |
2b45e8 |
fmul B4, ALPHA_I, A3
|
|
kusano |
2b45e8 |
STFDUX B7, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmadd B2, ALPHA , A2, B2
|
|
kusano |
2b45e8 |
LFDUX A8, XX, INCX2
|
|
kusano |
2b45e8 |
fmul B5, ALPHA, A5
|
|
kusano |
2b45e8 |
STFDUX B8, YY, INCX2
|
|
kusano |
2b45e8 |
bdnz LL(62)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(63):
|
|
kusano |
2b45e8 |
fnmsub B3, ALPHA_I, A4, B3
|
|
kusano |
2b45e8 |
fmul B6, ALPHA_I, A5
|
|
kusano |
2b45e8 |
STFDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmadd B4, ALPHA , A4, B4
|
|
kusano |
2b45e8 |
fmul B7, ALPHA, A7
|
|
kusano |
2b45e8 |
STFDUX B2, YY, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fnmsub B5, ALPHA_I, A6, B5
|
|
kusano |
2b45e8 |
fmul B8, ALPHA_I, A7
|
|
kusano |
2b45e8 |
STFDUX B3, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmadd B6, ALPHA , A6, B6
|
|
kusano |
2b45e8 |
STFDUX B4, YY, INCX2
|
|
kusano |
2b45e8 |
fnmsub B7, ALPHA_I, A8, B7
|
|
kusano |
2b45e8 |
STFDUX B5, Y, INCX2
|
|
kusano |
2b45e8 |
fmadd B8, ALPHA , A8, B8
|
|
kusano |
2b45e8 |
STFDUX B6, YY, INCX2
|
|
kusano |
2b45e8 |
STFDUX B7, Y, INCX2
|
|
kusano |
2b45e8 |
STFDUX B8, YY, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(65):
|
|
kusano |
2b45e8 |
andi. r0, N, 3
|
|
kusano |
2b45e8 |
beq LL(999)
|
|
kusano |
2b45e8 |
andi. r0, N, 2
|
|
kusano |
2b45e8 |
beq LL(67)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
LFDUX A2, XX, INCX2
|
|
kusano |
2b45e8 |
LFDUX A3, X, INCX2
|
|
kusano |
2b45e8 |
LFDUX A4, XX, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
fmul B2, ALPHA, A2
|
|
kusano |
2b45e8 |
fmul B3, ALPHA, A3
|
|
kusano |
2b45e8 |
fmul B4, ALPHA, A4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fnmsub B1, ALPHA_I, A2, B1
|
|
kusano |
2b45e8 |
fmadd B2, ALPHA_I, A1, B2
|
|
kusano |
2b45e8 |
fnmsub B3, ALPHA_I, A4, B3
|
|
kusano |
2b45e8 |
fmadd B4, ALPHA_I, A3, B4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
STFDUX B2, YY, INCX2
|
|
kusano |
2b45e8 |
STFDUX B3, Y, INCX2
|
|
kusano |
2b45e8 |
STFDUX B4, YY, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(67):
|
|
kusano |
2b45e8 |
andi. r0, N, 1
|
|
kusano |
2b45e8 |
beq LL(999)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
LFDUX A2, XX, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
fmul B2, ALPHA, A2
|
|
kusano |
2b45e8 |
fnmsub B1, ALPHA_I, A2, B1
|
|
kusano |
2b45e8 |
fmadd B2, ALPHA_I, A1, B2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
STFDUX B2, YY, INCX2
|
|
kusano |
2b45e8 |
b LL(999)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(100):
|
|
kusano |
2b45e8 |
fcmpu cr7, ALPHA, A1
|
|
kusano |
2b45e8 |
bne cr7, LL(150)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fscmp cr7, ALPHA, A1
|
|
kusano |
2b45e8 |
bne cr7, LL(150)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
andi. r0, X, 2 * SIZE - 1
|
|
kusano |
2b45e8 |
bne LL(120)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
sub X, X, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, N, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
beq- LL(115)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(112):
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
bdnz LL(112)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(115):
|
|
kusano |
2b45e8 |
andi. r0, N, 3
|
|
kusano |
2b45e8 |
beq LL(999)
|
|
kusano |
2b45e8 |
andi. r0, N, 2
|
|
kusano |
2b45e8 |
beq LL(117)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(117):
|
|
kusano |
2b45e8 |
andi. r0, N, 1
|
|
kusano |
2b45e8 |
beq LL(999)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
b LL(999)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(120):
|
|
kusano |
2b45e8 |
subi INCX2, INCX2, SIZE
|
|
kusano |
2b45e8 |
li INCX, SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
sub X, X, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, N, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
beq- LL(125)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(122):
|
|
kusano |
2b45e8 |
STFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFDUX A1, X, INCX
|
|
kusano |
2b45e8 |
STFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFDUX A1, X, INCX
|
|
kusano |
2b45e8 |
STFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFDUX A1, X, INCX
|
|
kusano |
2b45e8 |
STFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFDUX A1, X, INCX
|
|
kusano |
2b45e8 |
bdnz LL(122)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(125):
|
|
kusano |
2b45e8 |
andi. r0, N, 3
|
|
kusano |
2b45e8 |
beq LL(999)
|
|
kusano |
2b45e8 |
andi. r0, N, 2
|
|
kusano |
2b45e8 |
beq LL(127)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFDUX A1, X, INCX
|
|
kusano |
2b45e8 |
STFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFDUX A1, X, INCX
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(127):
|
|
kusano |
2b45e8 |
andi. r0, N, 1
|
|
kusano |
2b45e8 |
beq LL(999)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
STFDUX A1, X, INCX
|
|
kusano |
2b45e8 |
b LL(999)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(150):
|
|
kusano |
2b45e8 |
sub Y, X, INCX2
|
|
kusano |
2b45e8 |
sub X, X, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
andi. r0, X, 2 * SIZE - 1
|
|
kusano |
2b45e8 |
bne LL(160)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, N, 3
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
beq- LL(155)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
LFPDUX A2, X, INCX2
|
|
kusano |
2b45e8 |
LFPDUX A3, X, INCX2
|
|
kusano |
2b45e8 |
LFPDUX A4, X, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFPDUX A5, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
LFPDUX A6, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B2, ALPHA, A2
|
|
kusano |
2b45e8 |
LFPDUX A7, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B3, ALPHA, A3
|
|
kusano |
2b45e8 |
LFPDUX A8, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B4, ALPHA, A4
|
|
kusano |
2b45e8 |
fxpmul B5, ALPHA, A5
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B1, ALPHA, A1, B1
|
|
kusano |
2b45e8 |
fxcxnpma B2, ALPHA, A2, B2
|
|
kusano |
2b45e8 |
bdz LL(153)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(152):
|
|
kusano |
2b45e8 |
fxcxnpma B3, ALPHA, A3, B3
|
|
kusano |
2b45e8 |
LFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B6, ALPHA, A6
|
|
kusano |
2b45e8 |
STFPDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B4, ALPHA, A4, B4
|
|
kusano |
2b45e8 |
LFPDUX A2, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B7, ALPHA, A7
|
|
kusano |
2b45e8 |
STFPDUX B2, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B5, ALPHA, A5, B5
|
|
kusano |
2b45e8 |
LFPDUX A3, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B8, ALPHA, A8
|
|
kusano |
2b45e8 |
STFPDUX B3, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B6, ALPHA, A6, B6
|
|
kusano |
2b45e8 |
LFPDUX A4, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
STFPDUX B4, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B7, ALPHA, A7, B7
|
|
kusano |
2b45e8 |
LFPDUX A5, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B2, ALPHA, A2
|
|
kusano |
2b45e8 |
STFPDUX B5, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B8, ALPHA, A8, B8
|
|
kusano |
2b45e8 |
LFPDUX A6, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B3, ALPHA, A3
|
|
kusano |
2b45e8 |
STFPDUX B6, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B1, ALPHA, A1, B1
|
|
kusano |
2b45e8 |
LFPDUX A7, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B4, ALPHA, A4
|
|
kusano |
2b45e8 |
STFPDUX B7, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B2, ALPHA, A2, B2
|
|
kusano |
2b45e8 |
LFPDUX A8, X, INCX2
|
|
kusano |
2b45e8 |
fxpmul B5, ALPHA, A5
|
|
kusano |
2b45e8 |
STFPDUX B8, Y, INCX2
|
|
kusano |
2b45e8 |
bdnz LL(152)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(153):
|
|
kusano |
2b45e8 |
fxcxnpma B3, ALPHA, A3, B3
|
|
kusano |
2b45e8 |
fxpmul B6, ALPHA, A6
|
|
kusano |
2b45e8 |
STFPDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B4, ALPHA, A4, B4
|
|
kusano |
2b45e8 |
fxpmul B7, ALPHA, A7
|
|
kusano |
2b45e8 |
STFPDUX B2, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B5, ALPHA, A5, B5
|
|
kusano |
2b45e8 |
fxpmul B8, ALPHA, A8
|
|
kusano |
2b45e8 |
STFPDUX B3, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B6, ALPHA, A6, B6
|
|
kusano |
2b45e8 |
STFPDUX B4, Y, INCX2
|
|
kusano |
2b45e8 |
fxcxnpma B7, ALPHA, A7, B7
|
|
kusano |
2b45e8 |
STFPDUX B5, Y, INCX2
|
|
kusano |
2b45e8 |
fxcxnpma B8, ALPHA, A8, B8
|
|
kusano |
2b45e8 |
STFPDUX B6, Y, INCX2
|
|
kusano |
2b45e8 |
STFPDUX B7, Y, INCX2
|
|
kusano |
2b45e8 |
STFPDUX B8, Y, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(155):
|
|
kusano |
2b45e8 |
andi. r0, N, 7
|
|
kusano |
2b45e8 |
beq LL(999)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
andi. r0, N, 4
|
|
kusano |
2b45e8 |
beq LL(156)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
LFPDUX A2, X, INCX2
|
|
kusano |
2b45e8 |
LFPDUX A3, X, INCX2
|
|
kusano |
2b45e8 |
LFPDUX A4, X, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxpmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
fxpmul B2, ALPHA, A2
|
|
kusano |
2b45e8 |
fxpmul B3, ALPHA, A3
|
|
kusano |
2b45e8 |
fxpmul B4, ALPHA, A4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B1, ALPHA, A1, B1
|
|
kusano |
2b45e8 |
fxcxnpma B2, ALPHA, A2, B2
|
|
kusano |
2b45e8 |
fxcxnpma B3, ALPHA, A3, B3
|
|
kusano |
2b45e8 |
fxcxnpma B4, ALPHA, A4, B4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
STFPDUX B2, Y, INCX2
|
|
kusano |
2b45e8 |
STFPDUX B3, Y, INCX2
|
|
kusano |
2b45e8 |
STFPDUX B4, Y, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(156):
|
|
kusano |
2b45e8 |
andi. r0, N, 2
|
|
kusano |
2b45e8 |
beq LL(157)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
LFPDUX A2, X, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxpmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
fxpmul B2, ALPHA, A2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxcxnpma B1, ALPHA, A1, B1
|
|
kusano |
2b45e8 |
fxcxnpma B2, ALPHA, A2, B2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
STFPDUX B2, Y, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(157):
|
|
kusano |
2b45e8 |
andi. r0, N, 1
|
|
kusano |
2b45e8 |
beq LL(999)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFPDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fxpmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
fxcxnpma B1, ALPHA, A1, B1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFPDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
b LL(999)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(160):
|
|
kusano |
2b45e8 |
addi XX, X, SIZE
|
|
kusano |
2b45e8 |
addi YY, Y, SIZE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
srawi. r0, N, 2
|
|
kusano |
2b45e8 |
mtspr CTR, r0
|
|
kusano |
2b45e8 |
beq- LL(165)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
LFDUX A2, XX, INCX2
|
|
kusano |
2b45e8 |
LFDUX A3, X, INCX2
|
|
kusano |
2b45e8 |
LFDUX A4, XX, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX A5, X, INCX2
|
|
kusano |
2b45e8 |
fmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
LFDUX A6, XX, INCX2
|
|
kusano |
2b45e8 |
fmul B2, ALPHA_I, A1
|
|
kusano |
2b45e8 |
LFDUX A7, X, INCX2
|
|
kusano |
2b45e8 |
fmul B3, ALPHA, A3
|
|
kusano |
2b45e8 |
LFDUX A8, XX, INCX2
|
|
kusano |
2b45e8 |
fmul B4, ALPHA_I, A3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmul B5, ALPHA, A5
|
|
kusano |
2b45e8 |
fnmsub B1, ALPHA_I, A2, B1
|
|
kusano |
2b45e8 |
fmadd B2, ALPHA , A2, B2
|
|
kusano |
2b45e8 |
bdz LL(163)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(162):
|
|
kusano |
2b45e8 |
fnmsub B3, ALPHA_I, A4, B3
|
|
kusano |
2b45e8 |
LFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
fmul B6, ALPHA_I, A5
|
|
kusano |
2b45e8 |
STFDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmadd B4, ALPHA , A4, B4
|
|
kusano |
2b45e8 |
LFDUX A2, XX, INCX2
|
|
kusano |
2b45e8 |
fmul B7, ALPHA, A7
|
|
kusano |
2b45e8 |
STFDUX B2, YY, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fnmsub B5, ALPHA_I, A6, B5
|
|
kusano |
2b45e8 |
LFDUX A3, X, INCX2
|
|
kusano |
2b45e8 |
fmul B8, ALPHA_I, A7
|
|
kusano |
2b45e8 |
STFDUX B3, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmadd B6, ALPHA , A6, B6
|
|
kusano |
2b45e8 |
LFDUX A4, XX, INCX2
|
|
kusano |
2b45e8 |
fmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
STFDUX B4, YY, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fnmsub B7, ALPHA_I, A8, B7
|
|
kusano |
2b45e8 |
LFDUX A5, X, INCX2
|
|
kusano |
2b45e8 |
fmul B2, ALPHA_I, A1
|
|
kusano |
2b45e8 |
STFDUX B5, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmadd B8, ALPHA , A8, B8
|
|
kusano |
2b45e8 |
LFDUX A6, XX, INCX2
|
|
kusano |
2b45e8 |
fmul B3, ALPHA, A3
|
|
kusano |
2b45e8 |
STFDUX B6, YY, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fnmsub B1, ALPHA_I, A2, B1
|
|
kusano |
2b45e8 |
LFDUX A7, X, INCX2
|
|
kusano |
2b45e8 |
fmul B4, ALPHA_I, A3
|
|
kusano |
2b45e8 |
STFDUX B7, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmadd B2, ALPHA , A2, B2
|
|
kusano |
2b45e8 |
LFDUX A8, XX, INCX2
|
|
kusano |
2b45e8 |
fmul B5, ALPHA, A5
|
|
kusano |
2b45e8 |
STFDUX B8, YY, INCX2
|
|
kusano |
2b45e8 |
bdnz LL(162)
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(163):
|
|
kusano |
2b45e8 |
fnmsub B3, ALPHA_I, A4, B3
|
|
kusano |
2b45e8 |
fmul B6, ALPHA_I, A5
|
|
kusano |
2b45e8 |
STFDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmadd B4, ALPHA , A4, B4
|
|
kusano |
2b45e8 |
fmul B7, ALPHA, A7
|
|
kusano |
2b45e8 |
STFDUX B2, YY, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fnmsub B5, ALPHA_I, A6, B5
|
|
kusano |
2b45e8 |
fmul B8, ALPHA_I, A7
|
|
kusano |
2b45e8 |
STFDUX B3, Y, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmadd B6, ALPHA , A6, B6
|
|
kusano |
2b45e8 |
STFDUX B4, YY, INCX2
|
|
kusano |
2b45e8 |
fnmsub B7, ALPHA_I, A8, B7
|
|
kusano |
2b45e8 |
STFDUX B5, Y, INCX2
|
|
kusano |
2b45e8 |
fmadd B8, ALPHA , A8, B8
|
|
kusano |
2b45e8 |
STFDUX B6, YY, INCX2
|
|
kusano |
2b45e8 |
STFDUX B7, Y, INCX2
|
|
kusano |
2b45e8 |
STFDUX B8, YY, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(165):
|
|
kusano |
2b45e8 |
andi. r0, N, 3
|
|
kusano |
2b45e8 |
beq LL(999)
|
|
kusano |
2b45e8 |
andi. r0, N, 2
|
|
kusano |
2b45e8 |
beq LL(167)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
LFDUX A2, XX, INCX2
|
|
kusano |
2b45e8 |
LFDUX A3, X, INCX2
|
|
kusano |
2b45e8 |
LFDUX A4, XX, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
fmul B2, ALPHA, A2
|
|
kusano |
2b45e8 |
fmul B3, ALPHA, A3
|
|
kusano |
2b45e8 |
fmul B4, ALPHA, A4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fnmsub B1, ALPHA_I, A2, B1
|
|
kusano |
2b45e8 |
fmadd B2, ALPHA_I, A1, B2
|
|
kusano |
2b45e8 |
fnmsub B3, ALPHA_I, A4, B3
|
|
kusano |
2b45e8 |
fmadd B4, ALPHA_I, A3, B4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
STFDUX B2, YY, INCX2
|
|
kusano |
2b45e8 |
STFDUX B3, Y, INCX2
|
|
kusano |
2b45e8 |
STFDUX B4, YY, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(167):
|
|
kusano |
2b45e8 |
andi. r0, N, 1
|
|
kusano |
2b45e8 |
beq LL(999)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LFDUX A1, X, INCX2
|
|
kusano |
2b45e8 |
LFDUX A2, XX, INCX2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
fmul B1, ALPHA, A1
|
|
kusano |
2b45e8 |
fmul B2, ALPHA, A2
|
|
kusano |
2b45e8 |
fnmsub B1, ALPHA_I, A2, B1
|
|
kusano |
2b45e8 |
fmadd B2, ALPHA_I, A1, B2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
STFDUX B1, Y, INCX2
|
|
kusano |
2b45e8 |
STFDUX B2, YY, INCX2
|
|
kusano |
2b45e8 |
.align 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LL(999):
|
|
kusano |
2b45e8 |
li r10, 16
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
lfpdux f17, SP, r10
|
|
kusano |
2b45e8 |
lfpdux f16, SP, r10
|
|
kusano |
2b45e8 |
lfpdux f15, SP, r10
|
|
kusano |
2b45e8 |
lfpdux f14, SP, r10
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addi SP, SP, 16
|
|
kusano |
2b45e8 |
blr
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
EPILOGUE
|