|
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 %i0
|
|
kusano |
2b45e8 |
#define X %i1
|
|
kusano |
2b45e8 |
#define INCX %i2
|
|
kusano |
2b45e8 |
#define I %i3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define v1 %o0
|
|
kusano |
2b45e8 |
#define v2 %o1
|
|
kusano |
2b45e8 |
#define v3 %o2
|
|
kusano |
2b45e8 |
#define v4 %o3
|
|
kusano |
2b45e8 |
#define count %o4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef DOUBLE
|
|
kusano |
2b45e8 |
#define c1 %f0
|
|
kusano |
2b45e8 |
#define c2 %f2
|
|
kusano |
2b45e8 |
#define c3 %f4
|
|
kusano |
2b45e8 |
#define c4 %f6
|
|
kusano |
2b45e8 |
#define t1 %f8
|
|
kusano |
2b45e8 |
#define t2 %f10
|
|
kusano |
2b45e8 |
#define t3 %f12
|
|
kusano |
2b45e8 |
#define t4 %f14
|
|
kusano |
2b45e8 |
#define t5 %f16
|
|
kusano |
2b45e8 |
#define t6 %f18
|
|
kusano |
2b45e8 |
#define t7 %f20
|
|
kusano |
2b45e8 |
#define t8 %f22
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define a1 %f24
|
|
kusano |
2b45e8 |
#define a2 %f26
|
|
kusano |
2b45e8 |
#define a3 %f28
|
|
kusano |
2b45e8 |
#define a4 %f30
|
|
kusano |
2b45e8 |
#define a5 %f32
|
|
kusano |
2b45e8 |
#define a6 %f34
|
|
kusano |
2b45e8 |
#define a7 %f36
|
|
kusano |
2b45e8 |
#define a8 %f38
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define c1 %f0
|
|
kusano |
2b45e8 |
#define c2 %f1
|
|
kusano |
2b45e8 |
#define c3 %f2
|
|
kusano |
2b45e8 |
#define c4 %f3
|
|
kusano |
2b45e8 |
#define t1 %f4
|
|
kusano |
2b45e8 |
#define t2 %f5
|
|
kusano |
2b45e8 |
#define t3 %f6
|
|
kusano |
2b45e8 |
#define t4 %f7
|
|
kusano |
2b45e8 |
#define t5 %f8
|
|
kusano |
2b45e8 |
#define t6 %f9
|
|
kusano |
2b45e8 |
#define t7 %f10
|
|
kusano |
2b45e8 |
#define t8 %f11
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define a1 %f12
|
|
kusano |
2b45e8 |
#define a2 %f13
|
|
kusano |
2b45e8 |
#define a3 %f14
|
|
kusano |
2b45e8 |
#define a4 %f15
|
|
kusano |
2b45e8 |
#define a5 %f16
|
|
kusano |
2b45e8 |
#define a6 %f17
|
|
kusano |
2b45e8 |
#define a7 %f18
|
|
kusano |
2b45e8 |
#define a8 %f19
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef USE_MIN
|
|
kusano |
2b45e8 |
#define FCMOV FMOVG
|
|
kusano |
2b45e8 |
#define CMOV movg
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define FCMOV FMOVL
|
|
kusano |
2b45e8 |
#define CMOV movl
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
PROLOGUE
|
|
kusano |
2b45e8 |
SAVESP
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FCLR(0)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
cmp N, 0
|
|
kusano |
2b45e8 |
ble .LL20
|
|
kusano |
2b45e8 |
clr v1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
cmp INCX, 0
|
|
kusano |
2b45e8 |
ble .LL20
|
|
kusano |
2b45e8 |
sll INCX, ZBASE_SHIFT, INCX
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mov 1, v1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LDF [X + 0 * SIZE], c1
|
|
kusano |
2b45e8 |
LDF [X + 1 * SIZE], c2
|
|
kusano |
2b45e8 |
add N, -1, N
|
|
kusano |
2b45e8 |
FABS c1, c1
|
|
kusano |
2b45e8 |
add X, INCX, X
|
|
kusano |
2b45e8 |
FABS c2, c2
|
|
kusano |
2b45e8 |
cmp N, 0
|
|
kusano |
2b45e8 |
ble .LL20
|
|
kusano |
2b45e8 |
FADD c1, c2, c1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FMOV c1, c2
|
|
kusano |
2b45e8 |
mov 1, v2
|
|
kusano |
2b45e8 |
FMOV c1, c3
|
|
kusano |
2b45e8 |
mov 1, v3
|
|
kusano |
2b45e8 |
FMOV c1, c4
|
|
kusano |
2b45e8 |
mov 1, v4
|
|
kusano |
2b45e8 |
mov 2, count
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
cmp INCX, 2 * SIZE
|
|
kusano |
2b45e8 |
bne .LL50
|
|
kusano |
2b45e8 |
nop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
sra N, 2, I
|
|
kusano |
2b45e8 |
cmp I, 0
|
|
kusano |
2b45e8 |
ble,pn %icc, .LL15
|
|
kusano |
2b45e8 |
nop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LDF [X + 0 * SIZE], a1
|
|
kusano |
2b45e8 |
LDF [X + 1 * SIZE], a2
|
|
kusano |
2b45e8 |
LDF [X + 2 * SIZE], a3
|
|
kusano |
2b45e8 |
LDF [X + 3 * SIZE], a4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LDF [X + 4 * SIZE], a5
|
|
kusano |
2b45e8 |
add I, -1, I
|
|
kusano |
2b45e8 |
LDF [X + 5 * SIZE], a6
|
|
kusano |
2b45e8 |
cmp I, 0
|
|
kusano |
2b45e8 |
LDF [X + 6 * SIZE], a7
|
|
kusano |
2b45e8 |
LDF [X + 7 * SIZE], a8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ble,pt %icc, .LL12
|
|
kusano |
2b45e8 |
add X, 8 * SIZE, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define PREFETCHSIZE 32
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.LL11:
|
|
kusano |
2b45e8 |
prefetch [X + PREFETCHSIZE * SIZE], 0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FABS a1, t1
|
|
kusano |
2b45e8 |
LDF [X + 0 * SIZE], a1
|
|
kusano |
2b45e8 |
FABS a2, t2
|
|
kusano |
2b45e8 |
LDF [X + 1 * SIZE], a2
|
|
kusano |
2b45e8 |
FABS a3, t3
|
|
kusano |
2b45e8 |
LDF [X + 2 * SIZE], a3
|
|
kusano |
2b45e8 |
FABS a4, t4
|
|
kusano |
2b45e8 |
LDF [X + 3 * SIZE], a4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FABS a5, t5
|
|
kusano |
2b45e8 |
LDF [X + 4 * SIZE], a5
|
|
kusano |
2b45e8 |
FABS a6, t6
|
|
kusano |
2b45e8 |
LDF [X + 5 * SIZE], a6
|
|
kusano |
2b45e8 |
FABS a7, t7
|
|
kusano |
2b45e8 |
LDF [X + 6 * SIZE], a7
|
|
kusano |
2b45e8 |
FABS a8, t8
|
|
kusano |
2b45e8 |
LDF [X + 7 * SIZE], a8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FADD t1, t2, t1
|
|
kusano |
2b45e8 |
FADD t3, t4, t3
|
|
kusano |
2b45e8 |
FADD t5, t6, t5
|
|
kusano |
2b45e8 |
FADD t7, t8, t7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FCMP %fcc0, t1, c1
|
|
kusano |
2b45e8 |
FCMP %fcc1, t3, c2
|
|
kusano |
2b45e8 |
FCMP %fcc2, t5, c3
|
|
kusano |
2b45e8 |
FCMP %fcc3, t7, c4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FCMOV %fcc0, t1, c1
|
|
kusano |
2b45e8 |
CMOV %fcc0, count, v1
|
|
kusano |
2b45e8 |
add I, -1, I
|
|
kusano |
2b45e8 |
FCMOV %fcc1, t3, c2
|
|
kusano |
2b45e8 |
CMOV %fcc1, count, v2
|
|
kusano |
2b45e8 |
cmp I, 0
|
|
kusano |
2b45e8 |
FCMOV %fcc2, t5, c3
|
|
kusano |
2b45e8 |
CMOV %fcc2, count, v3
|
|
kusano |
2b45e8 |
FCMOV %fcc3, t7, c4
|
|
kusano |
2b45e8 |
CMOV %fcc3, count, v4
|
|
kusano |
2b45e8 |
add count, 4, count
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
bg,pt %icc, .LL11
|
|
kusano |
2b45e8 |
add X, 8 * SIZE, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.LL12:
|
|
kusano |
2b45e8 |
FABS a1, t1
|
|
kusano |
2b45e8 |
FABS a2, t2
|
|
kusano |
2b45e8 |
FABS a3, t3
|
|
kusano |
2b45e8 |
FABS a4, t4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FABS a5, t5
|
|
kusano |
2b45e8 |
FABS a6, t6
|
|
kusano |
2b45e8 |
FABS a7, t7
|
|
kusano |
2b45e8 |
FABS a8, t8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FADD t1, t2, t1
|
|
kusano |
2b45e8 |
FADD t3, t4, t3
|
|
kusano |
2b45e8 |
FADD t5, t6, t5
|
|
kusano |
2b45e8 |
FADD t7, t8, t7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FCMP %fcc0, t1, c1
|
|
kusano |
2b45e8 |
FCMP %fcc1, t3, c2
|
|
kusano |
2b45e8 |
FCMP %fcc2, t5, c3
|
|
kusano |
2b45e8 |
FCMP %fcc3, t7, c4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FCMOV %fcc0, t1, c1
|
|
kusano |
2b45e8 |
CMOV %fcc0, count, v1
|
|
kusano |
2b45e8 |
FCMOV %fcc1, t3, c2
|
|
kusano |
2b45e8 |
CMOV %fcc1, count, v2
|
|
kusano |
2b45e8 |
FCMOV %fcc2, t5, c3
|
|
kusano |
2b45e8 |
CMOV %fcc2, count, v3
|
|
kusano |
2b45e8 |
FCMOV %fcc3, t7, c4
|
|
kusano |
2b45e8 |
CMOV %fcc3, count, v4
|
|
kusano |
2b45e8 |
add count, 4, count
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.LL15:
|
|
kusano |
2b45e8 |
and N, 3, I
|
|
kusano |
2b45e8 |
cmp I, 0
|
|
kusano |
2b45e8 |
ble,a,pn %icc, .LL19
|
|
kusano |
2b45e8 |
nop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.LL16:
|
|
kusano |
2b45e8 |
LDF [X + 0 * SIZE], a1
|
|
kusano |
2b45e8 |
LDF [X + 1 * SIZE], a2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FABS a1, t1
|
|
kusano |
2b45e8 |
FABS a2, t2
|
|
kusano |
2b45e8 |
FADD t1, t2, t1
|
|
kusano |
2b45e8 |
FCMP %fcc0, t1, c1
|
|
kusano |
2b45e8 |
FCMOV %fcc0, t1, c1
|
|
kusano |
2b45e8 |
CMOV %fcc0, count, v1
|
|
kusano |
2b45e8 |
add count, 1, count
|
|
kusano |
2b45e8 |
add I, -1, I
|
|
kusano |
2b45e8 |
cmp I, 0
|
|
kusano |
2b45e8 |
bg,pt %icc, .LL16
|
|
kusano |
2b45e8 |
add X, 2 * SIZE, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.LL19:
|
|
kusano |
2b45e8 |
FCMP %fcc0, c2, c1
|
|
kusano |
2b45e8 |
add v2, 1, v2
|
|
kusano |
2b45e8 |
FCMP %fcc1, c4, c3
|
|
kusano |
2b45e8 |
add v3, 2, v3
|
|
kusano |
2b45e8 |
add v4, 3, v4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FCMOV %fcc0, c2, c1
|
|
kusano |
2b45e8 |
CMOV %fcc0, v2, v1
|
|
kusano |
2b45e8 |
FCMOV %fcc1, c4, c3
|
|
kusano |
2b45e8 |
CMOV %fcc1, v4, v3
|
|
kusano |
2b45e8 |
FCMP %fcc0, c3, c1
|
|
kusano |
2b45e8 |
CMOV %fcc0, v3, v1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.LL20:
|
|
kusano |
2b45e8 |
mov v1, %i0
|
|
kusano |
2b45e8 |
return %i7 + 8
|
|
kusano |
2b45e8 |
nop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.LL50:
|
|
kusano |
2b45e8 |
sra N, 2, I
|
|
kusano |
2b45e8 |
cmp I, 0
|
|
kusano |
2b45e8 |
ble,pn %icc, .LL55
|
|
kusano |
2b45e8 |
nop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LDF [X + 0 * SIZE], a1
|
|
kusano |
2b45e8 |
LDF [X + 1 * SIZE], a2
|
|
kusano |
2b45e8 |
add X, INCX, X
|
|
kusano |
2b45e8 |
LDF [X + 0 * SIZE], a3
|
|
kusano |
2b45e8 |
LDF [X + 1 * SIZE], a4
|
|
kusano |
2b45e8 |
add X, INCX, X
|
|
kusano |
2b45e8 |
LDF [X + 0 * SIZE], a5
|
|
kusano |
2b45e8 |
LDF [X + 1 * SIZE], a6
|
|
kusano |
2b45e8 |
add X, INCX, X
|
|
kusano |
2b45e8 |
add I, -1, I
|
|
kusano |
2b45e8 |
LDF [X + 0 * SIZE], a7
|
|
kusano |
2b45e8 |
cmp I, 0
|
|
kusano |
2b45e8 |
LDF [X + 1 * SIZE], a8
|
|
kusano |
2b45e8 |
ble,pt %icc, .LL52
|
|
kusano |
2b45e8 |
add X, INCX, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.LL51:
|
|
kusano |
2b45e8 |
FABS a1, t1
|
|
kusano |
2b45e8 |
LDF [X + 0 * SIZE], a1
|
|
kusano |
2b45e8 |
FABS a2, t2
|
|
kusano |
2b45e8 |
LDF [X + 1 * SIZE], a2
|
|
kusano |
2b45e8 |
add X, INCX, X
|
|
kusano |
2b45e8 |
FABS a3, t3
|
|
kusano |
2b45e8 |
LDF [X + 0 * SIZE], a3
|
|
kusano |
2b45e8 |
FABS a4, t4
|
|
kusano |
2b45e8 |
LDF [X + 1 * SIZE], a4
|
|
kusano |
2b45e8 |
add X, INCX, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FABS a5, t5
|
|
kusano |
2b45e8 |
LDF [X + 0 * SIZE], a5
|
|
kusano |
2b45e8 |
FABS a6, t6
|
|
kusano |
2b45e8 |
LDF [X + 1 * SIZE], a6
|
|
kusano |
2b45e8 |
add X, INCX, X
|
|
kusano |
2b45e8 |
FABS a7, t7
|
|
kusano |
2b45e8 |
LDF [X + 0 * SIZE], a7
|
|
kusano |
2b45e8 |
FABS a8, t8
|
|
kusano |
2b45e8 |
LDF [X + 1 * SIZE], a8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FADD t1, t2, t1
|
|
kusano |
2b45e8 |
FADD t3, t4, t3
|
|
kusano |
2b45e8 |
FADD t5, t6, t5
|
|
kusano |
2b45e8 |
FADD t7, t8, t7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FCMP %fcc0, t1, c1
|
|
kusano |
2b45e8 |
FCMP %fcc1, t3, c2
|
|
kusano |
2b45e8 |
FCMP %fcc2, t5, c3
|
|
kusano |
2b45e8 |
FCMP %fcc3, t7, c4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FCMOV %fcc0, t1, c1
|
|
kusano |
2b45e8 |
CMOV %fcc0, count, v1
|
|
kusano |
2b45e8 |
add I, -1, I
|
|
kusano |
2b45e8 |
FCMOV %fcc1, t3, c2
|
|
kusano |
2b45e8 |
CMOV %fcc1, count, v2
|
|
kusano |
2b45e8 |
cmp I, 0
|
|
kusano |
2b45e8 |
FCMOV %fcc2, t5, c3
|
|
kusano |
2b45e8 |
CMOV %fcc2, count, v3
|
|
kusano |
2b45e8 |
FCMOV %fcc3, t7, c4
|
|
kusano |
2b45e8 |
CMOV %fcc3, count, v4
|
|
kusano |
2b45e8 |
add count, 4, count
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
bg,pt %icc, .LL51
|
|
kusano |
2b45e8 |
add X, INCX, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.LL52:
|
|
kusano |
2b45e8 |
FABS a1, t1
|
|
kusano |
2b45e8 |
FABS a2, t2
|
|
kusano |
2b45e8 |
FABS a3, t3
|
|
kusano |
2b45e8 |
FABS a4, t4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FABS a5, t5
|
|
kusano |
2b45e8 |
FABS a6, t6
|
|
kusano |
2b45e8 |
FABS a7, t7
|
|
kusano |
2b45e8 |
FABS a8, t8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FADD t1, t2, t1
|
|
kusano |
2b45e8 |
FADD t3, t4, t3
|
|
kusano |
2b45e8 |
FADD t5, t6, t5
|
|
kusano |
2b45e8 |
FADD t7, t8, t7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FCMP %fcc0, t1, c1
|
|
kusano |
2b45e8 |
FCMP %fcc1, t3, c2
|
|
kusano |
2b45e8 |
FCMP %fcc2, t5, c3
|
|
kusano |
2b45e8 |
FCMP %fcc3, t7, c4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FCMOV %fcc0, t1, c1
|
|
kusano |
2b45e8 |
CMOV %fcc0, count, v1
|
|
kusano |
2b45e8 |
FCMOV %fcc1, t3, c2
|
|
kusano |
2b45e8 |
CMOV %fcc1, count, v2
|
|
kusano |
2b45e8 |
FCMOV %fcc2, t5, c3
|
|
kusano |
2b45e8 |
CMOV %fcc2, count, v3
|
|
kusano |
2b45e8 |
FCMOV %fcc3, t7, c4
|
|
kusano |
2b45e8 |
CMOV %fcc3, count, v4
|
|
kusano |
2b45e8 |
add count, 4, count
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.LL55:
|
|
kusano |
2b45e8 |
and N, 3, I
|
|
kusano |
2b45e8 |
cmp I, 0
|
|
kusano |
2b45e8 |
ble,a,pn %icc, .LL59
|
|
kusano |
2b45e8 |
nop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.LL56:
|
|
kusano |
2b45e8 |
LDF [X + 0 * SIZE], a1
|
|
kusano |
2b45e8 |
LDF [X + 1 * SIZE], a2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FABS a1, t1
|
|
kusano |
2b45e8 |
add I, -1, I
|
|
kusano |
2b45e8 |
FABS a2, t2
|
|
kusano |
2b45e8 |
cmp I, 0
|
|
kusano |
2b45e8 |
FADD t1, t2, t1
|
|
kusano |
2b45e8 |
FCMP %fcc0, t1, c1
|
|
kusano |
2b45e8 |
FCMOV %fcc0, t1, c1
|
|
kusano |
2b45e8 |
CMOV %fcc0, count, v1
|
|
kusano |
2b45e8 |
add count, 1, count
|
|
kusano |
2b45e8 |
bg,pt %icc, .LL56
|
|
kusano |
2b45e8 |
add X, INCX, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.LL59:
|
|
kusano |
2b45e8 |
FCMP %fcc0, c2, c1
|
|
kusano |
2b45e8 |
add v2, 1, v2
|
|
kusano |
2b45e8 |
FCMP %fcc1, c4, c3
|
|
kusano |
2b45e8 |
add v3, 2, v3
|
|
kusano |
2b45e8 |
add v4, 3, v4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
FCMOV %fcc0, c2, c1
|
|
kusano |
2b45e8 |
CMOV %fcc0, v2, v1
|
|
kusano |
2b45e8 |
FCMOV %fcc1, c4, c3
|
|
kusano |
2b45e8 |
CMOV %fcc1, v4, v3
|
|
kusano |
2b45e8 |
FCMP %fcc0, c3, c1
|
|
kusano |
2b45e8 |
CMOV %fcc0, v3, v1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mov v1, %i0
|
|
kusano |
2b45e8 |
return %i7 + 8
|
|
kusano |
2b45e8 |
nop
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
EPILOGUE
|