|
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 XDOUBLE
|
|
kusano |
2b45e8 |
#define PREFETCH_SIZE ( 8 * 16)
|
|
kusano |
2b45e8 |
#elif defined(DOUBLE)
|
|
kusano |
2b45e8 |
#define PREFETCH_SIZE (16 * 16)
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define PREFETCH_SIZE (32 * 16)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define SP r12
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef XDOUBLE
|
|
kusano |
2b45e8 |
#define N r32
|
|
kusano |
2b45e8 |
#define X1 r36
|
|
kusano |
2b45e8 |
#define INCX r37
|
|
kusano |
2b45e8 |
#define Y1 r38
|
|
kusano |
2b45e8 |
#define INCY r39
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define N r32
|
|
kusano |
2b45e8 |
#define X1 r38
|
|
kusano |
2b45e8 |
#define INCX r39
|
|
kusano |
2b45e8 |
#define Y1 r33
|
|
kusano |
2b45e8 |
#define INCY r34
|
|
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 |
|
|
kusano |
2b45e8 |
#define X2 r16
|
|
kusano |
2b45e8 |
#define Y2 r17
|
|
kusano |
2b45e8 |
#define X3 r18
|
|
kusano |
2b45e8 |
#define Y3 r19
|
|
kusano |
2b45e8 |
#define X4 r20
|
|
kusano |
2b45e8 |
#define Y4 r21
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define YY r22
|
|
kusano |
2b45e8 |
#define XX r23
|
|
kusano |
2b45e8 |
#define INCX5 r24
|
|
kusano |
2b45e8 |
#define INCY5 r25
|
|
kusano |
2b45e8 |
#define INCX16 r26
|
|
kusano |
2b45e8 |
#define INCY16 r27
|
|
kusano |
2b45e8 |
#define XYSUB r28
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define PR r30
|
|
kusano |
2b45e8 |
#define ARLC r31
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
PROLOGUE
|
|
kusano |
2b45e8 |
.prologue
|
|
kusano |
2b45e8 |
PROFCODE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef XDOUBLE
|
|
kusano |
2b45e8 |
adds r8 = 16, SP
|
|
kusano |
2b45e8 |
adds r9 = 24, SP
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
ld8 Y1 = [r8]
|
|
kusano |
2b45e8 |
ld8 INCY = [r9]
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd INCX = INCX, BASE_SHIFT, r0
|
|
kusano |
2b45e8 |
shladd INCY = INCY, BASE_SHIFT, r0
|
|
kusano |
2b45e8 |
.save ar.lc, ARLC
|
|
kusano |
2b45e8 |
mov ARLC = ar.lc
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mib
|
|
kusano |
2b45e8 |
cmp.lt p0, p6 = r0, N
|
|
kusano |
2b45e8 |
tbit.z p0, p8 = Y1, BASE_SHIFT
|
|
kusano |
2b45e8 |
(p6) br.ret.sptk.many b0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.body
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd INCX16 = INCX, 4, r0
|
|
kusano |
2b45e8 |
shladd INCY16 = INCY, 4, r0
|
|
kusano |
2b45e8 |
mov PR = pr
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
sub XYSUB = X1, Y1
|
|
kusano |
2b45e8 |
mov X3 = X1
|
|
kusano |
2b45e8 |
shr I = N, 4
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd INCX5 = INCX, 2, INCX
|
|
kusano |
2b45e8 |
shladd INCY5 = INCY, 2, INCY
|
|
kusano |
2b45e8 |
mov pr.rot= 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
adds I = -1, I
|
|
kusano |
2b45e8 |
and J = 15, N
|
|
kusano |
2b45e8 |
extr XYSUB = XYSUB, BASE_SHIFT, 6
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd X2 = INCX, 2, X1
|
|
kusano |
2b45e8 |
shladd Y2 = INCY, 2, Y1
|
|
kusano |
2b45e8 |
mov ar.lc = I
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd X4 = INCX, 2, X1
|
|
kusano |
2b45e8 |
shladd Y4 = INCY, 2, Y1
|
|
kusano |
2b45e8 |
cmp.eq p16, p0 = r0, r0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd PRE2 = XYSUB, BASE_SHIFT, Y1
|
|
kusano |
2b45e8 |
cmp.lt p8 ,p0 = 28, XYSUB
|
|
kusano |
2b45e8 |
mov Y3 = Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
adds PRE1 = (PREFETCH_SIZE + 4) * SIZE, X1
|
|
kusano |
2b45e8 |
adds PRE2 = (PREFETCH_SIZE - 12) * SIZE, PRE2
|
|
kusano |
2b45e8 |
mov ar.ec= 2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mib
|
|
kusano |
2b45e8 |
cmp.eq p9 ,p0 = -1, I
|
|
kusano |
2b45e8 |
tbit.z p0, p12 = N, 3
|
|
kusano |
2b45e8 |
(p9) br.cond.dpnt .L15
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.align 16
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L12:
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p18) STFD [Y3] = f56
|
|
kusano |
2b45e8 |
(p18) STFD [Y4] = f64
|
|
kusano |
2b45e8 |
(p18) add Y3 = Y3, INCY5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f32 = [X1], INCX
|
|
kusano |
2b45e8 |
(p16) LDFD f40 = [X2], INCX
|
|
kusano |
2b45e8 |
(p18) add Y4 = Y4, INCY5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [X3] = f65
|
|
kusano |
2b45e8 |
(p17) STFD [X4] = f73
|
|
kusano |
2b45e8 |
(p17) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f64 = [Y1], INCY
|
|
kusano |
2b45e8 |
(p16) LDFD f72 = [Y2], INCY
|
|
kusano |
2b45e8 |
(p17) add X4 = X4, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [Y3] = f33
|
|
kusano |
2b45e8 |
(p17) STFD [Y4] = f41
|
|
kusano |
2b45e8 |
(p17) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f34 = [X1], INCX
|
|
kusano |
2b45e8 |
(p16) LDFD f42 = [X2], INCX
|
|
kusano |
2b45e8 |
(p17) add Y4 = Y4, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [X3] = f67
|
|
kusano |
2b45e8 |
(p17) STFD [X4] = f75
|
|
kusano |
2b45e8 |
(p17) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f66 = [Y1], INCY
|
|
kusano |
2b45e8 |
(p16) LDFD f74 = [Y2], INCY
|
|
kusano |
2b45e8 |
(p17) add X4 = X4, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [Y3] = f35
|
|
kusano |
2b45e8 |
(p17) STFD [Y4] = f43
|
|
kusano |
2b45e8 |
(p17) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f36 = [X1], INCX
|
|
kusano |
2b45e8 |
(p16) LDFD f44 = [X2], INCX
|
|
kusano |
2b45e8 |
(p17) add Y4 = Y4, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [X3] = f69
|
|
kusano |
2b45e8 |
(p17) STFD [X4] = f77
|
|
kusano |
2b45e8 |
(p17) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f68 = [Y1], INCY
|
|
kusano |
2b45e8 |
(p16) LDFD f76 = [Y2], INCY
|
|
kusano |
2b45e8 |
(p17) add X4 = X4, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [Y3] = f37
|
|
kusano |
2b45e8 |
(p17) STFD [Y4] = f45
|
|
kusano |
2b45e8 |
(p17) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f38 = [X1], INCX5
|
|
kusano |
2b45e8 |
(p16) LDFD f46 = [X2], INCX5
|
|
kusano |
2b45e8 |
(p17) add Y4 = Y4, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [X3] = f71
|
|
kusano |
2b45e8 |
(p17) STFD [X4] = f79
|
|
kusano |
2b45e8 |
(p17) add X3 = X3, INCX5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f70 = [Y1], INCY5
|
|
kusano |
2b45e8 |
(p16) LDFD f78 = [Y2], INCY5
|
|
kusano |
2b45e8 |
(p17) add X4 = X4, INCX5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [Y3] = f39
|
|
kusano |
2b45e8 |
(p17) STFD [Y4] = f47
|
|
kusano |
2b45e8 |
(p17) add Y3 = Y3, INCY5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f48 = [X1], INCX
|
|
kusano |
2b45e8 |
(p16) LDFD f56 = [X2], INCX
|
|
kusano |
2b45e8 |
(p17) add Y4 = Y4, INCY5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [X3] = f81
|
|
kusano |
2b45e8 |
(p17) STFD [X4] = f89
|
|
kusano |
2b45e8 |
(p17) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f80 = [Y1], INCY
|
|
kusano |
2b45e8 |
(p16) LDFD f88 = [Y2], INCY
|
|
kusano |
2b45e8 |
(p17) add X4 = X4, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [Y3] = f49
|
|
kusano |
2b45e8 |
(p17) STFD [Y4] = f57
|
|
kusano |
2b45e8 |
(p17) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f50 = [X1], INCX
|
|
kusano |
2b45e8 |
(p16) LDFD f58 = [X2], INCX
|
|
kusano |
2b45e8 |
(p17) add Y4 = Y4, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [X3] = f83
|
|
kusano |
2b45e8 |
(p17) STFD [X4] = f91
|
|
kusano |
2b45e8 |
(p17) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f82 = [Y1], INCY
|
|
kusano |
2b45e8 |
(p16) LDFD f90 = [Y2], INCY
|
|
kusano |
2b45e8 |
(p17) add X4 = X4, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [Y3] = f51
|
|
kusano |
2b45e8 |
(p17) STFD [Y4] = f59
|
|
kusano |
2b45e8 |
(p17) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f52 = [X1], INCX
|
|
kusano |
2b45e8 |
(p16) LDFD f60 = [X2], INCX
|
|
kusano |
2b45e8 |
(p17) add Y4 = Y4, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [X3] = f85
|
|
kusano |
2b45e8 |
(p17) STFD [X4] = f93
|
|
kusano |
2b45e8 |
(p17) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f84 = [Y1], INCY
|
|
kusano |
2b45e8 |
(p16) LDFD f92 = [Y2], INCY
|
|
kusano |
2b45e8 |
(p17) add X4 = X4, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) lfetch.nt1 [PRE1]
|
|
kusano |
2b45e8 |
(p16) lfetch.nt1 [PRE2]
|
|
kusano |
2b45e8 |
(p16) shladd PRE1 = INCX, 4, PRE1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f54 = [X1], INCX5
|
|
kusano |
2b45e8 |
(p16) LDFD f62 = [X2], INCX5
|
|
kusano |
2b45e8 |
(p16) shladd PRE2 = INCX, 4, PRE2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [Y3] = f53
|
|
kusano |
2b45e8 |
(p17) STFD [Y4] = f61
|
|
kusano |
2b45e8 |
(p17) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f86 = [Y1], INCY5
|
|
kusano |
2b45e8 |
(p16) LDFD f94 = [Y2], INCY5
|
|
kusano |
2b45e8 |
(p17) add Y4 = Y4, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) STFD [X3] = f87
|
|
kusano |
2b45e8 |
(p17) STFD [X4] = f95
|
|
kusano |
2b45e8 |
(p17) add X3 = X3, INCX5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mib
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p17) add X4 = X4, INCX5
|
|
kusano |
2b45e8 |
br.ctop.sptk.few .L12
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.L15:
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p18) STFD [Y3] = f56
|
|
kusano |
2b45e8 |
(p18) STFD [Y4] = f64
|
|
kusano |
2b45e8 |
mov ar.lc = ARLC
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f32 = [X1], INCX
|
|
kusano |
2b45e8 |
(p12) LDFD f36 = [X2], INCX
|
|
kusano |
2b45e8 |
cmp.eq p10, p0 = r0, J
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f80 = [Y1], INCY
|
|
kusano |
2b45e8 |
(p12) LDFD f84 = [Y2], INCY
|
|
kusano |
2b45e8 |
(p18) add Y3 = Y3, INCY5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f33 = [X1], INCX
|
|
kusano |
2b45e8 |
(p12) LDFD f37 = [X2], INCX
|
|
kusano |
2b45e8 |
(p18) add Y4 = Y4, INCY5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f81 = [Y1], INCY
|
|
kusano |
2b45e8 |
(p12) LDFD f85 = [Y2], INCY
|
|
kusano |
2b45e8 |
mov pr = PR, -65474
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
(p12) LDFD f34 = [X1], INCX
|
|
kusano |
2b45e8 |
(p12) LDFD f38 = [X2], INCX
|
|
kusano |
2b45e8 |
(p10) br.ret.sptk.many b0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f82 = [Y1], INCY
|
|
kusano |
2b45e8 |
(p12) LDFD f86 = [Y2], INCY
|
|
kusano |
2b45e8 |
tbit.z p0, p13 = N, 2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f35 = [X1], INCX5
|
|
kusano |
2b45e8 |
(p12) LDFD f39 = [X2], INCX5
|
|
kusano |
2b45e8 |
tbit.z p0, p14 = N, 1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f83 = [Y1], INCY5
|
|
kusano |
2b45e8 |
(p12) LDFD f87 = [Y2], INCY5
|
|
kusano |
2b45e8 |
tbit.z p0, p15 = N, 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f40 = [X1], INCX
|
|
kusano |
2b45e8 |
(p13) LDFD f88 = [Y1], INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f41 = [X1], INCX
|
|
kusano |
2b45e8 |
(p13) LDFD f89 = [Y1], INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [Y3] = f32
|
|
kusano |
2b45e8 |
(p12) STFD [Y4] = f36
|
|
kusano |
2b45e8 |
(p12) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f42 = [X1], INCX
|
|
kusano |
2b45e8 |
(p13) LDFD f90 = [Y1], INCY
|
|
kusano |
2b45e8 |
(p12) add Y4 = Y4, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [X3] = f80
|
|
kusano |
2b45e8 |
(p12) STFD [X4] = f84
|
|
kusano |
2b45e8 |
(p12) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f43 = [X1], INCX
|
|
kusano |
2b45e8 |
(p13) LDFD f91 = [Y1], INCY
|
|
kusano |
2b45e8 |
(p12) add X4 = X4, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [Y3] = f33
|
|
kusano |
2b45e8 |
(p12) STFD [Y4] = f37
|
|
kusano |
2b45e8 |
(p12) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p14) LDFD f44 = [X1], INCX
|
|
kusano |
2b45e8 |
(p14) LDFD f92 = [Y1], INCY
|
|
kusano |
2b45e8 |
(p12) add Y4 = Y4, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [X3] = f81
|
|
kusano |
2b45e8 |
(p12) STFD [X4] = f85
|
|
kusano |
2b45e8 |
(p12) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p14) LDFD f45 = [X1], INCX
|
|
kusano |
2b45e8 |
(p14) LDFD f93 = [Y1], INCY
|
|
kusano |
2b45e8 |
(p12) add X4 = X4, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [X3] = f82
|
|
kusano |
2b45e8 |
(p12) STFD [X4] = f86
|
|
kusano |
2b45e8 |
(p12) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p15) LDFD f46 = [X1], INCX
|
|
kusano |
2b45e8 |
(p15) LDFD f94 = [Y1], INCY
|
|
kusano |
2b45e8 |
(p12) add X4 = X4, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [Y3] = f34
|
|
kusano |
2b45e8 |
(p12) STFD [Y4] = f38
|
|
kusano |
2b45e8 |
(p12) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p12) add Y4 = Y4, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [X3] = f83
|
|
kusano |
2b45e8 |
(p12) STFD [X4] = f87
|
|
kusano |
2b45e8 |
(p12) add X3 = X3, INCX5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p12) add X4 = X4, INCX5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [Y3] = f35
|
|
kusano |
2b45e8 |
(p12) STFD [Y4] = f39
|
|
kusano |
2b45e8 |
(p12) add Y3 = Y3, INCY5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p12) add Y4 = Y4, INCY5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) STFD [X3] = f88
|
|
kusano |
2b45e8 |
(p13) STFD [Y3] = f40
|
|
kusano |
2b45e8 |
(p13) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p13) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) STFD [X3] = f89
|
|
kusano |
2b45e8 |
(p13) STFD [Y3] = f41
|
|
kusano |
2b45e8 |
(p13) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p13) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) STFD [X3] = f90
|
|
kusano |
2b45e8 |
(p13) STFD [Y3] = f42
|
|
kusano |
2b45e8 |
(p13) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p13) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) STFD [X3] = f91
|
|
kusano |
2b45e8 |
(p13) STFD [Y3] = f43
|
|
kusano |
2b45e8 |
(p13) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p13) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p14) STFD [X3] = f92
|
|
kusano |
2b45e8 |
(p14) STFD [Y3] = f44
|
|
kusano |
2b45e8 |
(p14) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p14) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p14) STFD [X3] = f93
|
|
kusano |
2b45e8 |
(p14) STFD [Y3] = f45
|
|
kusano |
2b45e8 |
(p14) add X3 = X3, INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p14) add Y3 = Y3, INCY
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
(p15) STFD [X3] = f94
|
|
kusano |
2b45e8 |
(p15) STFD [Y3] = f46
|
|
kusano |
2b45e8 |
br.ret.sptk.many b0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
EPILOGUE
|
|
kusano |
2b45e8 |
|