|
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 PREFETCHSIZE (8 * 16)
|
|
kusano |
2b45e8 |
|
|
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 |
|
|
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 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 YY1 r22
|
|
kusano |
2b45e8 |
#define YY2 r23
|
|
kusano |
2b45e8 |
#define YY3 r24
|
|
kusano |
2b45e8 |
#define YY4 r25
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define INCX4 r8
|
|
kusano |
2b45e8 |
#define INCY4 r9
|
|
kusano |
2b45e8 |
#define INCX2 r10
|
|
kusano |
2b45e8 |
#define INCY2 r11
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define INCX8 r26
|
|
kusano |
2b45e8 |
#define INCY8 r27
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define PR r30
|
|
kusano |
2b45e8 |
#define ARLC r31
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define ALPHA f8
|
|
kusano |
2b45e8 |
#define SP r12
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
PROLOGUE
|
|
kusano |
2b45e8 |
.prologue
|
|
kusano |
2b45e8 |
PROFCODE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
adds r8 = 16, SP
|
|
kusano |
2b45e8 |
adds r9 = 24, SP
|
|
kusano |
2b45e8 |
.save ar.lc, ARLC
|
|
kusano |
2b45e8 |
mov ARLC = ar.lc
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
adds PRE1 = (PREFETCHSIZE + 2) * SIZE, X1
|
|
kusano |
2b45e8 |
cmp.lt p0, p6 = r0, N
|
|
kusano |
2b45e8 |
(p6) br.ret.sptk.many b0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
ld8 Y1 = [r8]
|
|
kusano |
2b45e8 |
ld8 INCY = [r9]
|
|
kusano |
2b45e8 |
mov PR = pr
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.body
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd INCX = INCX, BASE_SHIFT, r0
|
|
kusano |
2b45e8 |
shladd INCY = INCY, BASE_SHIFT, r0
|
|
kusano |
2b45e8 |
mov pr.rot = 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd INCX4 = INCX, 2, r0
|
|
kusano |
2b45e8 |
shladd INCY4 = INCY, 2, r0
|
|
kusano |
2b45e8 |
mov ar.ec = 3
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd INCX8 = INCX, 3, r0
|
|
kusano |
2b45e8 |
shladd INCY8 = INCY, 3, r0
|
|
kusano |
2b45e8 |
shr I = N, 4
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
add X2 = INCX, X1
|
|
kusano |
2b45e8 |
add Y2 = INCY, Y1
|
|
kusano |
2b45e8 |
add YY2 = INCY, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd X3 = INCX, 1, X1
|
|
kusano |
2b45e8 |
shladd Y3 = INCY, 1, Y1
|
|
kusano |
2b45e8 |
shladd YY3 = INCY, 1, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd X4 = INCX, 1, X2
|
|
kusano |
2b45e8 |
shladd Y4 = INCY, 1, Y2
|
|
kusano |
2b45e8 |
shladd YY4 = INCY, 1, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
cmp.eq p7 ,p0 = 0, I
|
|
kusano |
2b45e8 |
adds I = -1, I
|
|
kusano |
2b45e8 |
mov YY1 = Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
and r28 = 127, Y1
|
|
kusano |
2b45e8 |
and PRE1 = -128, PRE1
|
|
kusano |
2b45e8 |
cmp.eq p16, p0 = r0, r0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
adds PRE2 = (PREFETCHSIZE + 2) * SIZE, Y1
|
|
kusano |
2b45e8 |
or PRE1 = PRE1, r28
|
|
kusano |
2b45e8 |
mov ar.lc = I
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mib
|
|
kusano |
2b45e8 |
and J = 15, N
|
|
kusano |
2b45e8 |
tbit.z p0, p12 = N, 3
|
|
kusano |
2b45e8 |
(p7) br.cond.dpnt .L115
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.align 32
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L112:
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p18) STFD [YY1] = f6
|
|
kusano |
2b45e8 |
(p18) STFD [YY2] = f7
|
|
kusano |
2b45e8 |
(p18) FMA f6 = ALPHA, f58, f106
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) lfetch.excl.nt1 [PRE2], INCY8
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p18) FMA f7 = ALPHA, f61, f109
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p18) STFD [YY3] = f10
|
|
kusano |
2b45e8 |
(p18) STFD [YY4] = f11
|
|
kusano |
2b45e8 |
(p18) FMA f10 = ALPHA, f64, f112
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) lfetch.nt1 [PRE1], INCX8
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p18) FMA f11 = ALPHA, f67, f115
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f32 = [X1], INCX4
|
|
kusano |
2b45e8 |
(p16) LDFD f35 = [X2], INCX4
|
|
kusano |
2b45e8 |
(p18) add YY1 = INCY4, YY1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f38 = [X3], INCX4
|
|
kusano |
2b45e8 |
(p16) LDFD f41 = [X4], INCX4
|
|
kusano |
2b45e8 |
(p18) add YY2 = INCY4, YY2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) LDFD f117 = [Y1], INCY4
|
|
kusano |
2b45e8 |
(p17) LDFD f120 = [Y2], INCY4
|
|
kusano |
2b45e8 |
(p18) add YY3 = INCY4, YY3
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) LDFD f123 = [Y3], INCY4
|
|
kusano |
2b45e8 |
(p17) LDFD f126 = [Y4], INCY4
|
|
kusano |
2b45e8 |
(p18) add YY4 = INCY4, YY4
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p18) STFD [YY1] = f12
|
|
kusano |
2b45e8 |
(p18) STFD [YY2] = f13
|
|
kusano |
2b45e8 |
(p18) FMA f12 = ALPHA, f70, f118
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p18) add YY1 = INCY4, YY1
|
|
kusano |
2b45e8 |
(p18) add YY2 = INCY4, YY2
|
|
kusano |
2b45e8 |
(p18) FMA f13 = ALPHA, f73, f121
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p18) STFD [YY3] = f14
|
|
kusano |
2b45e8 |
(p18) STFD [YY4] = f15
|
|
kusano |
2b45e8 |
(p18) FMA f14 = ALPHA, f76, f124
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p18) add YY3 = INCY4, YY3
|
|
kusano |
2b45e8 |
(p18) add YY4 = INCY4, YY4
|
|
kusano |
2b45e8 |
(p18) FMA f15 = ALPHA, f79, f127
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f44 = [X1], INCX4
|
|
kusano |
2b45e8 |
(p16) LDFD f47 = [X2], INCX4
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f50 = [X3], INCX4
|
|
kusano |
2b45e8 |
(p16) LDFD f53 = [X4], INCX4
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f80 = [Y1], INCY4
|
|
kusano |
2b45e8 |
(p16) LDFD f83 = [Y2], INCY4
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f86 = [Y3], INCY4
|
|
kusano |
2b45e8 |
(p16) LDFD f89 = [Y4], INCY4
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p18) STFD [YY1] = f6
|
|
kusano |
2b45e8 |
(p18) STFD [YY2] = f7
|
|
kusano |
2b45e8 |
(p17) FMA f6 = ALPHA, f33, f81
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) lfetch.excl.nt1 [PRE2], INCY8
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p17) FMA f7 = ALPHA, f36, f84
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p18) STFD [YY3] = f10
|
|
kusano |
2b45e8 |
(p18) STFD [YY4] = f11
|
|
kusano |
2b45e8 |
(p17) FMA f10 = ALPHA, f39, f87
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) lfetch.nt1 [PRE1], INCX8
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p17) FMA f11 = ALPHA, f42, f90
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f56 = [X1], INCX4
|
|
kusano |
2b45e8 |
(p16) LDFD f59 = [X2], INCX4
|
|
kusano |
2b45e8 |
(p18) add YY1 = INCY4, YY1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f62 = [X3], INCX4
|
|
kusano |
2b45e8 |
(p16) LDFD f65 = [X4], INCX4
|
|
kusano |
2b45e8 |
(p18) add YY2 = INCY4, YY2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f92 = [Y1], INCY4
|
|
kusano |
2b45e8 |
(p16) LDFD f95 = [Y2], INCY4
|
|
kusano |
2b45e8 |
(p18) add YY3 = INCY4, YY3
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f98 = [Y3], INCY4
|
|
kusano |
2b45e8 |
(p16) LDFD f101 = [Y4], INCY4
|
|
kusano |
2b45e8 |
(p18) add YY4 = INCY4, YY4
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p18) STFD [YY1] = f12
|
|
kusano |
2b45e8 |
(p18) STFD [YY2] = f13
|
|
kusano |
2b45e8 |
(p17) FMA f12 = ALPHA, f45, f93
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p18) add YY1 = INCY4, YY1
|
|
kusano |
2b45e8 |
(p18) add YY2 = INCY4, YY2
|
|
kusano |
2b45e8 |
(p17) FMA f13 = ALPHA, f48, f96
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p18) STFD [YY3] = f14
|
|
kusano |
2b45e8 |
(p18) STFD [YY4] = f15
|
|
kusano |
2b45e8 |
(p17) FMA f14 = ALPHA, f51, f99
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p18) add YY3 = INCY4, YY3
|
|
kusano |
2b45e8 |
(p18) add YY4 = INCY4, YY4
|
|
kusano |
2b45e8 |
(p17) FMA f15 = ALPHA, f54, f102
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f68 = [X1], INCX4
|
|
kusano |
2b45e8 |
(p16) LDFD f71 = [X2], INCX4
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f74 = [X3], INCX4
|
|
kusano |
2b45e8 |
(p16) LDFD f77 = [X4], INCX4
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f104 = [Y1], INCY4
|
|
kusano |
2b45e8 |
(p16) LDFD f107 = [Y2], INCY4
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
(p16) LDFD f110 = [Y3], INCY4
|
|
kusano |
2b45e8 |
(p16) LDFD f113 = [Y4], INCY4
|
|
kusano |
2b45e8 |
br.ctop.sptk.few .L112
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.align 32
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L115:
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f32 = [X1], INCX4
|
|
kusano |
2b45e8 |
(p12) LDFD f33 = [X2], INCX4
|
|
kusano |
2b45e8 |
mov pr = PR, -65474
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f34 = [X3], INCX4
|
|
kusano |
2b45e8 |
(p12) LDFD f35 = [X4], INCX4
|
|
kusano |
2b45e8 |
cmp.eq p9, p0 = r0, J
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f64 = [Y1], INCY4
|
|
kusano |
2b45e8 |
(p12) LDFD f65 = [Y2], INCY4
|
|
kusano |
2b45e8 |
mov ar.lc = ARLC
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
(p12) LDFD f66 = [Y3], INCY4
|
|
kusano |
2b45e8 |
(p12) LDFD f67 = [Y4], INCY4
|
|
kusano |
2b45e8 |
(p9) br.ret.sptk.many b0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f36 = [X1], INCX4
|
|
kusano |
2b45e8 |
(p12) LDFD f37 = [X2], INCX4
|
|
kusano |
2b45e8 |
tbit.z p0, p13 = N, 2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f38 = [X3], INCX4
|
|
kusano |
2b45e8 |
(p12) LDFD f39 = [X4], INCX4
|
|
kusano |
2b45e8 |
tbit.z p0, p14 = N, 1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f68 = [Y1], INCY4
|
|
kusano |
2b45e8 |
(p12) LDFD f69 = [Y2], INCY4
|
|
kusano |
2b45e8 |
tbit.z p0, p15 = N, 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f70 = [Y3], INCY4
|
|
kusano |
2b45e8 |
(p12) LDFD f71 = [Y4], INCY4
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f40 = [X1], INCX4
|
|
kusano |
2b45e8 |
(p13) LDFD f41 = [X2], INCX4
|
|
kusano |
2b45e8 |
shladd INCX2 = INCX, 1, r0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f42 = [X3], INCX4
|
|
kusano |
2b45e8 |
(p13) LDFD f43 = [X4], INCX4
|
|
kusano |
2b45e8 |
shladd INCY2 = INCY, 1, r0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f72 = [Y1], INCY4
|
|
kusano |
2b45e8 |
(p13) LDFD f73 = [Y2], INCY4
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f74 = [Y3], INCY4
|
|
kusano |
2b45e8 |
(p13) LDFD f75 = [Y4], INCY4
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p14) LDFD f44 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p14) LDFD f45 = [X2], INCX2
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p14) LDFD f76 = [Y1], INCY2
|
|
kusano |
2b45e8 |
(p14) LDFD f77 = [Y2], INCY2
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p15) LDFD f46 = [X1]
|
|
kusano |
2b45e8 |
(p15) LDFD f78 = [Y1]
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p12) FMA f32 = ALPHA, f32, f64
|
|
kusano |
2b45e8 |
(p12) FMA f33 = ALPHA, f33, f65
|
|
kusano |
2b45e8 |
(p12) FMA f34 = ALPHA, f34, f66
|
|
kusano |
2b45e8 |
(p12) FMA f35 = ALPHA, f35, f67
|
|
kusano |
2b45e8 |
(p12) FMA f36 = ALPHA, f36, f68
|
|
kusano |
2b45e8 |
(p12) FMA f37 = ALPHA, f37, f69
|
|
kusano |
2b45e8 |
(p12) FMA f38 = ALPHA, f38, f70
|
|
kusano |
2b45e8 |
(p12) FMA f39 = ALPHA, f39, f71
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p12) STFD [YY1] = f32
|
|
kusano |
2b45e8 |
(p12) STFD [YY2] = f33
|
|
kusano |
2b45e8 |
(p13) FMA f40 = ALPHA, f40, f72
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p12) add YY1 = INCY4, YY1
|
|
kusano |
2b45e8 |
(p12) add YY2 = INCY4, YY2
|
|
kusano |
2b45e8 |
(p13) FMA f41 = ALPHA, f41, f73
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p12) STFD [YY3] = f34
|
|
kusano |
2b45e8 |
(p12) STFD [YY4] = f35
|
|
kusano |
2b45e8 |
(p13) FMA f42 = ALPHA, f42, f74
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p12) add YY3 = INCY4, YY3
|
|
kusano |
2b45e8 |
(p12) add YY4 = INCY4, YY4
|
|
kusano |
2b45e8 |
(p13) FMA f43 = ALPHA, f43, f75
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p12) STFD [YY1] = f36
|
|
kusano |
2b45e8 |
(p12) STFD [YY2] = f37
|
|
kusano |
2b45e8 |
(p14) FMA f44 = ALPHA, f44, f76
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p12) add YY1 = INCY4, YY1
|
|
kusano |
2b45e8 |
(p12) add YY2 = INCY4, YY2
|
|
kusano |
2b45e8 |
(p14) FMA f45 = ALPHA, f45, f77
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p12) STFD [YY3] = f38
|
|
kusano |
2b45e8 |
(p12) STFD [YY4] = f39
|
|
kusano |
2b45e8 |
(p15) FMA f46 = ALPHA, f46, f78
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) add YY3 = INCY4, YY3
|
|
kusano |
2b45e8 |
(p12) add YY4 = INCY4, YY4
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) STFD [YY1] = f40
|
|
kusano |
2b45e8 |
(p13) STFD [YY2] = f41
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) add YY1 = INCY4, YY1
|
|
kusano |
2b45e8 |
(p13) add YY2 = INCY4, YY2
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) STFD [YY3] = f42
|
|
kusano |
2b45e8 |
(p13) STFD [YY4] = f43
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p14) STFD [YY1] = f44
|
|
kusano |
2b45e8 |
(p14) STFD [YY2] = f45
|
|
kusano |
2b45e8 |
(p14) add YY1 = INCY2, YY1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
(p15) STFD [YY1] = f46
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
br.ret.sptk.many b0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
EPILOGUE
|
|
kusano |
2b45e8 |
|