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 PREA	r2
kusano 2b45e8
#define PREB	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 INCX3	r18
kusano 2b45e8
#define INCY3	r19
kusano 2b45e8
#define INCX5	r20
kusano 2b45e8
#define INCY5	r21
kusano 2b45e8
#define INCX16	r22
kusano 2b45e8
#define INCY16	r23
kusano 2b45e8
#define XX	r24
kusano 2b45e8
#define YY	r25
kusano 2b45e8
#define XA	r26
kusano 2b45e8
#define YA	r27
kusano 2b45e8
#define PR	r30
kusano 2b45e8
#define ARLC	r31
kusano 2b45e8
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
#define PREFETCH_SIZE (4 * 32)
kusano 2b45e8
#else
kusano 2b45e8
#define PREFETCH_SIZE (4 * 64)
kusano 2b45e8
#endif
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
	tbit.z	p0, p7 = X1, BASE_SHIFT
kusano 2b45e8
	(p6) br.ret.sptk.many b0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	.body
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	sub	XA = Y1, X1
kusano 2b45e8
	(p7) LDFD f32 = [X1], INCX
kusano 2b45e8
	mov	PR = pr
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	mov	YY = Y1   
kusano 2b45e8
	(p7) adds N = -1, N
kusano 2b45e8
	(p7) add Y1 = Y1, INCY
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
	mov	XX = X1
kusano 2b45e8
	nop.m	0
kusano 2b45e8
	shr.u  XA = XA, BASE_SHIFT
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	and	J = 15, N
kusano 2b45e8
	cmp.eq	p16, p0 = r0, r0
kusano 2b45e8
	shr	I = N, 4
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmb
kusano 2b45e8
	cmp.ne	p6, p0 = SIZE, INCX
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
	adds	XA = 2, XA
kusano 2b45e8
#else
kusano 2b45e8
	nop.m	0
kusano 2b45e8
#endif
kusano 2b45e8
	(p6) br.cond.dpnt .L100
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
/* INCX == 1 */
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	shladd	INCX16 = INCX, 4, r0
kusano 2b45e8
	shladd	INCY16 = INCY, 4, r0
kusano 2b45e8
	tbit.z	p0, p12 = N, 3
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
	and	XA = 31, XA
kusano 2b45e8
#else
kusano 2b45e8
	and	XA = 63, XA
kusano 2b45e8
#endif
kusano 2b45e8
	adds	I = -1, I
kusano 2b45e8
	tbit.z	p0, p13 = N, 2
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
	{ .mib
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
	cmp.gt	p8, p0 = 15, XA
kusano 2b45e8
#else
kusano 2b45e8
	cmp.gt	p8, p0 = 30, XA
kusano 2b45e8
#endif
kusano 2b45e8
	cmp.eq	p9, p0  =   r0, J
kusano 2b45e8
	(p8)br.cond.dpnt  .L30
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p7) STFD [YY] = f32
kusano 2b45e8
	cmp.gt	p8 ,p0  =   r0, I
kusano 2b45e8
	mov	ar.ec = 5
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmb
kusano 2b45e8
	adds	PREA  = PREFETCH_SIZE * SIZE + 32, X1
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
	adds	PREB  = PREFETCH_SIZE * SIZE + 32, Y1
kusano 2b45e8
#else
kusano 2b45e8
	adds	PREB  = PREFETCH_SIZE * SIZE - 40, Y1
kusano 2b45e8
#endif
kusano 2b45e8
	(p8) br.cond.dpnt  .L25
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	.align 32
kusano 2b45e8
kusano 2b45e8
.L22:
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p20) STFD	[Y1] = f36
kusano 2b45e8
	(p20) STFD	[Y2] = f56
kusano 2b45e8
	(p20) add   Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) lfetch.nt1 [PREA], INCX16
kusano 2b45e8
	(p16) LDFPD	f32, f37  = [X1], 2 * SIZE
kusano 2b45e8
	(p20) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p20) STFD	[Y1] = f41
kusano 2b45e8
	(p20) STFD	[Y2] = f61
kusano 2b45e8
	(p20) add   Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) lfetch.excl.nt1 [PREB], INCY16
kusano 2b45e8
	(p16) LDFPD	f42, f47  = [X1], 2 * SIZE
kusano 2b45e8
	(p20) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p20) STFD	[Y1] = f46
kusano 2b45e8
	(p20) STFD	[Y2] = f66
kusano 2b45e8
	(p20) add   Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFPD	f52, f57  = [X1], 2 * SIZE
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	(p20) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p20) STFD	[Y1] = f51
kusano 2b45e8
	(p20) STFD	[Y2] = f71
kusano 2b45e8
	(p20) add   Y1 = INCY5, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFPD	f62, f67  = [X1], 2 * SIZE
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	(p20) add   Y2 = INCY5, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p20) STFD	[Y1] = f76
kusano 2b45e8
	(p20) STFD	[Y2] = f96
kusano 2b45e8
	(p16) adds	XX = 8 * SIZE, X1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFPD	f72, f77  = [X1], 2 * SIZE
kusano 2b45e8
	(p20) add   Y1 = INCY, Y1
kusano 2b45e8
	(p20) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p20) STFD	[Y1] = f81
kusano 2b45e8
	(p20) STFD	[Y2] = f101
kusano 2b45e8
	(p20) add   Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFPD	f82, f87  = [X1], 2 * SIZE
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	(p20) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p20) STFD	[Y1] = f86
kusano 2b45e8
	(p20) STFD	[Y2] = f106
kusano 2b45e8
	(p16) shladd	X2 = INCX, 2, XX
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFPD	f92, f97  = [X1], 2 * SIZE
kusano 2b45e8
	(p20) add   Y1 = INCY, Y1
kusano 2b45e8
	(p20) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p20) STFD	[Y1] = f91
kusano 2b45e8
	(p20) STFD	[Y2] = f111
kusano 2b45e8
	(p20) add   Y1 = INCY5, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmb
kusano 2b45e8
	(p16) LDFPD	f102, f107 = [X1], 2 * SIZE
kusano 2b45e8
	(p20) add   Y2 = INCY5, Y2
kusano 2b45e8
	br.ctop.sptk.few .L22
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	.align 32
kusano 2b45e8
.L25:
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) LDFPD	f48, f49 = [X1], 2 * SIZE
kusano 2b45e8
	(p12) LDFPD	f52, f53 = [X2], 2 * SIZE
kusano 2b45e8
	mov	ar.lc = ARLC
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) adds XX = 8 * SIZE, XX
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	tbit.z	p0, p14 = N, 1
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) LDFPD	f50, f51 = [X1]
kusano 2b45e8
	(p12) LDFPD	f54, f55 = [X2]
kusano 2b45e8
	mov	pr = PR, -65474
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmb
kusano 2b45e8
	(p12) adds	X1 = 6 * SIZE, X1
kusano 2b45e8
	(p13) adds	XX = 4 * SIZE, XX
kusano 2b45e8
	(p9) br.ret.sptk.many b0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) LDFPD	f56, f57 = [X1], 2 * SIZE
kusano 2b45e8
	(p14) LDFPD	f60, f61 = [XX], 2 * SIZE
kusano 2b45e8
	tbit.z	p0, p15 = N, 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) LDFPD	f58, f59 = [X1], 2 * SIZE
kusano 2b45e8
	(p15) LDFD	f62 = [XX]
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) STFD	[Y1] = f48
kusano 2b45e8
	(p12) STFD	[Y2] = f52
kusano 2b45e8
	mov	YY = Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) add Y1 = INCY, Y1
kusano 2b45e8
	(p12) add Y2 = INCY, Y2
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) STFD	[Y1] = f49
kusano 2b45e8
	(p12) STFD	[Y2] = f53
kusano 2b45e8
	(p12) add Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) add Y2 = INCY, Y2
kusano 2b45e8
	(p12) shladd YY = INCY, 3, YY
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) STFD	[Y1] = f50
kusano 2b45e8
	(p12) STFD	[Y2] = f54
kusano 2b45e8
	(p12) add Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) add Y2 = INCY, Y2
kusano 2b45e8
	(p13) shladd YY = INCY, 2, YY
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) STFD	[Y1] = f51
kusano 2b45e8
 	(p12) STFD	[Y2] = f55
kusano 2b45e8
	(p12) add Y1 = INCY5, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) add Y2 = INCY5, Y2
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) STFD	[Y1] = f56
kusano 2b45e8
	(p14) STFD	[YY] = f60
kusano 2b45e8
	(p13) add Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p14) add YY = INCY, YY
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) STFD	[Y1] = f57
kusano 2b45e8
	(p14) STFD	[YY] = f61
kusano 2b45e8
	(p13) add Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p14) add YY = INCY, YY
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) STFD	[Y1] = f58
kusano 2b45e8
	(p15) STFD	[YY] = f62
kusano 2b45e8
	(p13) add Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmb
kusano 2b45e8
	(p13) STFD	[Y1] = f59
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	br.ret.sptk.many b0
kusano 2b45e8
	}
kusano 2b45e8
	.align 32
kusano 2b45e8
	;;
kusano 2b45e8
.L30:
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p7) STFD [YY] = f32
kusano 2b45e8
	cmp.gt	p8 ,p0  =   r0, I
kusano 2b45e8
	mov	ar.ec = 4
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmb
kusano 2b45e8
	adds	PREA  = PREFETCH_SIZE * SIZE + 24, X1
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
	adds	PREB  = PREFETCH_SIZE * SIZE + 64, Y1
kusano 2b45e8
#else
kusano 2b45e8
	adds	PREB  = PREFETCH_SIZE * SIZE + 72, Y1
kusano 2b45e8
#endif
kusano 2b45e8
	(p8) br.cond.dpnt  .L35
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	.align 32
kusano 2b45e8
.L32:
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p19) STFD	[Y1] = f35
kusano 2b45e8
	(p19) STFD	[Y2] = f55
kusano 2b45e8
	(p19) add   Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) lfetch.nt1 [PREA], INCX16
kusano 2b45e8
	(p16) LDFPD	f32, f37  = [X1], 2 * SIZE
kusano 2b45e8
	(p19) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p19) STFD	[Y1] = f40
kusano 2b45e8
	(p19) STFD	[Y2] = f60
kusano 2b45e8
	(p19) add   Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) lfetch.excl.nt1 [PREB], INCY16
kusano 2b45e8
	(p16) LDFPD	f42, f47  = [X1], 2 * SIZE
kusano 2b45e8
	(p19) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p19) STFD	[Y1] = f45
kusano 2b45e8
	(p19) STFD	[Y2] = f65
kusano 2b45e8
	(p19) add   Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFPD	f52, f57  = [X1], 2 * SIZE
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	(p19) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p19) STFD	[Y1] = f50
kusano 2b45e8
	(p19) STFD	[Y2] = f70
kusano 2b45e8
	(p19) add   Y1 = INCY5, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFPD	f62, f67  = [X1], 2 * SIZE
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	(p19) add   Y2 = INCY5, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p19) STFD	[Y1] = f75
kusano 2b45e8
	(p19) STFD	[Y2] = f95
kusano 2b45e8
	(p16) adds	XX = 8 * SIZE, X1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFPD	f72, f77  = [X1], 2 * SIZE
kusano 2b45e8
	(p19) add   Y1 = INCY, Y1
kusano 2b45e8
	(p19) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p19) STFD	[Y1] = f80
kusano 2b45e8
	(p19) STFD	[Y2] = f100
kusano 2b45e8
	(p19) add   Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFPD	f82, f87  = [X1], 2 * SIZE
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	(p19) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p19) STFD	[Y1] = f85
kusano 2b45e8
	(p19) STFD	[Y2] = f105
kusano 2b45e8
	(p16) shladd	X2 = INCX, 2, XX
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFPD	f92, f97  = [X1], 2 * SIZE
kusano 2b45e8
	(p19) add   Y1 = INCY, Y1
kusano 2b45e8
	(p19) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p19) STFD	[Y1] = f90
kusano 2b45e8
	(p19) STFD	[Y2] = f110
kusano 2b45e8
	(p19) add   Y1 = INCY5, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmb
kusano 2b45e8
	(p16) LDFPD	f102, f107 = [X1], 2 * SIZE
kusano 2b45e8
	(p19) add   Y2 = INCY5, Y2
kusano 2b45e8
	br.ctop.sptk.few .L32
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	.align 32
kusano 2b45e8
.L35:
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) LDFPD	f48, f49 = [X1], 2 * SIZE
kusano 2b45e8
	(p12) LDFPD	f52, f53 = [X2], 2 * SIZE
kusano 2b45e8
	mov	ar.lc = ARLC
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) adds XX = 8 * SIZE, XX
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	tbit.z	p0, p14 = N, 1
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) LDFPD	f50, f51 = [X1]
kusano 2b45e8
	(p12) LDFPD	f54, f55 = [X2]
kusano 2b45e8
	mov	pr = PR, -65474
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) adds	X1 = 6 * SIZE, X1
kusano 2b45e8
	(p12) adds	X2 = 6 * SIZE, X2
kusano 2b45e8
	(p13) adds XX = 4 * SIZE, XX
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) LDFPD	f56, f57 = [X1], 2 * SIZE
kusano 2b45e8
	(p14) LDFPD	f60, f61 = [XX], 2 * SIZE
kusano 2b45e8
	tbit.z	p0, p15 = N, 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmb
kusano 2b45e8
	(p13) LDFPD	f58, f59 = [X1], 2 * SIZE
kusano 2b45e8
	(p15) LDFD	f62 = [XX]
kusano 2b45e8
	(p9) br.ret.sptk.many b0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) STFD	[Y1] = f48
kusano 2b45e8
	(p12) STFD	[Y2] = f52
kusano 2b45e8
	mov	YY = Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) add Y1 = INCY, Y1
kusano 2b45e8
	(p12) add Y2 = INCY, Y2
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) STFD	[Y1] = f49
kusano 2b45e8
	(p12) STFD	[Y2] = f53
kusano 2b45e8
	(p12) add Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) add Y2 = INCY, Y2
kusano 2b45e8
	(p12) shladd YY = INCY, 3, YY
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) STFD	[Y1] = f50
kusano 2b45e8
	(p12) STFD	[Y2] = f54
kusano 2b45e8
	(p12) add Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) add Y2 = INCY, Y2
kusano 2b45e8
	(p13) shladd YY = INCY, 2, YY
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) STFD	[Y1] = f51
kusano 2b45e8
	(p12) STFD	[Y2] = f55
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) add Y1 = INCY5, Y1
kusano 2b45e8
	(p12) add Y2 = INCY5, Y2
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) STFD	[Y1] = f56
kusano 2b45e8
	(p14) STFD	[YY] = f60
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) add Y1 = INCY, Y1
kusano 2b45e8
	(p14) add YY = INCY, YY
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) STFD	[Y1] = f57
kusano 2b45e8
	(p14) STFD	[YY] = f61
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) add Y1 = INCY, Y1
kusano 2b45e8
	(p14) add YY = INCY, YY
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) STFD	[Y1] = f58
kusano 2b45e8
	(p15) STFD	[YY] = f62
kusano 2b45e8
	(p13) add Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mib
kusano 2b45e8
	(p13) STFD	[Y1] = f59
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	br.ret.sptk.many b0
kusano 2b45e8
	}
kusano 2b45e8
	.align 32
kusano 2b45e8
	;;
kusano 2b45e8
kusano 2b45e8
 /* INCX != 1 */
kusano 2b45e8
.L100: 
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	shladd	INCX16 = INCX, 4, r0
kusano 2b45e8
	shladd	INCY16 = INCY, 4, r0
kusano 2b45e8
	tbit.z	p0, p12 = N, 3
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	adds	PREA  = PREFETCH_SIZE * SIZE, X1
kusano 2b45e8
	adds	PREB  = PREFETCH_SIZE * SIZE, Y1
kusano 2b45e8
	mov	ar.ec = 6
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	cmp.eq	p8 ,p0  =   r0, I
kusano 2b45e8
	cmp.eq	p9, p0  =   r0, J
kusano 2b45e8
	adds	I = -1, I
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p7) STFD [YY] = f32
kusano 2b45e8
	shladd	X2 = INCX, 2,  X1
kusano 2b45e8
	mov	ar.lc = I
kusano 2b45e8
	}
kusano 2b45e8
	{ .mib
kusano 2b45e8
	shladd	Y2 = INCY, 2,  Y1
kusano 2b45e8
	cmp.eq	p16, p0 = r0, r0
kusano 2b45e8
	(p8) br.cond.dpnt  .L120
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	.align 32
kusano 2b45e8
kusano 2b45e8
.L110:
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p21) STFD	[Y1] = f37
kusano 2b45e8
	(p21) STFD	[Y2] = f61
kusano 2b45e8
	(p21) add   Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) lfetch.nt1 [PREA], INCX16
kusano 2b45e8
	(p16) lfetch.excl.nt1 [PREB], INCY16
kusano 2b45e8
	(p21) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p21) STFD	[Y1] = f43
kusano 2b45e8
	(p21) STFD	[Y2] = f67
kusano 2b45e8
	(p21) add   Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFD	f56  = [X2], INCX
kusano 2b45e8
	(p16) LDFD	f32  = [X1], INCX
kusano 2b45e8
	(p21) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p21) STFD	[Y1] = f49
kusano 2b45e8
	(p21) STFD	[Y2] = f73
kusano 2b45e8
	(p21) add   Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFD	f38  = [X1], INCX
kusano 2b45e8
	(p16) LDFD	f62  = [X2], INCX
kusano 2b45e8
	(p21) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p21) STFD	[Y1] = f55
kusano 2b45e8
	(p21) STFD	[Y2] = f79
kusano 2b45e8
	(p21) add   Y1 = INCY5, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFD	f44  = [X1], INCX
kusano 2b45e8
	(p16) LDFD	f68  = [X2], INCX
kusano 2b45e8
	(p21) add   Y2 = INCY5, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p21) STFD	[Y1] = f85
kusano 2b45e8
	(p21) STFD	[Y2] = f109
kusano 2b45e8
	(p21) add   Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFD	f50  = [X1], INCX5
kusano 2b45e8
	(p16) LDFD	f74  = [X2], INCX5
kusano 2b45e8
	(p21) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p21) STFD	[Y1] = f91
kusano 2b45e8
	(p21) STFD	[Y2] = f115
kusano 2b45e8
	(p21) add   Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFD	f80  = [X1], INCX
kusano 2b45e8
	(p16) LDFD	f104 = [X2], INCX
kusano 2b45e8
	(p21) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p21) STFD	[Y1] = f97
kusano 2b45e8
	(p21) STFD	[Y2] = f121
kusano 2b45e8
	(p21) add   Y1 = INCY, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFD	f86   = [X1], INCX
kusano 2b45e8
	(p16) LDFD	f110  = [X2], INCX
kusano 2b45e8
	(p21) add   Y2 = INCY, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p21) STFD	[Y1] = f103
kusano 2b45e8
	(p21) STFD	[Y2] = f127
kusano 2b45e8
	(p21) add   Y1 = INCY5, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p16) LDFD	f92  = [X1], INCX
kusano 2b45e8
	(p16) LDFD	f116 = [X2], INCX
kusano 2b45e8
	(p21) add   Y2 = INCY5, Y2
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	nop.m	0
kusano 2b45e8
	(p16) add XX = INCX5, X1
kusano 2b45e8
	nop.i	0
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmb
kusano 2b45e8
	(p16) LDFD	f98  = [X1], INCX5
kusano 2b45e8
	(p16) LDFD	f122 = [X2], INCX5
kusano 2b45e8
	br.ctop.sptk.few .L110
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	.align 32
kusano 2b45e8
kusano 2b45e8
.L120:
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) LDFD	f48 = [X1], INCX
kusano 2b45e8
	(p12) LDFD	f52 = [X2], INCX
kusano 2b45e8
	mov	ar.lc = ARLC
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) LDFD	f49 = [X1], INCX
kusano 2b45e8
	(p12) LDFD	f53 = [X2], INCX
kusano 2b45e8
	mov	pr = PR, -65474
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) LDFD	f50 = [X1], INCX
kusano 2b45e8
	(p12) LDFD	f54 = [X2], INCX
kusano 2b45e8
	tbit.z	p0, p13 = N, 2
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmb
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	nop.m 0
kusano 2b45e8
	(p9) br.ret.sptk.many b0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) LDFD	f51 = [X1], INCX5
kusano 2b45e8
	(p12) LDFD	f55 = [X2], INCX5
kusano 2b45e8
	(p12) shladd XX = INCX, 3, XX
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) LDFD	f56 = [X1], INCX
kusano 2b45e8
	(p13) shladd XX = INCX, 2, XX
kusano 2b45e8
	tbit.z	p0, p14 = N, 1
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) LDFD	f57 = [X1], INCX
kusano 2b45e8
	(p14) LDFD	f60 = [XX], INCX
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) LDFD	f58 = [X1], INCX
kusano 2b45e8
	(p14) LDFD	f61 = [XX], INCX
kusano 2b45e8
	tbit.z	p0, p15 = N, 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) LDFD	f59 = [X1], INCX
kusano 2b45e8
	(p15) LDFD	f62 = [XX]
kusano 2b45e8
	mov	YY = Y1
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) STFD	[Y1] = f48
kusano 2b45e8
	(p12) STFD	[Y2] = f52
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) add Y1 = INCY, Y1
kusano 2b45e8
	(p12) add Y2 = INCY, Y2
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) STFD	[Y1] = f49
kusano 2b45e8
	(p12) STFD	[Y2] = f53
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) add Y1 = INCY, Y1
kusano 2b45e8
	(p12) add Y2 = INCY, Y2
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) STFD	[Y1] = f50
kusano 2b45e8
	(p12) STFD	[Y2] = f54
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) add Y1 = INCY, Y1
kusano 2b45e8
	(p12) add Y2 = INCY, Y2
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) STFD	[Y1] = f51
kusano 2b45e8
	(p12) STFD	[Y2] = f55
kusano 2b45e8
	(p12) add Y1 = INCY5, Y1
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p12) add Y2 = INCY5, Y2
kusano 2b45e8
	(p12) shladd YY = INCY, 3, YY
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) STFD	[Y1] = f56
kusano 2b45e8
	(p13) add Y1 = INCY, Y1
kusano 2b45e8
	(p13) shladd YY =INCY, 2, YY
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) STFD	[Y1] = f57
kusano 2b45e8
	(p14) STFD	[YY] = f60
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) add Y1 = INCY, Y1
kusano 2b45e8
	(p14) add YY = INCY, YY
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) STFD	[Y1] = f58
kusano 2b45e8
	(p14) STFD	[YY] = f61
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	{ .mmi
kusano 2b45e8
	(p13) add Y1 = INCY, Y1
kusano 2b45e8
	(p14) add YY = INCY, YY
kusano 2b45e8
	nop.i 0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	{ .mmb
kusano 2b45e8
	(p13) STFD	[Y1] = f59
kusano 2b45e8
	(p15) STFD	[YY] = f62
kusano 2b45e8
	br.ret.sptk.many b0
kusano 2b45e8
	}
kusano 2b45e8
	;;
kusano 2b45e8
	EPILOGUE
kusano 2b45e8