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	%i0
kusano 2b45e8
#define X	%i1
kusano 2b45e8
#define INCX	%i2
kusano 2b45e8
#define Y	%i3
kusano 2b45e8
#define INCY	%i4
kusano 2b45e8
#define I	%i5
kusano 2b45e8
kusano 2b45e8
#define XX	%l0
kusano 2b45e8
#define YY	%l1
kusano 2b45e8
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
#define a1	%f4
kusano 2b45e8
#define a2	%f6
kusano 2b45e8
#define a3	%f8
kusano 2b45e8
#define a4	%f10
kusano 2b45e8
#define a5	%f12
kusano 2b45e8
#define a6	%f14
kusano 2b45e8
#define a7	%f16
kusano 2b45e8
#define a8	%f18
kusano 2b45e8
#define b1	%f20
kusano 2b45e8
#define b2	%f22
kusano 2b45e8
#define b3	%f24
kusano 2b45e8
#define b4	%f26
kusano 2b45e8
#define b5	%f28
kusano 2b45e8
#define b6	%f30
kusano 2b45e8
#define b7	%f32
kusano 2b45e8
#define b8	%f34
kusano 2b45e8
kusano 2b45e8
#define c1	%f36
kusano 2b45e8
#define c2	%f38
kusano 2b45e8
#define c3	%f40
kusano 2b45e8
#define c4	%f42
kusano 2b45e8
#define c5	%f44
kusano 2b45e8
#define c6	%f46
kusano 2b45e8
#define c7	%f48
kusano 2b45e8
#define c8	%f50
kusano 2b45e8
kusano 2b45e8
#define t1	%f52
kusano 2b45e8
#define t2	%f54
kusano 2b45e8
#define t3	%f56
kusano 2b45e8
#define t4	%f58
kusano 2b45e8
#else
kusano 2b45e8
#define a1	%f2
kusano 2b45e8
#define a2	%f3
kusano 2b45e8
#define a3	%f4
kusano 2b45e8
#define a4	%f5
kusano 2b45e8
#define a5	%f6
kusano 2b45e8
#define a6	%f7
kusano 2b45e8
#define a7	%f8
kusano 2b45e8
#define a8	%f9
kusano 2b45e8
#define b1	%f10
kusano 2b45e8
#define b2	%f11
kusano 2b45e8
#define b3	%f12
kusano 2b45e8
#define b4	%f13
kusano 2b45e8
#define b5	%f14
kusano 2b45e8
#define b6	%f15
kusano 2b45e8
#define b7	%f16
kusano 2b45e8
#define b8	%f17
kusano 2b45e8
kusano 2b45e8
#define c1	%f18
kusano 2b45e8
#define c2	%f19
kusano 2b45e8
#define c3	%f20
kusano 2b45e8
#define c4	%f21
kusano 2b45e8
#define c5	%f22
kusano 2b45e8
#define c6	%f23
kusano 2b45e8
#define c7	%f24
kusano 2b45e8
#define c8	%f25
kusano 2b45e8
kusano 2b45e8
#define t1	%f26
kusano 2b45e8
#define t2	%f27
kusano 2b45e8
#define t3	%f28
kusano 2b45e8
#define t4	%f29
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
#define C	%f0
kusano 2b45e8
#define S	%f2
kusano 2b45e8
#else
kusano 2b45e8
#define C	%f0
kusano 2b45e8
#define S	%f1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	PROLOGUE
kusano 2b45e8
	SAVESP
kusano 2b45e8
kusano 2b45e8
#ifndef __64BIT__
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
	st	%i5, [%sp + STACK_START + 24]
kusano 2b45e8
kusano 2b45e8
	LDF	[%sp + STACK_START + 24], C
kusano 2b45e8
	LDF	[%sp + STACK_START + 32], S
kusano 2b45e8
#else
kusano 2b45e8
	st	%i5, [%sp + STACK_START + 24]
kusano 2b45e8
kusano 2b45e8
	LDF	[%sp + STACK_START + 24], C
kusano 2b45e8
	LDF	[%sp + STACK_START + 28], S
kusano 2b45e8
#endif
kusano 2b45e8
#else
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
	FMOV	%f10, C
kusano 2b45e8
	FMOV	%f12, S
kusano 2b45e8
#else
kusano 2b45e8
	FMOV	%f11, C
kusano 2b45e8
	FMOV	%f13, S
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	cmp	N, 0
kusano 2b45e8
	ble	.LL19
kusano 2b45e8
	nop
kusano 2b45e8
	
kusano 2b45e8
	sll	INCX, ZBASE_SHIFT, INCX
kusano 2b45e8
	sll	INCY, ZBASE_SHIFT, INCY
kusano 2b45e8
kusano 2b45e8
	cmp	INCX, 2 * SIZE
kusano 2b45e8
	bne	.LL50
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	cmp	INCY, 2 * SIZE
kusano 2b45e8
	bne	.LL50
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	sra	N, 2, I
kusano 2b45e8
	cmp	I, 0
kusano 2b45e8
	ble,pn	%icc, .LL15
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	LDF	[X +  0 * SIZE], a1
kusano 2b45e8
	LDF	[Y +  0 * SIZE], b1
kusano 2b45e8
	LDF	[X +  1 * SIZE], a2
kusano 2b45e8
	LDF	[Y +  1 * SIZE], b2
kusano 2b45e8
	LDF	[X +  2 * SIZE], a3
kusano 2b45e8
	LDF	[Y +  2 * SIZE], b3
kusano 2b45e8
	LDF	[X +  3 * SIZE], a4
kusano 2b45e8
	LDF	[Y +  3 * SIZE], b4
kusano 2b45e8
kusano 2b45e8
	LDF	[X +  4 * SIZE], a5
kusano 2b45e8
	LDF	[Y +  4 * SIZE], b5
kusano 2b45e8
	LDF	[X +  5 * SIZE], a6
kusano 2b45e8
	LDF	[Y +  5 * SIZE], b6
kusano 2b45e8
	LDF	[X +  6 * SIZE], a7
kusano 2b45e8
	LDF	[Y +  6 * SIZE], b7
kusano 2b45e8
	LDF	[X +  7 * SIZE], a8
kusano 2b45e8
	LDF	[Y +  7 * SIZE], b8
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a1, c1
kusano 2b45e8
	FMUL	S, b1, c2
kusano 2b45e8
	FMUL	C, b1, c3
kusano 2b45e8
	LDF	[Y +  8 * SIZE], b1
kusano 2b45e8
	FMUL	S, a1, c4
kusano 2b45e8
	LDF	[X +  8 * SIZE], a1
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a2, c5
kusano 2b45e8
	FMUL	S, b2, c6
kusano 2b45e8
	FADD	c1, c2, t1
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b2, c7
kusano 2b45e8
	LDF	[Y +  9 * SIZE], b2
kusano 2b45e8
	FMUL	S, a2, c8
kusano 2b45e8
	LDF	[X +  9 * SIZE], a2
kusano 2b45e8
	FSUB	c3, c4, t2
kusano 2b45e8
kusano 2b45e8
	addcc	I, -1, I
kusano 2b45e8
	ble,pt	%icc, .LL12
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
#define PREFETCHSIZE 64
kusano 2b45e8
kusano 2b45e8
.LL11:
kusano 2b45e8
	FMUL	C, a3, c1
kusano 2b45e8
	nop
kusano 2b45e8
	prefetch [Y  + PREFETCHSIZE * SIZE], 1
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, b3, c2
kusano 2b45e8
	STF	t1, [X +  0 * SIZE]
kusano 2b45e8
	FADD	c5, c6, t3
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b3, c3
kusano 2b45e8
	LDF	[Y + 10 * SIZE], b3
kusano 2b45e8
	nop
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, a3, c4
kusano 2b45e8
	STF	t2, [Y +  0 * SIZE]
kusano 2b45e8
	FSUB	c7, c8, t4
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a4, c5
kusano 2b45e8
	LDF	[X + 10 * SIZE], a3
kusano 2b45e8
	nop
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, b4, c6
kusano 2b45e8
	STF	t3, [X +  1 * SIZE]
kusano 2b45e8
	FADD	c1, c2, t1
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b4, c7
kusano 2b45e8
	LDF	[Y + 11 * SIZE], b4
kusano 2b45e8
	nop
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, a4, c8
kusano 2b45e8
	STF	t4, [Y +  1 * SIZE]
kusano 2b45e8
	FSUB	c3, c4, t2
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a5, c1
kusano 2b45e8
	LDF	[X + 11 * SIZE], a4
kusano 2b45e8
	nop
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, b5, c2
kusano 2b45e8
	STF	t1, [X +  2 * SIZE]
kusano 2b45e8
	FADD	c5, c6, t3
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b5, c3
kusano 2b45e8
	LDF	[Y + 12 * SIZE], b5
kusano 2b45e8
	nop
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, a5, c4
kusano 2b45e8
	STF	t2, [Y +  2 * SIZE]
kusano 2b45e8
	FSUB	c7, c8, t4
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a6, c5
kusano 2b45e8
	LDF	[X + 12 * SIZE], a5
kusano 2b45e8
	nop
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, b6, c6
kusano 2b45e8
	STF	t3, [X +  3 * SIZE]
kusano 2b45e8
	FADD	c1, c2, t1
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b6, c7
kusano 2b45e8
	LDF	[Y + 13 * SIZE], b6
kusano 2b45e8
	nop
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, a6, c8
kusano 2b45e8
	STF	t4, [Y +  3 * SIZE]
kusano 2b45e8
	FSUB	c3, c4, t2
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a7, c1
kusano 2b45e8
	LDF	[X + 13 * SIZE], a6
kusano 2b45e8
	nop
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, b7, c2
kusano 2b45e8
	STF	t1, [X +  4 * SIZE]
kusano 2b45e8
	FADD	c5, c6, t3
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b7, c3
kusano 2b45e8
	LDF	[Y + 14 * SIZE], b7
kusano 2b45e8
	nop
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, a7, c4
kusano 2b45e8
	STF	t2, [Y +  4 * SIZE]
kusano 2b45e8
	FSUB	c7, c8, t4
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a8, c5
kusano 2b45e8
	LDF	[X + 14 * SIZE], a7
kusano 2b45e8
	nop
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, b8, c6
kusano 2b45e8
	STF	t3, [X +  5 * SIZE]
kusano 2b45e8
	FADD	c1, c2, t1
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b8, c7
kusano 2b45e8
	LDF	[Y + 15 * SIZE], b8
kusano 2b45e8
	nop
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, a8, c8
kusano 2b45e8
	STF	t4, [Y +  5 * SIZE]
kusano 2b45e8
	FSUB	c3, c4, t2
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a1, c1
kusano 2b45e8
	LDF	[X + 15 * SIZE], a8
kusano 2b45e8
	addcc	I, -1, I
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, b1, c2
kusano 2b45e8
	STF	t1, [X +  6 * SIZE]
kusano 2b45e8
	FADD	c5, c6, t3
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b1, c3
kusano 2b45e8
	LDF	[Y + 16 * SIZE], b1
kusano 2b45e8
	nop
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, a1, c4
kusano 2b45e8
	STF	t2, [Y +  6 * SIZE]
kusano 2b45e8
	FSUB	c7, c8, t4
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a2, c5
kusano 2b45e8
	LDF	[X + 16 * SIZE], a1
kusano 2b45e8
	add	Y, 8 * SIZE, Y
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, b2, c6
kusano 2b45e8
	STF	t3, [X +  7 * SIZE]
kusano 2b45e8
	FADD	c1, c2, t1
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b2, c7
kusano 2b45e8
	LDF	[Y +  9 * SIZE], b2
kusano 2b45e8
	add	X, 8 * SIZE, X
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	S, a2, c8
kusano 2b45e8
	STF	t4, [Y -  1 * SIZE]
kusano 2b45e8
	FSUB	c3, c4, t2
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	bg,pt	%icc, .LL11
kusano 2b45e8
	LDF	[X +  9 * SIZE], a2
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
.LL12:
kusano 2b45e8
	FMUL	C, a3, c1
kusano 2b45e8
	FMUL	S, b3, c2
kusano 2b45e8
	STF	t1, [X +  0 * SIZE]
kusano 2b45e8
	FADD	c5, c6, t3
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b3, c3
kusano 2b45e8
	FMUL	S, a3, c4
kusano 2b45e8
	STF	t2, [Y +  0 * SIZE]
kusano 2b45e8
	FSUB	c7, c8, t4
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a4, c5
kusano 2b45e8
	FMUL	S, b4, c6
kusano 2b45e8
	STF	t3, [X +  1 * SIZE]
kusano 2b45e8
	FADD	c1, c2, t1
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b4, c7
kusano 2b45e8
	FMUL	S, a4, c8
kusano 2b45e8
	STF	t4, [Y +  1 * SIZE]
kusano 2b45e8
	FSUB	c3, c4, t2
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a5, c1
kusano 2b45e8
	FMUL	S, b5, c2
kusano 2b45e8
	STF	t1, [X +  2 * SIZE]
kusano 2b45e8
	FADD	c5, c6, t3
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b5, c3
kusano 2b45e8
	FMUL	S, a5, c4
kusano 2b45e8
	STF	t2, [Y +  2 * SIZE]
kusano 2b45e8
	FSUB	c7, c8, t4
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a6, c5
kusano 2b45e8
	FMUL	S, b6, c6
kusano 2b45e8
	STF	t3, [X +  3 * SIZE]
kusano 2b45e8
	FADD	c1, c2, t1
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b6, c7
kusano 2b45e8
	FMUL	S, a6, c8
kusano 2b45e8
	STF	t4, [Y +  3 * SIZE]
kusano 2b45e8
	FSUB	c3, c4, t2
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a7, c1
kusano 2b45e8
	FMUL	S, b7, c2
kusano 2b45e8
	STF	t1, [X +  4 * SIZE]
kusano 2b45e8
	FADD	c5, c6, t3
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b7, c3
kusano 2b45e8
	FMUL	S, a7, c4
kusano 2b45e8
	STF	t2, [Y +  4 * SIZE]
kusano 2b45e8
	FSUB	c7, c8, t4
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a8, c5
kusano 2b45e8
	FMUL	S, b8, c6
kusano 2b45e8
	STF	t3, [X +  5 * SIZE]
kusano 2b45e8
	FADD	c1, c2, t1
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b8, c7
kusano 2b45e8
	FMUL	S, a8, c8
kusano 2b45e8
	STF	t4, [Y +  5 * SIZE]
kusano 2b45e8
	FSUB	c3, c4, t2
kusano 2b45e8
kusano 2b45e8
	FADD	c5, c6, t3
kusano 2b45e8
	STF	t1, [X +  6 * SIZE]
kusano 2b45e8
kusano 2b45e8
	FSUB	c7, c8, t4
kusano 2b45e8
	STF	t2, [Y +  6 * SIZE]
kusano 2b45e8
kusano 2b45e8
	STF	t3, [X +  7 * SIZE]
kusano 2b45e8
	STF	t4, [Y +  7 * SIZE]
kusano 2b45e8
kusano 2b45e8
	add	X, 8 * SIZE, X
kusano 2b45e8
	add	Y, 8 * SIZE, Y
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
.LL15:
kusano 2b45e8
	andcc	N, 3, I
kusano 2b45e8
	nop
kusano 2b45e8
	ble,a,pn %icc, .LL19
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
.LL16:
kusano 2b45e8
	LDF	[X + 0 * SIZE], a1
kusano 2b45e8
	LDF	[Y + 0 * SIZE], b1
kusano 2b45e8
	LDF	[X + 1 * SIZE], a2
kusano 2b45e8
	LDF	[Y + 1 * SIZE], b2
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a1, c1
kusano 2b45e8
	add	X, 2 * SIZE, X
kusano 2b45e8
	FMUL	S, b1, c2
kusano 2b45e8
	add	Y, 2 * SIZE, Y
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b1, c3
kusano 2b45e8
	addcc	I, -1, I
kusano 2b45e8
	FMUL	S, a1, c4
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a2, c5
kusano 2b45e8
	FMUL	S, b2, c6
kusano 2b45e8
	FADD	c1, c2, c2
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b2, c7
kusano 2b45e8
	FMUL	S, a2, c8
kusano 2b45e8
	FSUB	c3, c4, c4
kusano 2b45e8
kusano 2b45e8
	STF	c2, [X - 2 * SIZE]
kusano 2b45e8
	FADD	c5, c6, c6
kusano 2b45e8
	STF	c4, [Y - 2 * SIZE]
kusano 2b45e8
	FSUB	c7, c8, c8
kusano 2b45e8
kusano 2b45e8
	STF	c6, [X - 1 * SIZE]
kusano 2b45e8
	bg,pt	%icc, .LL16
kusano 2b45e8
	STF	c8, [Y - 1 * SIZE]
kusano 2b45e8
kusano 2b45e8
.LL19:
kusano 2b45e8
	return	%i7 + 8
kusano 2b45e8
	nop
kusano 2b45e8
	
kusano 2b45e8
.LL50:
kusano 2b45e8
	mov	X, XX
kusano 2b45e8
	mov	Y, YY
kusano 2b45e8
kusano 2b45e8
	sra	N, 2, I
kusano 2b45e8
	cmp	I, 0
kusano 2b45e8
	ble,pn	%icc, .LL55
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
.LL51:
kusano 2b45e8
	LDF	[X + 0 * SIZE], a1
kusano 2b45e8
	LDF	[Y + 0 * SIZE], b1
kusano 2b45e8
	LDF	[X + 1 * SIZE], a2
kusano 2b45e8
	LDF	[Y + 1 * SIZE], b2
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a1, c1
kusano 2b45e8
	FMUL	S, b1, c2
kusano 2b45e8
	FMUL	C, b1, c3
kusano 2b45e8
	FMUL	S, a1, c4
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a2, c5
kusano 2b45e8
	nop
kusano 2b45e8
	FMUL	S, b2, c6
kusano 2b45e8
	FADD	c1, c2, c2
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b2, c7
kusano 2b45e8
	nop
kusano 2b45e8
	FMUL	S, a2, c8
kusano 2b45e8
	FSUB	c3, c4, c4
kusano 2b45e8
kusano 2b45e8
	STF	c2, [X + 0 * SIZE]
kusano 2b45e8
	FADD	c5, c6, c6
kusano 2b45e8
	STF	c4, [Y + 0 * SIZE]
kusano 2b45e8
	FSUB	c7, c8, c8
kusano 2b45e8
kusano 2b45e8
	STF	c6, [X + 1 * SIZE]
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
	STF	c8, [Y + 1 * SIZE]
kusano 2b45e8
	add	Y, INCY, Y
kusano 2b45e8
kusano 2b45e8
	LDF	[X + 0 * SIZE], a1
kusano 2b45e8
	LDF	[Y + 0 * SIZE], b1
kusano 2b45e8
	LDF	[X + 1 * SIZE], a2
kusano 2b45e8
	LDF	[Y + 1 * SIZE], b2
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a1, c1
kusano 2b45e8
	FMUL	S, b1, c2
kusano 2b45e8
	FMUL	C, b1, c3
kusano 2b45e8
	FMUL	S, a1, c4
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a2, c5
kusano 2b45e8
	nop
kusano 2b45e8
	FMUL	S, b2, c6
kusano 2b45e8
	FADD	c1, c2, c2
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b2, c7
kusano 2b45e8
	nop
kusano 2b45e8
	FMUL	S, a2, c8
kusano 2b45e8
	FSUB	c3, c4, c4
kusano 2b45e8
kusano 2b45e8
	STF	c2, [X + 0 * SIZE]
kusano 2b45e8
	FADD	c5, c6, c6
kusano 2b45e8
	STF	c4, [Y + 0 * SIZE]
kusano 2b45e8
	FSUB	c7, c8, c8
kusano 2b45e8
kusano 2b45e8
	STF	c6, [X + 1 * SIZE]
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
	STF	c8, [Y + 1 * SIZE]
kusano 2b45e8
	add	Y, INCY, Y
kusano 2b45e8
kusano 2b45e8
	LDF	[X + 0 * SIZE], a1
kusano 2b45e8
	LDF	[Y + 0 * SIZE], b1
kusano 2b45e8
	LDF	[X + 1 * SIZE], a2
kusano 2b45e8
	LDF	[Y + 1 * SIZE], b2
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a1, c1
kusano 2b45e8
	FMUL	S, b1, c2
kusano 2b45e8
	FMUL	C, b1, c3
kusano 2b45e8
	FMUL	S, a1, c4
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a2, c5
kusano 2b45e8
	nop
kusano 2b45e8
	FMUL	S, b2, c6
kusano 2b45e8
	FADD	c1, c2, c2
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b2, c7
kusano 2b45e8
	nop
kusano 2b45e8
	FMUL	S, a2, c8
kusano 2b45e8
	FSUB	c3, c4, c4
kusano 2b45e8
kusano 2b45e8
	STF	c2, [X + 0 * SIZE]
kusano 2b45e8
	FADD	c5, c6, c6
kusano 2b45e8
	STF	c4, [Y + 0 * SIZE]
kusano 2b45e8
	FSUB	c7, c8, c8
kusano 2b45e8
kusano 2b45e8
	STF	c6, [X + 1 * SIZE]
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
	STF	c8, [Y + 1 * SIZE]
kusano 2b45e8
	add	Y, INCY, Y
kusano 2b45e8
kusano 2b45e8
	LDF	[X + 0 * SIZE], a1
kusano 2b45e8
	LDF	[Y + 0 * SIZE], b1
kusano 2b45e8
	LDF	[X + 1 * SIZE], a2
kusano 2b45e8
	LDF	[Y + 1 * SIZE], b2
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a1, c1
kusano 2b45e8
	FMUL	S, b1, c2
kusano 2b45e8
	FMUL	C, b1, c3
kusano 2b45e8
	FMUL	S, a1, c4
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a2, c5
kusano 2b45e8
	nop
kusano 2b45e8
	FMUL	S, b2, c6
kusano 2b45e8
	FADD	c1, c2, c2
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b2, c7
kusano 2b45e8
	nop
kusano 2b45e8
	FMUL	S, a2, c8
kusano 2b45e8
	FSUB	c3, c4, c4
kusano 2b45e8
kusano 2b45e8
	STF	c2, [X + 0 * SIZE]
kusano 2b45e8
	FADD	c5, c6, c6
kusano 2b45e8
	STF	c4, [Y + 0 * SIZE]
kusano 2b45e8
	FSUB	c7, c8, c8
kusano 2b45e8
kusano 2b45e8
	STF	c6, [X + 1 * SIZE]
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
	STF	c8, [Y + 1 * SIZE]
kusano 2b45e8
	add	Y, INCY, Y
kusano 2b45e8
kusano 2b45e8
	addcc	I, -1, I
kusano 2b45e8
	bg,pt	%icc, .LL51
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
.LL55:
kusano 2b45e8
	andcc	N, 3, I
kusano 2b45e8
	nop
kusano 2b45e8
	ble	%icc, .LL59
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
.LL56:
kusano 2b45e8
	LDF	[X + 0 * SIZE], a1
kusano 2b45e8
	LDF	[Y + 0 * SIZE], b1
kusano 2b45e8
	LDF	[X + 1 * SIZE], a2
kusano 2b45e8
	LDF	[Y + 1 * SIZE], b2
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a1, c1
kusano 2b45e8
	FMUL	S, b1, c2
kusano 2b45e8
	FMUL	C, b1, c3
kusano 2b45e8
	FMUL	S, a1, c4
kusano 2b45e8
kusano 2b45e8
	FMUL	C, a2, c5
kusano 2b45e8
	addcc	I, -1, I
kusano 2b45e8
	FMUL	S, b2, c6
kusano 2b45e8
	FADD	c1, c2, c2
kusano 2b45e8
kusano 2b45e8
	FMUL	C, b2, c7
kusano 2b45e8
	nop
kusano 2b45e8
	FMUL	S, a2, c8
kusano 2b45e8
	FSUB	c3, c4, c4
kusano 2b45e8
kusano 2b45e8
	STF	c2, [X + 0 * SIZE]
kusano 2b45e8
	FADD	c5, c6, c6
kusano 2b45e8
	STF	c4, [Y + 0 * SIZE]
kusano 2b45e8
	FSUB	c7, c8, c8
kusano 2b45e8
kusano 2b45e8
	STF	c6, [X + 1 * SIZE]
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
	STF	c8, [Y + 1 * SIZE]
kusano 2b45e8
kusano 2b45e8
	bg	%icc, .LL56
kusano 2b45e8
	add	Y, INCY, Y
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
.LL59:
kusano 2b45e8
	return	%i7 + 8
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	EPILOGUE