|
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 |
#ifdef DOUBLE
|
|
kusano |
2b45e8 |
#define PREFETCH_SIZE (13 * 16)
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define PREFETCH_SIZE ( 9 * 32)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if defined(F_INTERFACE) && defined(RETURN_BY_STACK)
|
|
kusano |
2b45e8 |
#define N r33
|
|
kusano |
2b45e8 |
#define X1 r34
|
|
kusano |
2b45e8 |
#define INCX r35
|
|
kusano |
2b45e8 |
#define Y1 r36
|
|
kusano |
2b45e8 |
#define INCY r37
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define N r32
|
|
kusano |
2b45e8 |
#define X1 r33
|
|
kusano |
2b45e8 |
#define INCX r34
|
|
kusano |
2b45e8 |
#define Y1 r35
|
|
kusano |
2b45e8 |
#define INCY r36
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define PRE1 r2
|
|
kusano |
2b45e8 |
#define PRE2 r3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define I r14
|
|
kusano |
2b45e8 |
#define J r15
|
|
kusano |
2b45e8 |
#define Y2 r16
|
|
kusano |
2b45e8 |
#define X2 r17
|
|
kusano |
2b45e8 |
#define INCXM1 r18
|
|
kusano |
2b45e8 |
#define INCYM1 r19
|
|
kusano |
2b45e8 |
#define INCX16 r20
|
|
kusano |
2b45e8 |
#define INCY16 r21
|
|
kusano |
2b45e8 |
#define INCX3M1 r22
|
|
kusano |
2b45e8 |
#define INCY3M1 r23
|
|
kusano |
2b45e8 |
#define XX r24
|
|
kusano |
2b45e8 |
#define YY r25
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define PR r30
|
|
kusano |
2b45e8 |
#define ARLC r31
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define ALPHA f8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
PROLOGUE
|
|
kusano |
2b45e8 |
.prologue
|
|
kusano |
2b45e8 |
PROFCODE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
{ .mfi
|
|
kusano |
2b45e8 |
mov f8 = f0
|
|
kusano |
2b45e8 |
.save ar.lc, ARLC
|
|
kusano |
2b45e8 |
mov ARLC = ar.lc
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mfi
|
|
kusano |
2b45e8 |
mov f9 = f0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.body
|
|
kusano |
2b45e8 |
#ifdef F_INTERFACE
|
|
kusano |
2b45e8 |
LDINT N = [N]
|
|
kusano |
2b45e8 |
LDINT INCX = [INCX]
|
|
kusano |
2b45e8 |
LDINT INCY = [INCY]
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
#ifndef USE64BITINT
|
|
kusano |
2b45e8 |
sxt4 N = N
|
|
kusano |
2b45e8 |
sxt4 INCX = INCX
|
|
kusano |
2b45e8 |
sxt4 INCY = INCY
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd INCX = INCX, ZBASE_SHIFT, r0
|
|
kusano |
2b45e8 |
shladd INCY = INCY, ZBASE_SHIFT, r0
|
|
kusano |
2b45e8 |
mov PR = pr
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mib
|
|
kusano |
2b45e8 |
cmp.lt p0, p7 = r0, N
|
|
kusano |
2b45e8 |
mov r26 = 1
|
|
kusano |
2b45e8 |
(p7) br.cond.spnt .L1000
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
#ifdef F_INTERFACE
|
|
kusano |
2b45e8 |
cmp.le p0, p6 = r0, INCX
|
|
kusano |
2b45e8 |
cmp.le p0, p7 = r0, INCY
|
|
kusano |
2b45e8 |
sub r26 = r26, N
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
setf.sig f32 = r26
|
|
kusano |
2b45e8 |
setf.sig f33 = INCX
|
|
kusano |
2b45e8 |
setf.sig f34 = INCY
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
xmpy.l f33 = f32, f33
|
|
kusano |
2b45e8 |
xmpy.l f34 = f32, f34
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
getf.sig r26 = f33
|
|
kusano |
2b45e8 |
getf.sig r27 = f34
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p6) add X1 = X1, r26
|
|
kusano |
2b45e8 |
(p7) add Y1 = Y1, r27
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
{ .mfi
|
|
kusano |
2b45e8 |
#ifdef DOUBLE
|
|
kusano |
2b45e8 |
adds PRE1 = (PREFETCH_SIZE + 4) * SIZE, X1
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
adds PRE1 = (PREFETCH_SIZE + 8) * SIZE, X1
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
mov f10 = f0
|
|
kusano |
2b45e8 |
mov pr.rot= 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mfi
|
|
kusano |
2b45e8 |
and J = 7, N
|
|
kusano |
2b45e8 |
mov f11 = f0
|
|
kusano |
2b45e8 |
shr I = N, 3
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mfi
|
|
kusano |
2b45e8 |
#ifdef DOUBLE
|
|
kusano |
2b45e8 |
adds PRE2 = (PREFETCH_SIZE + 6) * SIZE, Y1
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
adds PRE2 = (PREFETCH_SIZE + 12) * SIZE, Y1
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
mov f12 = f0
|
|
kusano |
2b45e8 |
mov ar.ec = 3
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
shladd INCX16 = INCX, 3, r0
|
|
kusano |
2b45e8 |
shladd INCY16 = INCY, 3, r0
|
|
kusano |
2b45e8 |
mov f13 = f0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
shladd INCX3M1 = INCX, 1, INCX
|
|
kusano |
2b45e8 |
shladd INCY3M1 = INCY, 1, INCY
|
|
kusano |
2b45e8 |
mov f14 = f0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
adds INCXM1 = -SIZE, INCX
|
|
kusano |
2b45e8 |
adds INCYM1 = -SIZE, INCY
|
|
kusano |
2b45e8 |
mov f15 = f0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
adds INCX3M1 = -SIZE, INCX3M1
|
|
kusano |
2b45e8 |
adds INCY3M1 = -SIZE, INCY3M1
|
|
kusano |
2b45e8 |
tbit.z p0, p12 = N, 2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
cmp.eq p8 ,p0 = r0, I
|
|
kusano |
2b45e8 |
cmp.eq p16, p0 = r0, r0
|
|
kusano |
2b45e8 |
adds I = -1, I
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd X2 = INCX, 1, X1
|
|
kusano |
2b45e8 |
shladd Y2 = INCY, 1, Y1
|
|
kusano |
2b45e8 |
mov ar.lc = I
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
mov XX = X1
|
|
kusano |
2b45e8 |
mov YY = Y1
|
|
kusano |
2b45e8 |
(p8) br.cond.dpnt .L55
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.align 32
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L52:
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) lfetch.nt1 [PRE1], INCX16
|
|
kusano |
2b45e8 |
(p16) LDFD f32 = [X1], SIZE
|
|
kusano |
2b45e8 |
(p18) FMA f8 = f34, f82, f8
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f44 = [X2], SIZE
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f9 = f34, f85, f9
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f80 = [Y1], SIZE
|
|
kusano |
2b45e8 |
(p16) LDFD f92 = [Y2], SIZE
|
|
kusano |
2b45e8 |
(p18) FMA f10 = f37, f82, f10
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f11 = f37, f85, f11
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) lfetch.nt1 [PRE2], INCY16
|
|
kusano |
2b45e8 |
(p16) LDFD f35 = [X1], INCXM1
|
|
kusano |
2b45e8 |
(p18) FMA f12 = f40, f88, f12
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f47 = [X2], INCXM1
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f13 = f40, f91, f13
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f83 = [Y1], INCYM1
|
|
kusano |
2b45e8 |
(p16) LDFD f95 = [Y2], INCYM1
|
|
kusano |
2b45e8 |
(p18) FMA f14 = f43, f88, f14
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f15 = f43, f91, f15
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f38 = [X1], SIZE
|
|
kusano |
2b45e8 |
(p16) LDFD f50 = [X2], SIZE
|
|
kusano |
2b45e8 |
(p18) FMA f8 = f46, f94, f8
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f9 = f46, f97, f9
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f86 = [Y1], SIZE
|
|
kusano |
2b45e8 |
(p16) LDFD f98 = [Y2], SIZE
|
|
kusano |
2b45e8 |
(p18) FMA f10 = f49, f94, f10
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f11 = f49, f97, f11
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f41 = [X1], INCX3M1
|
|
kusano |
2b45e8 |
(p16) LDFD f53 = [X2], INCX3M1
|
|
kusano |
2b45e8 |
(p18) FMA f12 = f52, f100, f12
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f13 = f52, f103, f13
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f89 = [Y1], INCY3M1
|
|
kusano |
2b45e8 |
(p16) LDFD f101 = [Y2], INCY3M1
|
|
kusano |
2b45e8 |
(p18) FMA f14 = f55, f100, f14
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f15 = f55, f103, f15
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f56 = [X1], SIZE
|
|
kusano |
2b45e8 |
(p16) LDFD f68 = [X2], SIZE
|
|
kusano |
2b45e8 |
(p18) FMA f8 = f58, f106, f8
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f9 = f58, f109, f9
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f104 = [Y1], SIZE
|
|
kusano |
2b45e8 |
(p16) LDFD f116 = [Y2], SIZE
|
|
kusano |
2b45e8 |
(p18) FMA f10 = f61, f106, f10
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f11 = f61, f109, f11
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f59 = [X1], INCXM1
|
|
kusano |
2b45e8 |
(p16) LDFD f71 = [X2], INCXM1
|
|
kusano |
2b45e8 |
(p18) FMA f12 = f64, f112, f12
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f13 = f64, f115, f13
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f107 = [Y1], INCYM1
|
|
kusano |
2b45e8 |
(p16) LDFD f119 = [Y2], INCYM1
|
|
kusano |
2b45e8 |
(p18) FMA f14 = f67, f112, f14
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f15 = f67, f115, f15
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f62 = [X1], SIZE
|
|
kusano |
2b45e8 |
(p16) LDFD f74 = [X2], SIZE
|
|
kusano |
2b45e8 |
(p18) FMA f8 = f70, f118, f8
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f9 = f70, f121, f9
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f110 = [Y1], SIZE
|
|
kusano |
2b45e8 |
(p16) LDFD f122 = [Y2], SIZE
|
|
kusano |
2b45e8 |
(p18) FMA f10 = f73, f118, f10
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f11 = f73, f121, f11
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f65 = [X1], INCX3M1
|
|
kusano |
2b45e8 |
(p16) LDFD f77 = [X2], INCX3M1
|
|
kusano |
2b45e8 |
(p18) FMA f12 = f76, f124, f12
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) add XX = INCX16, XX
|
|
kusano |
2b45e8 |
(p16) add YY = INCY16, YY
|
|
kusano |
2b45e8 |
(p18) FMA f13 = f76, f127, f13
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f113 = [Y1], INCY3M1
|
|
kusano |
2b45e8 |
(p16) LDFD f125 = [Y2], INCY3M1
|
|
kusano |
2b45e8 |
(p18) FMA f14 = f79, f124, f14
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mfb
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p18) FMA f15 = f79, f127, f15
|
|
kusano |
2b45e8 |
br.ctop.sptk.few .L52
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.align 32
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L55:
|
|
kusano |
2b45e8 |
(p12) LDFD f32 = [X1], SIZE
|
|
kusano |
2b45e8 |
(p12) LDFD f40 = [X2], SIZE
|
|
kusano |
2b45e8 |
tbit.z p0, p13 = N, 1
|
|
kusano |
2b45e8 |
(p12) LDFD f34 = [Y1], SIZE
|
|
kusano |
2b45e8 |
(p12) LDFD f42 = [Y2], SIZE
|
|
kusano |
2b45e8 |
tbit.z p0, p14 = N, 0
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p12) LDFD f33 = [X1], INCXM1
|
|
kusano |
2b45e8 |
(p12) LDFD f41 = [X2], INCXM1
|
|
kusano |
2b45e8 |
cmp.eq p9, p0 = r0, J
|
|
kusano |
2b45e8 |
(p12) LDFD f35 = [Y1], INCYM1
|
|
kusano |
2b45e8 |
(p12) LDFD f43 = [Y2], INCYM1
|
|
kusano |
2b45e8 |
(p9) br.cond.dptk .L999
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p12) LDFD f36 = [X1], SIZE
|
|
kusano |
2b45e8 |
(p12) LDFD f44 = [X2], SIZE
|
|
kusano |
2b45e8 |
(p12) shladd XX = INCX, 2, XX
|
|
kusano |
2b45e8 |
(p12) LDFD f38 = [Y1], SIZE
|
|
kusano |
2b45e8 |
(p12) LDFD f46 = [Y2], SIZE
|
|
kusano |
2b45e8 |
(p12) shladd YY = INCY, 2, YY
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p12) LDFD f37 = [X1], INCX3M1
|
|
kusano |
2b45e8 |
(p12) LDFD f45 = [X2], INCX3M1
|
|
kusano |
2b45e8 |
(p13) shladd XX = INCX, 1, XX
|
|
kusano |
2b45e8 |
(p12) LDFD f39 = [Y1], INCY3M1
|
|
kusano |
2b45e8 |
(p12) LDFD f47 = [Y2], INCY3M1
|
|
kusano |
2b45e8 |
(p13) shladd YY = INCY, 1, YY
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p13) LDFD f48 = [X1], SIZE
|
|
kusano |
2b45e8 |
(p13) LDFD f50 = [Y1], SIZE
|
|
kusano |
2b45e8 |
(p14) LDFD f56 = [XX], SIZE
|
|
kusano |
2b45e8 |
(p14) LDFD f58 = [YY], SIZE
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p13) LDFD f49 = [X1], INCXM1
|
|
kusano |
2b45e8 |
(p13) LDFD f51 = [Y1], INCYM1
|
|
kusano |
2b45e8 |
(p14) LDFD f57 = [XX]
|
|
kusano |
2b45e8 |
(p14) LDFD f59 = [YY]
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p13) LDFD f52 = [X1], SIZE
|
|
kusano |
2b45e8 |
(p13) LDFD f54 = [Y1], SIZE
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p13) LDFD f53 = [X1]
|
|
kusano |
2b45e8 |
(p13) LDFD f55 = [Y1]
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p12) FMA f8 = f32, f34, f8
|
|
kusano |
2b45e8 |
(p12) FMA f9 = f32, f35, f9
|
|
kusano |
2b45e8 |
(p12) FMA f10 = f33, f34, f10
|
|
kusano |
2b45e8 |
(p12) FMA f11 = f33, f35, f11
|
|
kusano |
2b45e8 |
(p12) FMA f12 = f36, f38, f12
|
|
kusano |
2b45e8 |
(p12) FMA f13 = f36, f39, f13
|
|
kusano |
2b45e8 |
(p12) FMA f14 = f37, f38, f14
|
|
kusano |
2b45e8 |
(p12) FMA f15 = f37, f39, f15
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p12) FMA f8 = f40, f42, f8
|
|
kusano |
2b45e8 |
(p12) FMA f9 = f40, f43, f9
|
|
kusano |
2b45e8 |
(p12) FMA f10 = f41, f42, f10
|
|
kusano |
2b45e8 |
(p12) FMA f11 = f41, f43, f11
|
|
kusano |
2b45e8 |
(p12) FMA f12 = f44, f46, f12
|
|
kusano |
2b45e8 |
(p12) FMA f13 = f44, f47, f13
|
|
kusano |
2b45e8 |
(p12) FMA f14 = f45, f46, f14
|
|
kusano |
2b45e8 |
(p12) FMA f15 = f45, f47, f15
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p13) FMA f8 = f48, f50, f8
|
|
kusano |
2b45e8 |
(p13) FMA f9 = f48, f51, f9
|
|
kusano |
2b45e8 |
(p13) FMA f10 = f49, f50, f10
|
|
kusano |
2b45e8 |
(p13) FMA f11 = f49, f51, f11
|
|
kusano |
2b45e8 |
(p13) FMA f12 = f52, f54, f12
|
|
kusano |
2b45e8 |
(p13) FMA f13 = f52, f55, f13
|
|
kusano |
2b45e8 |
(p13) FMA f14 = f53, f54, f14
|
|
kusano |
2b45e8 |
(p13) FMA f15 = f53, f55, f15
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p14) FMA f8 = f56, f58, f8
|
|
kusano |
2b45e8 |
(p14) FMA f9 = f56, f59, f9
|
|
kusano |
2b45e8 |
(p14) FMA f10 = f57, f58, f10
|
|
kusano |
2b45e8 |
(p14) FMA f11 = f57, f59, f11
|
|
kusano |
2b45e8 |
.align 32
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.L999:
|
|
kusano |
2b45e8 |
FADD f8 = f8, f12
|
|
kusano |
2b45e8 |
FADD f9 = f9, f13
|
|
kusano |
2b45e8 |
FADD f10 = f10, f14
|
|
kusano |
2b45e8 |
FADD f11 = f11, f15
|
|
kusano |
2b45e8 |
mov ar.lc = ARLC
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
#ifndef CONJ
|
|
kusano |
2b45e8 |
FSUB f8 = f8, f11
|
|
kusano |
2b45e8 |
FADD f9 = f9, f10
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
FADD f8 = f8, f11
|
|
kusano |
2b45e8 |
FSUB f9 = f9, f10
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.align 32
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L1000:
|
|
kusano |
2b45e8 |
#if defined(F_INTERFACE) && defined(RETURN_BY_STACK)
|
|
kusano |
2b45e8 |
STFD [r32] = f8, SIZE
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
STFD [r32] = f9, SIZE
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
mov pr = PR, -65474
|
|
kusano |
2b45e8 |
br.ret.sptk.many b0
|
|
kusano |
2b45e8 |
EPILOGUE
|
|
kusano |
2b45e8 |
|