|
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 r32
|
|
kusano |
2b45e8 |
#define X1 r33
|
|
kusano |
2b45e8 |
#define INCX r34
|
|
kusano |
2b45e8 |
#define Y1 r35
|
|
kusano |
2b45e8 |
#define INCY r36
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define PREX r2
|
|
kusano |
2b45e8 |
#define PREY 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 INCX2 r18
|
|
kusano |
2b45e8 |
#define INCY2 r19
|
|
kusano |
2b45e8 |
#define INCX8 r20
|
|
kusano |
2b45e8 |
#define INCY8 r21
|
|
kusano |
2b45e8 |
#define PR r30
|
|
kusano |
2b45e8 |
#define ARLC r31
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define PREFETCH_SIZE (8 * 16)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
PROLOGUE
|
|
kusano |
2b45e8 |
.prologue
|
|
kusano |
2b45e8 |
PROFCODE
|
|
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 |
shr I = N, 4
|
|
kusano |
2b45e8 |
(p6) br.ret.sptk.many b0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.body
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
sub r8 = X1, Y1
|
|
kusano |
2b45e8 |
mov r9 = 0xf0
|
|
kusano |
2b45e8 |
mov PR = pr
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd INCX2 = INCX, 1, r0
|
|
kusano |
2b45e8 |
shladd INCY2 = INCY, 1, r0
|
|
kusano |
2b45e8 |
and J = 15, N
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
shladd INCX8 = INCX, 3, r0
|
|
kusano |
2b45e8 |
shladd INCY8 = INCY, 3, r0
|
|
kusano |
2b45e8 |
mov pr.rot = 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
and r8 = r9, r8
|
|
kusano |
2b45e8 |
cmp.eq p9, p0 = r0, J
|
|
kusano |
2b45e8 |
adds I = -1, I
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
add X2 = X1, INCX
|
|
kusano |
2b45e8 |
add Y2 = Y1, INCY
|
|
kusano |
2b45e8 |
mov ar.ec = 4
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
cmp.gt p6, p0 = 127, r8
|
|
kusano |
2b45e8 |
cmp.eq p16, p0 = r0, r0
|
|
kusano |
2b45e8 |
(p6) br.cond.dpnt .L20
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
adds PREX = (PREFETCH_SIZE + 0) * SIZE, X1
|
|
kusano |
2b45e8 |
adds PREY = (PREFETCH_SIZE + 2) * SIZE, Y1
|
|
kusano |
2b45e8 |
mov ar.lc = I
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mib
|
|
kusano |
2b45e8 |
cmp.eq p8 ,p0 = -1, I
|
|
kusano |
2b45e8 |
tbit.z p0, p12 = N, 3
|
|
kusano |
2b45e8 |
(p8) br.cond.dpnt .L15
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.align 16
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L12:
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p19) STFD [Y1] = f35
|
|
kusano |
2b45e8 |
(p19) STFD [Y2] = f39
|
|
kusano |
2b45e8 |
(p19) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) LDFD f81 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p17) LDFD f85 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p19) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p19) STFD [Y1] = f43
|
|
kusano |
2b45e8 |
(p19) STFD [Y2] = f47
|
|
kusano |
2b45e8 |
(p19) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) LDFD f89 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p17) LDFD f93 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p19) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p19) STFD [Y1] = f51
|
|
kusano |
2b45e8 |
(p19) STFD [Y2] = f55
|
|
kusano |
2b45e8 |
(p19) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f32 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p16) LDFD f36 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p19) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p19) STFD [Y1] = f59
|
|
kusano |
2b45e8 |
(p19) STFD [Y2] = f63
|
|
kusano |
2b45e8 |
(p19) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
lfetch.fault.nt1 [PREX], INCX8
|
|
kusano |
2b45e8 |
lfetch.fault.excl.nt1 [PREY], INCY8
|
|
kusano |
2b45e8 |
(p19) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f40 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p16) LDFD f44 = [X2], INCX2
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p19) STFD [Y1] = f67
|
|
kusano |
2b45e8 |
(p19) STFD [Y2] = f71
|
|
kusano |
2b45e8 |
(p19) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f48 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p16) LDFD f52 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p19) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p19) STFD [Y1] = f75
|
|
kusano |
2b45e8 |
(p19) STFD [Y2] = f79
|
|
kusano |
2b45e8 |
(p19) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f56 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p16) LDFD f60 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p19) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p19) STFD [Y1] = f83
|
|
kusano |
2b45e8 |
(p19) STFD [Y2] = f87
|
|
kusano |
2b45e8 |
(p19) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
lfetch.fault.nt1 [PREX], INCX8
|
|
kusano |
2b45e8 |
lfetch.fault.excl.nt1 [PREY], INCY8
|
|
kusano |
2b45e8 |
(p19) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p19) STFD [Y1] = f91
|
|
kusano |
2b45e8 |
(p19) STFD [Y2] = f95
|
|
kusano |
2b45e8 |
(p19) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f64 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p16) LDFD f68 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p19) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
(p16) LDFD f72 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p16) LDFD f76 = [X2], INCX2
|
|
kusano |
2b45e8 |
br.ctop.sptk.few .L12
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.align 32
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L15:
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f48 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p12) LDFD f49 = [X2], INCX2
|
|
kusano |
2b45e8 |
mov ar.lc = ARLC
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f50 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p12) LDFD f51 = [X2], INCX2
|
|
kusano |
2b45e8 |
mov pr = PR, -65474
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
(p12) LDFD f52 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p12) LDFD f53 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p9) br.ret.sptk.many b0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f54 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p12) LDFD f55 = [X2], INCX2
|
|
kusano |
2b45e8 |
tbit.z p0, p13 = N, 2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f56 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p13) LDFD f57 = [X2], INCX2
|
|
kusano |
2b45e8 |
tbit.z p0, p14 = N, 1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f58 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p13) LDFD f59 = [X2], INCX2
|
|
kusano |
2b45e8 |
tbit.z p0, p15 = N, 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [Y1] = f48
|
|
kusano |
2b45e8 |
(p12) STFD [Y2] = f49
|
|
kusano |
2b45e8 |
(p12) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p14) LDFD f60 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p14) LDFD f61 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p12) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [Y1] = f50
|
|
kusano |
2b45e8 |
(p12) STFD [Y2] = f51
|
|
kusano |
2b45e8 |
(p12) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p15) LDFD f62 = [X1]
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p12) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [Y1] = f52
|
|
kusano |
2b45e8 |
(p12) STFD [Y2] = f53
|
|
kusano |
2b45e8 |
(p12) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p12) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [Y1] = f54
|
|
kusano |
2b45e8 |
(p12) STFD [Y2] = f55
|
|
kusano |
2b45e8 |
(p12) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p12) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) STFD [Y1] = f56
|
|
kusano |
2b45e8 |
(p13) STFD [Y2] = f57
|
|
kusano |
2b45e8 |
(p13) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p13) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) STFD [Y1] = f58
|
|
kusano |
2b45e8 |
(p13) STFD [Y2] = f59
|
|
kusano |
2b45e8 |
(p13) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p13) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p14) STFD [Y1] = f60
|
|
kusano |
2b45e8 |
(p14) STFD [Y2] = f61
|
|
kusano |
2b45e8 |
(p14) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
(p15) STFD [Y1] = f62
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
br.ret.sptk.many b0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.align 16
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L20:
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
adds PREX = (PREFETCH_SIZE + 0) * SIZE, X1
|
|
kusano |
2b45e8 |
adds PREY = (PREFETCH_SIZE + 10) * SIZE, Y1
|
|
kusano |
2b45e8 |
mov ar.lc = I
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mib
|
|
kusano |
2b45e8 |
cmp.eq p8 ,p0 = -1, I
|
|
kusano |
2b45e8 |
tbit.z p0, p12 = N, 3
|
|
kusano |
2b45e8 |
(p8) br.cond.dpnt .L25
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.align 16
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L22:
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p19) STFD [Y1] = f67
|
|
kusano |
2b45e8 |
(p19) STFD [Y2] = f71
|
|
kusano |
2b45e8 |
(p19) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) LDFD f81 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p17) LDFD f85 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p19) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p19) STFD [Y1] = f75
|
|
kusano |
2b45e8 |
(p19) STFD [Y2] = f79
|
|
kusano |
2b45e8 |
(p19) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p17) LDFD f89 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p17) LDFD f93 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p19) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p19) STFD [Y1] = f83
|
|
kusano |
2b45e8 |
(p19) STFD [Y2] = f87
|
|
kusano |
2b45e8 |
(p19) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f32 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p16) LDFD f36 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p19) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p19) STFD [Y1] = f91
|
|
kusano |
2b45e8 |
(p19) STFD [Y2] = f95
|
|
kusano |
2b45e8 |
(p19) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
lfetch.fault.nt1 [PREX], INCX8
|
|
kusano |
2b45e8 |
lfetch.fault.excl.nt1 [PREY], INCY8
|
|
kusano |
2b45e8 |
(p19) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f40 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p16) LDFD f44 = [X2], INCX2
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p18) STFD [Y1] = f34
|
|
kusano |
2b45e8 |
(p18) STFD [Y2] = f38
|
|
kusano |
2b45e8 |
(p18) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f48 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p16) LDFD f52 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p18) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p18) STFD [Y1] = f42
|
|
kusano |
2b45e8 |
(p18) STFD [Y2] = f46
|
|
kusano |
2b45e8 |
(p18) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f56 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p16) LDFD f60 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p18) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p18) STFD [Y1] = f50
|
|
kusano |
2b45e8 |
(p18) STFD [Y2] = f54
|
|
kusano |
2b45e8 |
(p18) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
lfetch.fault.nt1 [PREX], INCX8
|
|
kusano |
2b45e8 |
lfetch.fault.excl.nt1 [PREY], INCY8
|
|
kusano |
2b45e8 |
(p18) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p18) STFD [Y1] = f58
|
|
kusano |
2b45e8 |
(p18) STFD [Y2] = f62
|
|
kusano |
2b45e8 |
(p18) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p16) LDFD f64 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p16) LDFD f68 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p18) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
(p16) LDFD f72 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p16) LDFD f76 = [X2], INCX2
|
|
kusano |
2b45e8 |
br.ctop.sptk.few .L22
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.align 32
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L25:
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f48 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p12) LDFD f49 = [X2], INCX2
|
|
kusano |
2b45e8 |
mov ar.lc = ARLC
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f50 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p12) LDFD f51 = [X2], INCX2
|
|
kusano |
2b45e8 |
mov pr = PR, -65474
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
(p12) LDFD f52 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p12) LDFD f53 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p9) br.ret.sptk.many b0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) LDFD f54 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p12) LDFD f55 = [X2], INCX2
|
|
kusano |
2b45e8 |
tbit.z p0, p13 = N, 2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f56 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p13) LDFD f57 = [X2], INCX2
|
|
kusano |
2b45e8 |
tbit.z p0, p14 = N, 1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f58 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p13) LDFD f59 = [X2], INCX2
|
|
kusano |
2b45e8 |
tbit.z p0, p15 = N, 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [Y1] = f48
|
|
kusano |
2b45e8 |
(p12) STFD [Y2] = f49
|
|
kusano |
2b45e8 |
(p12) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p14) LDFD f60 = [X1], INCX2
|
|
kusano |
2b45e8 |
(p14) LDFD f61 = [X2], INCX2
|
|
kusano |
2b45e8 |
(p12) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [Y1] = f50
|
|
kusano |
2b45e8 |
(p12) STFD [Y2] = f51
|
|
kusano |
2b45e8 |
(p12) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p15) LDFD f62 = [X1]
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p12) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [Y1] = f52
|
|
kusano |
2b45e8 |
(p12) STFD [Y2] = f53
|
|
kusano |
2b45e8 |
(p12) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p12) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p12) STFD [Y1] = f54
|
|
kusano |
2b45e8 |
(p12) STFD [Y2] = f55
|
|
kusano |
2b45e8 |
(p12) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p12) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) STFD [Y1] = f56
|
|
kusano |
2b45e8 |
(p13) STFD [Y2] = f57
|
|
kusano |
2b45e8 |
(p13) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p13) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) STFD [Y1] = f58
|
|
kusano |
2b45e8 |
(p13) STFD [Y2] = f59
|
|
kusano |
2b45e8 |
(p13) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
(p13) add Y2 = INCY2, Y2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p14) STFD [Y1] = f60
|
|
kusano |
2b45e8 |
(p14) STFD [Y2] = f61
|
|
kusano |
2b45e8 |
(p14) add Y1 = INCY2, Y1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
(p15) STFD [Y1] = f62
|
|
kusano |
2b45e8 |
nop __LINE__
|
|
kusano |
2b45e8 |
br.ret.sptk.many b0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
EPILOGUE
|
|
kusano |
2b45e8 |
|