|
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 + 4)
|
|
kusano |
2b45e8 |
#elif defined(DOUBLE)
|
|
kusano |
2b45e8 |
#define PREFETCH_SIZE (16 * 16 + 8)
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define PREFETCH_SIZE (32 * 16 + 16)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef USE_MIN
|
|
kusano |
2b45e8 |
#define CMPUNC cmp.lt.unc
|
|
kusano |
2b45e8 |
#define CMP cmp.lt
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define CMPUNC cmp.gt.unc
|
|
kusano |
2b45e8 |
#define CMP cmp.gt
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define RET r8
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define N r32
|
|
kusano |
2b45e8 |
#define DX r33
|
|
kusano |
2b45e8 |
#define INCX r34
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define PRE1 r2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define I r14
|
|
kusano |
2b45e8 |
#define J r15
|
|
kusano |
2b45e8 |
#define K r16
|
|
kusano |
2b45e8 |
#define TMP r17
|
|
kusano |
2b45e8 |
#define INCXM1 r18
|
|
kusano |
2b45e8 |
#define INCX8 r19
|
|
kusano |
2b45e8 |
#define MAX1 r20
|
|
kusano |
2b45e8 |
#define DMAX1 r21
|
|
kusano |
2b45e8 |
#define DATA1 r22
|
|
kusano |
2b45e8 |
#define DATA2 r23
|
|
kusano |
2b45e8 |
#define DATA3 r24
|
|
kusano |
2b45e8 |
#define DATA4 r25
|
|
kusano |
2b45e8 |
#define DATA5 r26
|
|
kusano |
2b45e8 |
#define DATA6 r27
|
|
kusano |
2b45e8 |
#define DATA7 r28
|
|
kusano |
2b45e8 |
#define DATA8 r29
|
|
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 |
{ .mmi
|
|
kusano |
2b45e8 |
mov MAX1 = -1
|
|
kusano |
2b45e8 |
mov DMAX1 = 0
|
|
kusano |
2b45e8 |
.save ar.lc, ARLC
|
|
kusano |
2b45e8 |
mov ARLC = ar.lc
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
.body
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef F_INTERFACE
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
LDINT N = [N]
|
|
kusano |
2b45e8 |
LDINT INCX = [INCX]
|
|
kusano |
2b45e8 |
nop.i 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
#ifndef USE64BITINT
|
|
kusano |
2b45e8 |
{ .mii
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
sxt4 N = N
|
|
kusano |
2b45e8 |
sxt4 INCX = INCX
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
{ .mii
|
|
kusano |
2b45e8 |
adds K = -1, N
|
|
kusano |
2b45e8 |
shl INCX = INCX, ZBASE_SHIFT
|
|
kusano |
2b45e8 |
mov PR = pr
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
cmp.ge p8, p0 = 0, N
|
|
kusano |
2b45e8 |
(p8) br.cond.dptk .L999
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mib
|
|
kusano |
2b45e8 |
cmp.ge p6, p0 = 0, INCX
|
|
kusano |
2b45e8 |
mov pr.rot= 0
|
|
kusano |
2b45e8 |
(p6) br.cond.dptk .L999
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
LDFD f6 = [DX], SIZE
|
|
kusano |
2b45e8 |
adds INCXM1 = - SIZE, INCX
|
|
kusano |
2b45e8 |
mov ar.ec= 5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
LDFD f7 = [DX], INCXM1
|
|
kusano |
2b45e8 |
mov MAX1 = 0
|
|
kusano |
2b45e8 |
mov I = 1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mfi
|
|
kusano |
2b45e8 |
cmp.eq p16, p0 = r0, r0
|
|
kusano |
2b45e8 |
fabs f6 = f6
|
|
kusano |
2b45e8 |
shr J = K, 3
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
fabs f7 = f7
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
cmp.ne p8, p0 = r0, r0
|
|
kusano |
2b45e8 |
adds J = -1, J
|
|
kusano |
2b45e8 |
shladd INCX8 = INCX, 3, r0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
FADD f6 = f6, f7
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
getf.d DMAX1 = f6
|
|
kusano |
2b45e8 |
adds PRE1 = PREFETCH_SIZE * SIZE, DX
|
|
kusano |
2b45e8 |
mov ar.lc = J
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mib
|
|
kusano |
2b45e8 |
cmp.eq p7 ,p0 = -1, J
|
|
kusano |
2b45e8 |
tbit.z p0, p13 = K, 2
|
|
kusano |
2b45e8 |
(p7) br.cond.dpnt .L15
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
.align 32
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.L10:
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) lfetch.nt1 [PRE1], INCX8
|
|
kusano |
2b45e8 |
(p16) LDFD f32 = [DX], SIZE
|
|
kusano |
2b45e8 |
(p19) fabs f35 = f35
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p8 ) mov DMAX1 = DATA1
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p19) fabs f40 = f40
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p20) getf.d DATA5 = f12
|
|
kusano |
2b45e8 |
(p16) LDFD f37 = [DX], INCXM1
|
|
kusano |
2b45e8 |
(p20) FADD f14 = f96, f101
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p8 ) adds MAX1 = 0, I
|
|
kusano |
2b45e8 |
(p20) CMPUNC p8, p0 = DATA2, DMAX1
|
|
kusano |
2b45e8 |
nop.i 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f42 = [DX], SIZE
|
|
kusano |
2b45e8 |
(p8 ) mov DMAX1 = DATA2
|
|
kusano |
2b45e8 |
(p19) fabs f45 = f45
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p19) fabs f50 = f50
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p20) getf.d DATA6 = f13
|
|
kusano |
2b45e8 |
(p16) LDFD f47 = [DX], INCXM1
|
|
kusano |
2b45e8 |
(p20) FADD f15 = f106, f111
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p8 ) adds MAX1 = 1, I
|
|
kusano |
2b45e8 |
(p20) CMPUNC p8, p0 = DATA3, DMAX1
|
|
kusano |
2b45e8 |
nop.i 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f52 = [DX], SIZE
|
|
kusano |
2b45e8 |
(p8 ) mov DMAX1 = DATA3
|
|
kusano |
2b45e8 |
(p19) fabs f55 = f55
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p19) fabs f60 = f60
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p20) getf.d DATA7 = f14
|
|
kusano |
2b45e8 |
(p16) LDFD f57 = [DX], INCXM1
|
|
kusano |
2b45e8 |
(p19) FADD f8 = f35, f40
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p8 ) adds MAX1 = 2, I
|
|
kusano |
2b45e8 |
(p20) CMPUNC p8, p0 = DATA4, DMAX1
|
|
kusano |
2b45e8 |
nop.i 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f62 = [DX], SIZE
|
|
kusano |
2b45e8 |
(p8 ) mov DMAX1 = DATA4
|
|
kusano |
2b45e8 |
(p19) fabs f65 = f65
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p19) fabs f70 = f70
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p20) getf.d DATA8 = f15
|
|
kusano |
2b45e8 |
(p16) LDFD f67 = [DX], INCXM1
|
|
kusano |
2b45e8 |
(p19) FADD f9 = f45, f50
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p8 ) adds MAX1 = 3, I
|
|
kusano |
2b45e8 |
(p20) CMPUNC p8, p0 = DATA5, DMAX1
|
|
kusano |
2b45e8 |
nop.i 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f72 = [DX], SIZE
|
|
kusano |
2b45e8 |
(p8 ) mov DMAX1 = DATA5
|
|
kusano |
2b45e8 |
(p19) fabs f75 = f75
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p19) fabs f80 = f80
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p19) getf.d DATA1 = f8
|
|
kusano |
2b45e8 |
(p16) LDFD f77 = [DX], INCXM1
|
|
kusano |
2b45e8 |
(p19) FADD f10 = f55, f60
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p8 ) adds MAX1 = 4, I
|
|
kusano |
2b45e8 |
(p20) CMPUNC p8, p0 = DATA6, DMAX1
|
|
kusano |
2b45e8 |
nop.i 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f82 = [DX], SIZE
|
|
kusano |
2b45e8 |
(p8 ) mov DMAX1 = DATA6
|
|
kusano |
2b45e8 |
(p19) fabs f85 = f85
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p19) fabs f90 = f90
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p19) getf.d DATA2 = f9
|
|
kusano |
2b45e8 |
(p16) LDFD f87 = [DX], INCXM1
|
|
kusano |
2b45e8 |
(p19) FADD f11 = f65, f70
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p8 ) adds MAX1 = 5, I
|
|
kusano |
2b45e8 |
(p20) CMPUNC p8, p0 = DATA7, DMAX1
|
|
kusano |
2b45e8 |
nop.i 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f92 = [DX], SIZE
|
|
kusano |
2b45e8 |
(p8 ) mov DMAX1 = DATA7
|
|
kusano |
2b45e8 |
(p19) fabs f95 = f95
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
mov TMP = I
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p19) fabs f100 = f100
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p19) getf.d DATA3 = f10
|
|
kusano |
2b45e8 |
(p16) LDFD f97 = [DX], INCXM1
|
|
kusano |
2b45e8 |
(p19) FADD f12 = f75, f80
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p8 ) adds MAX1 = 6, I
|
|
kusano |
2b45e8 |
(p20) CMPUNC p8, p0 = DATA8, DMAX1
|
|
kusano |
2b45e8 |
nop.i 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p16) LDFD f102 = [DX], SIZE
|
|
kusano |
2b45e8 |
(p8 ) mov DMAX1 = DATA8
|
|
kusano |
2b45e8 |
(p19) fabs f105 = f105
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p20) adds I = 8, I
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p19) fabs f110 = f110
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p19) getf.d DATA4 = f11
|
|
kusano |
2b45e8 |
(p16) LDFD f107 = [DX], INCXM1
|
|
kusano |
2b45e8 |
(p8 ) adds MAX1 = 7, TMP
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mfb
|
|
kusano |
2b45e8 |
(p19) CMPUNC p8, p0 = DATA1, DMAX1
|
|
kusano |
2b45e8 |
(p19) FADD f13 = f85, f90
|
|
kusano |
2b45e8 |
br.ctop.sptk.few .L10
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.align 32
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L15:
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f32 = [DX], SIZE
|
|
kusano |
2b45e8 |
and J = 7, K
|
|
kusano |
2b45e8 |
mov pr = PR, -65474
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
(p13) LDFD f33 = [DX], INCXM1
|
|
kusano |
2b45e8 |
cmp.eq p8 ,p0 = r0, J
|
|
kusano |
2b45e8 |
(p8) br.cond.dpnt .L999
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f34 = [DX], SIZE
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p13) LDFD f35 = [DX], INCXM1
|
|
kusano |
2b45e8 |
nop.i 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) LDFD f36 = [DX], SIZE
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p13) LDFD f37 = [DX], INCXM1
|
|
kusano |
2b45e8 |
nop.i 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mfi
|
|
kusano |
2b45e8 |
(p13) LDFD f38 = [DX], SIZE
|
|
kusano |
2b45e8 |
(p13) fabs f32 = f32
|
|
kusano |
2b45e8 |
tbit.z p0, p14 = K, 1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p13) LDFD f39 = [DX], INCXM1
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p13) fabs f33 = f33
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p14) LDFD f40 = [DX], SIZE
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p13) fabs f34 = f34
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mfi
|
|
kusano |
2b45e8 |
(p14) LDFD f41 = [DX], INCXM1
|
|
kusano |
2b45e8 |
(p13) fabs f35 = f35
|
|
kusano |
2b45e8 |
tbit.z p0, p15 = K, 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p14) LDFD f42 = [DX], SIZE
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p13) fabs f36 = f36
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p14) LDFD f43 = [DX], INCXM1
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p13) fabs f37 = f37
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p13) FADD f32 = f32, f33
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p15) LDFD f44 = [DX], SIZE
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p13) fabs f38 = f38
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p15) LDFD f45 = [DX], INCXM1
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p13) fabs f39 = f39
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p13) FADD f34 = f34, f35
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p14) fabs f40 = f40
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p13) getf.d DATA1 = f32
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p14) fabs f41 = f41
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p13) FADD f36 = f36, f37
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p14) fabs f42 = f42
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p13) getf.d DATA2 = f34
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p14) fabs f43 = f43
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p13) FADD f38 = f38, f39
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p15) fabs f44 = f44
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p13) getf.d DATA3 = f36
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p15) fabs f45 = f45
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p14) FADD f40 = f40, f41
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p13) getf.d DATA4 = f38
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p14) FADD f42 = f42, f43
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmf
|
|
kusano |
2b45e8 |
(p14) getf.d DATA5 = f40
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p15) FADD f44 = f44, f45
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p14) getf.d DATA6 = f42
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
(p13) CMPUNC p8, p0 = DATA1, DMAX1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p15) getf.d DATA7 = f44
|
|
kusano |
2b45e8 |
(p8 ) adds MAX1 = 0, I
|
|
kusano |
2b45e8 |
(p8 ) mov DMAX1 = DATA1
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) CMPUNC p8, p0 = DATA2, DMAX1
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p8 ) adds MAX1 = 1, I
|
|
kusano |
2b45e8 |
(p8 ) mov DMAX1 = DATA2
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) CMPUNC p8, p0 = DATA3, DMAX1
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p8 ) adds MAX1 = 2, I
|
|
kusano |
2b45e8 |
(p8 ) mov DMAX1 = DATA3
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p13) CMPUNC p8, p0 = DATA4, DMAX1
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p8 ) adds MAX1 = 3, I
|
|
kusano |
2b45e8 |
(p8 ) mov DMAX1 = DATA4
|
|
kusano |
2b45e8 |
}{ .mmi
|
|
kusano |
2b45e8 |
(p13) adds I = 4, I
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.i 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p14) CMPUNC p8, p0 = DATA5, DMAX1
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p8 ) adds MAX1 = 0, I
|
|
kusano |
2b45e8 |
(p8 ) mov DMAX1 = DATA5
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p14) CMPUNC p8, p0 = DATA6, DMAX1
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p8 ) adds MAX1 = 1, I
|
|
kusano |
2b45e8 |
(p8 ) mov DMAX1 = DATA6
|
|
kusano |
2b45e8 |
}{ .mmi
|
|
kusano |
2b45e8 |
(p14) adds I = 2, I
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.i 0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
(p15) CMPUNC p8, p0 = DATA7, DMAX1
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
(p8) adds MAX1 = 0, I
|
|
kusano |
2b45e8 |
(p8) mov DMAX1 = DATA7
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
;;
|
|
kusano |
2b45e8 |
.align 32
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L999:
|
|
kusano |
2b45e8 |
{ .mmi
|
|
kusano |
2b45e8 |
setf.d f8 = DMAX1
|
|
kusano |
2b45e8 |
adds RET = 1, MAX1
|
|
kusano |
2b45e8 |
mov ar.lc = ARLC
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
{ .mmb
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
nop.m 0
|
|
kusano |
2b45e8 |
br.ret.sptk.many b0
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
EPILOGUE
|
|
kusano |
2b45e8 |
|