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
kusano 2b45e8
#if defined(DOUBLE) && !defined(__64BIT__)
kusano 2b45e8
#define X	%i3
kusano 2b45e8
#define INCX	%i4
kusano 2b45e8
#else
kusano 2b45e8
#define X	%i5
kusano 2b45e8
#define INCX	%i3
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#define I	%i1
kusano 2b45e8
#define XX	%i2
kusano 2b45e8
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
#define c1	%f0
kusano 2b45e8
#define c2	%f2
kusano 2b45e8
#define c3	%f4
kusano 2b45e8
#define c4	%f6
kusano 2b45e8
#define c5	%f8
kusano 2b45e8
#define c6	%f10
kusano 2b45e8
#define c7	%f12
kusano 2b45e8
#define c8	%f14
kusano 2b45e8
kusano 2b45e8
#define t1	%f16
kusano 2b45e8
#define t2	%f18
kusano 2b45e8
#define t3	%f20
kusano 2b45e8
#define t4	%f22
kusano 2b45e8
#define t5	%f24
kusano 2b45e8
#define t6	%f26
kusano 2b45e8
#define t7	%f28
kusano 2b45e8
#define t8	%f30
kusano 2b45e8
kusano 2b45e8
#define c9	%f32
kusano 2b45e8
#define c10	%f34
kusano 2b45e8
#define c11	%f36
kusano 2b45e8
#define c12	%f38
kusano 2b45e8
#define c13	%f40
kusano 2b45e8
#define c14	%f42
kusano 2b45e8
#define c15	%f44
kusano 2b45e8
#define c16	%f46
kusano 2b45e8
kusano 2b45e8
#define s1	%f32
kusano 2b45e8
#define s2	%f34
kusano 2b45e8
#define s3	%f36
kusano 2b45e8
#define s4	%f38
kusano 2b45e8
#define s5	%f40
kusano 2b45e8
#define s6	%f42
kusano 2b45e8
#define s7	%f44
kusano 2b45e8
#define s8	%f46
kusano 2b45e8
kusano 2b45e8
#define FZERO	%f48
kusano 2b45e8
#define ALPHA_R	%f50
kusano 2b45e8
#define ALPHA_I	%f52
kusano 2b45e8
#else
kusano 2b45e8
#define c1	%f0
kusano 2b45e8
#define c2	%f1
kusano 2b45e8
#define c3	%f2
kusano 2b45e8
#define c4	%f3
kusano 2b45e8
#define c5	%f4
kusano 2b45e8
#define c6	%f5
kusano 2b45e8
#define c7	%f6
kusano 2b45e8
#define c8	%f7
kusano 2b45e8
kusano 2b45e8
#define c9	%f8
kusano 2b45e8
#define c10	%f9
kusano 2b45e8
#define c11	%f10
kusano 2b45e8
#define c12	%f11
kusano 2b45e8
#define c13	%f12
kusano 2b45e8
#define c14	%f13
kusano 2b45e8
#define c15	%f14
kusano 2b45e8
#define c16	%f15
kusano 2b45e8
kusano 2b45e8
#define s1	%f8
kusano 2b45e8
#define s2	%f9
kusano 2b45e8
#define s3	%f10
kusano 2b45e8
#define s4	%f11
kusano 2b45e8
#define s5	%f12
kusano 2b45e8
#define s6	%f13
kusano 2b45e8
#define s7	%f14
kusano 2b45e8
#define s8	%f15
kusano 2b45e8
kusano 2b45e8
#define t1	%f16
kusano 2b45e8
#define t2	%f17
kusano 2b45e8
#define t3	%f18
kusano 2b45e8
#define t4	%f19
kusano 2b45e8
#define t5	%f20
kusano 2b45e8
#define t6	%f21
kusano 2b45e8
#define t7	%f22
kusano 2b45e8
#define t8	%f23
kusano 2b45e8
kusano 2b45e8
#define FZERO	%f24
kusano 2b45e8
#define ALPHA_R	%f25
kusano 2b45e8
#define ALPHA_I	%f26
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#define PREFETCHSIZE 128
kusano 2b45e8
kusano 2b45e8
	PROLOGUE
kusano 2b45e8
	SAVESP
kusano 2b45e8
kusano 2b45e8
#ifndef __64BIT__
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
	st	%i3, [%sp + STACK_START + 16]
kusano 2b45e8
	st	%i4, [%sp + STACK_START + 20]
kusano 2b45e8
	st	%i5, [%sp + STACK_START + 24]
kusano 2b45e8
kusano 2b45e8
	ld	[%sp+ STACK_START + 32], X
kusano 2b45e8
	ld	[%sp+ STACK_START + 36], INCX
kusano 2b45e8
#else
kusano 2b45e8
	st	%i3, [%sp + STACK_START + 16]
kusano 2b45e8
	st	%i4, [%sp + STACK_START + 24]
kusano 2b45e8
	ld	[%sp+  STACK_START + 28], INCX
kusano 2b45e8
#endif
kusano 2b45e8
	LDF	[%sp + STACK_START + 16], ALPHA_R
kusano 2b45e8
	LDF	[%sp + STACK_START + 24], ALPHA_I
kusano 2b45e8
#else
kusano 2b45e8
	ldx	[%sp + STACK_START + 56], INCX
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
	FMOV	%f6, ALPHA_R
kusano 2b45e8
	FMOV	%f8, ALPHA_I
kusano 2b45e8
#else
kusano 2b45e8
	FMOV	%f7, ALPHA_R
kusano 2b45e8
	FMOV	%f9, ALPHA_I
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifdef DOUBLE
kusano 2b45e8
	FCLR(17)
kusano 2b45e8
#else
kusano 2b45e8
	FCLR(24)
kusano 2b45e8
#endif
kusano 2b45e8
	
kusano 2b45e8
	FCMP	ALPHA_R, FZERO
kusano 2b45e8
	fbne	.LL100
kusano 2b45e8
	sll	INCX, ZBASE_SHIFT, INCX
kusano 2b45e8
kusano 2b45e8
	FCMP	ALPHA_I, FZERO
kusano 2b45e8
	fbne	.LL100
kusano 2b45e8
	nop
kusano 2b45e8
	cmp	INCX, 2 * SIZE
kusano 2b45e8
	bne	.LL50
kusano 2b45e8
	nop
kusano 2b45e8
	sra	N, 2, I
kusano 2b45e8
	cmp	I, 0
kusano 2b45e8
	ble,pn	%icc, .LL15
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
.LL11:
kusano 2b45e8
	prefetch [X  + PREFETCHSIZE * SIZE], 0
kusano 2b45e8
kusano 2b45e8
	STF	FZERO, [X +  0 * SIZE]
kusano 2b45e8
	add	I, -1, I
kusano 2b45e8
	STF	FZERO, [X +  1 * SIZE]
kusano 2b45e8
	cmp	I, 0
kusano 2b45e8
	STF	FZERO, [X +  2 * SIZE]
kusano 2b45e8
	STF	FZERO, [X +  3 * SIZE]
kusano 2b45e8
	STF	FZERO, [X +  4 * SIZE]
kusano 2b45e8
	STF	FZERO, [X +  5 * SIZE]
kusano 2b45e8
	add	X, 8 * SIZE, X
kusano 2b45e8
	STF	FZERO, [X -  2 * SIZE]
kusano 2b45e8
	bg,pt	%icc, .LL11
kusano 2b45e8
	STF	FZERO, [X -  1 * SIZE]
kusano 2b45e8
kusano 2b45e8
.LL15:
kusano 2b45e8
	and	N, 3, I
kusano 2b45e8
	cmp	I,  0
kusano 2b45e8
	ble,a,pn %icc, .LL19
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
.LL16:
kusano 2b45e8
	STF	FZERO, [X +  0 * SIZE]
kusano 2b45e8
	STF	FZERO, [X +  1 * SIZE]
kusano 2b45e8
	add	I, -1, I
kusano 2b45e8
	cmp	I, 0
kusano 2b45e8
	bg,pt	%icc, .LL16
kusano 2b45e8
	add	X, 2 * SIZE, X
kusano 2b45e8
kusano 2b45e8
.LL19:
kusano 2b45e8
	return	%i7 + 8
kusano 2b45e8
	clr	%o0
kusano 2b45e8
kusano 2b45e8
.LL50:
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
	STF	FZERO, [X +  0 * SIZE]
kusano 2b45e8
	add	I, -1, I
kusano 2b45e8
	STF	FZERO, [X +  1 * SIZE]
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
	STF	FZERO, [X +  0 * SIZE]
kusano 2b45e8
	cmp	I, 0
kusano 2b45e8
	STF	FZERO, [X +  1 * SIZE]
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
	STF	FZERO, [X +  0 * SIZE]
kusano 2b45e8
	STF	FZERO, [X +  1 * SIZE]
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
	STF	FZERO, [X +  0 * SIZE]
kusano 2b45e8
	STF	FZERO, [X +  1 * SIZE]
kusano 2b45e8
	bg,pt	%icc, .LL51
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
kusano 2b45e8
.LL55:
kusano 2b45e8
	and	N, 3, I
kusano 2b45e8
	cmp	I,  0
kusano 2b45e8
	ble,a,pn %icc, .LL59
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
.LL56:
kusano 2b45e8
	STF	FZERO, [X +  0 * SIZE]
kusano 2b45e8
	add	I, -1, I
kusano 2b45e8
	STF	FZERO, [X +  1 * SIZE]
kusano 2b45e8
	cmp	I, 0
kusano 2b45e8
	bg,pt	%icc, .LL56
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
kusano 2b45e8
.LL59:
kusano 2b45e8
	return	%i7 + 8
kusano 2b45e8
	clr	%o0
kusano 2b45e8
kusano 2b45e8
.LL100:
kusano 2b45e8
	cmp	INCX, 2 * SIZE
kusano 2b45e8
	bne	.LL150
kusano 2b45e8
	sra	N, 2, I
kusano 2b45e8
kusano 2b45e8
	cmp	I, 0
kusano 2b45e8
	ble,pn	%icc, .LL115
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
	LDF	[X +  0 * SIZE], c1
kusano 2b45e8
	LDF	[X +  1 * SIZE], c2
kusano 2b45e8
	LDF	[X +  2 * SIZE], c3
kusano 2b45e8
	LDF	[X +  3 * SIZE], c4
kusano 2b45e8
	LDF	[X +  4 * SIZE], c5
kusano 2b45e8
	LDF	[X +  5 * SIZE], c6
kusano 2b45e8
	LDF	[X +  6 * SIZE], c7
kusano 2b45e8
	LDF	[X +  7 * SIZE], c8
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_R, c1, t1
kusano 2b45e8
	FMUL	ALPHA_I, c2, t3
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_I, c1, t2
kusano 2b45e8
	LDF	[X +  8 * SIZE], c1
kusano 2b45e8
	FMUL	ALPHA_R, c2, t4
kusano 2b45e8
	LDF	[X +  9 * SIZE], c2
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_R, c3, t5
kusano 2b45e8
	deccc	I
kusano 2b45e8
	FMUL	ALPHA_I, c4, t7
kusano 2b45e8
	FSUB	t1,  t3,  s1
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_I, c3, t6
kusano 2b45e8
	LDF	[X + 10 * SIZE], c3
kusano 2b45e8
	FMUL	ALPHA_R, c4, t8
kusano 2b45e8
	LDF	[X + 11 * SIZE], c4
kusano 2b45e8
	FADD	t4,  t2,  s2
kusano 2b45e8
kusano 2b45e8
	ble,pn	%icc, .LL112
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
.LL111:
kusano 2b45e8
	prefetch [X  + PREFETCHSIZE * SIZE], 0
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_R, c5, t1
kusano 2b45e8
	FMUL	ALPHA_I, c6, t3
kusano 2b45e8
	FSUB	t5,  t7,  s3
kusano 2b45e8
	STF	s1, [X +  0 * SIZE]
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_I, c5, t2
kusano 2b45e8
	LDF	[X + 12 * SIZE], c5
kusano 2b45e8
	FMUL	ALPHA_R, c6, t4
kusano 2b45e8
	LDF	[X + 13 * SIZE], c6
kusano 2b45e8
kusano 2b45e8
	FADD	t8,  t6,  s4
kusano 2b45e8
	STF	s2, [X +  1 * SIZE]
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_R, c7, t5
kusano 2b45e8
	FMUL	ALPHA_I, c8, t7
kusano 2b45e8
	FSUB	t1,  t3,  s5
kusano 2b45e8
	STF	s3, [X +  2 * SIZE]
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_I, c7, t6
kusano 2b45e8
	LDF	[X + 14 * SIZE], c7
kusano 2b45e8
	FMUL	ALPHA_R, c8, t8
kusano 2b45e8
	LDF	[X + 15 * SIZE], c8
kusano 2b45e8
kusano 2b45e8
	FADD	t4,  t2,  s6
kusano 2b45e8
	STF	s4, [X +  3 * SIZE]
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_R, c1, t1
kusano 2b45e8
	FMUL	ALPHA_I, c2, t3
kusano 2b45e8
	FSUB	t5,  t7,  s7
kusano 2b45e8
	STF	s5, [X +  4 * SIZE]
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_I, c1, t2
kusano 2b45e8
	LDF	[X + 16 * SIZE], c1
kusano 2b45e8
	FMUL	ALPHA_R, c2, t4
kusano 2b45e8
	LDF	[X + 17 * SIZE], c2
kusano 2b45e8
kusano 2b45e8
	FADD	t8,  t6,  s8
kusano 2b45e8
	STF	s6, [X +  5 * SIZE]
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_R, c3, t5
kusano 2b45e8
	deccc	I
kusano 2b45e8
	FMUL	ALPHA_I, c4, t7
kusano 2b45e8
	FSUB	t1,  t3,  s1
kusano 2b45e8
	STF	s7, [X +  6 * SIZE]
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_I, c3, t6
kusano 2b45e8
	LDF	[X + 18 * SIZE], c3
kusano 2b45e8
	FMUL	ALPHA_R, c4, t8
kusano 2b45e8
	LDF	[X + 19 * SIZE], c4
kusano 2b45e8
kusano 2b45e8
	FADD	t4,  t2,  s2
kusano 2b45e8
	STF	s8, [X +  7 * SIZE]
kusano 2b45e8
kusano 2b45e8
	bg,pt	%icc, .LL111
kusano 2b45e8
	add	X, 8 * SIZE, X
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
.LL112:
kusano 2b45e8
	FMUL	ALPHA_R, c5, t1
kusano 2b45e8
	FMUL	ALPHA_I, c6, t3
kusano 2b45e8
	FSUB	t5,  t7,  s3
kusano 2b45e8
	STF	s1, [X +  0 * SIZE]
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_I, c5, t2
kusano 2b45e8
	FMUL	ALPHA_R, c6, t4
kusano 2b45e8
	FADD	t8,  t6,  s4
kusano 2b45e8
	STF	s2, [X +  1 * SIZE]
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_R, c7, t5
kusano 2b45e8
	FMUL	ALPHA_I, c8, t7
kusano 2b45e8
	FSUB	t1,  t3,  s5
kusano 2b45e8
	STF	s3, [X +  2 * SIZE]
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_I, c7, t6
kusano 2b45e8
	FMUL	ALPHA_R, c8, t8
kusano 2b45e8
	FADD	t4,  t2,  s6
kusano 2b45e8
	STF	s4, [X +  3 * SIZE]
kusano 2b45e8
kusano 2b45e8
	FSUB	t5,  t7,  s7
kusano 2b45e8
	FADD	t8,  t6,  s8
kusano 2b45e8
kusano 2b45e8
	STF	s5, [X +  4 * SIZE]
kusano 2b45e8
	STF	s6, [X +  5 * SIZE]
kusano 2b45e8
	STF	s7, [X +  6 * SIZE]
kusano 2b45e8
	STF	s8, [X +  7 * SIZE]
kusano 2b45e8
	add	X, 8 * SIZE, X
kusano 2b45e8
kusano 2b45e8
.LL115:
kusano 2b45e8
	and	N, 3, I
kusano 2b45e8
	cmp	I,  0
kusano 2b45e8
	ble,a,pn %icc, .LL119
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
.LL116:
kusano 2b45e8
	LDF	[X +  0 * SIZE], c1
kusano 2b45e8
	LDF	[X +  1 * SIZE], c2
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_R, c1, c3
kusano 2b45e8
	FMUL	ALPHA_I, c1, c4
kusano 2b45e8
	FMUL	ALPHA_I, c2, c1
kusano 2b45e8
	FMUL	ALPHA_R, c2, c2
kusano 2b45e8
kusano 2b45e8
	FSUB	c3, c1, c1
kusano 2b45e8
	FADD	c2, c4, c2
kusano 2b45e8
kusano 2b45e8
	STF	c1, [X +  0 * SIZE]
kusano 2b45e8
	STF	c2, [X +  1 * SIZE]
kusano 2b45e8
kusano 2b45e8
	add	I, -1, I
kusano 2b45e8
	cmp	I, 0
kusano 2b45e8
	bg,pt	%icc, .LL116
kusano 2b45e8
	add	X, 2 * SIZE, X
kusano 2b45e8
kusano 2b45e8
.LL119:
kusano 2b45e8
	return	%i7 + 8
kusano 2b45e8
	clr	%o0
kusano 2b45e8
kusano 2b45e8
.LL150:
kusano 2b45e8
	sra	N, 2, I
kusano 2b45e8
	cmp	I, 0
kusano 2b45e8
	ble,pn	%icc, .LL155
kusano 2b45e8
	mov	X, XX
kusano 2b45e8
kusano 2b45e8
.LL151:
kusano 2b45e8
	LDF	[X +  0 * SIZE], c1
kusano 2b45e8
	LDF	[X +  1 * SIZE], c2
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
	LDF	[X +  0 * SIZE], c3
kusano 2b45e8
	FMUL	ALPHA_R, c1, c9
kusano 2b45e8
	LDF	[X +  1 * SIZE], c4
kusano 2b45e8
	FMUL	ALPHA_I, c1, c10
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
	LDF	[X +  0 * SIZE], c5
kusano 2b45e8
	FMUL	ALPHA_I, c2, c1
kusano 2b45e8
	LDF	[X +  1 * SIZE], c6
kusano 2b45e8
	FMUL	ALPHA_R, c2, c2
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
	LDF	[X +  0 * SIZE], c7
kusano 2b45e8
	FMUL	ALPHA_R, c3, c11
kusano 2b45e8
	LDF	[X +  1 * SIZE], c8
kusano 2b45e8
	FMUL	ALPHA_I, c3, c12
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_I, c4, c3
kusano 2b45e8
	FMUL	ALPHA_R, c4, c4
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_R, c5, c13
kusano 2b45e8
	FMUL	ALPHA_I, c5, c14
kusano 2b45e8
	FMUL	ALPHA_I, c6, c5
kusano 2b45e8
	FMUL	ALPHA_R, c6, c6
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_R, c7, c15
kusano 2b45e8
	FSUB	c9,  c1,  c1
kusano 2b45e8
	FMUL	ALPHA_I, c7, c16
kusano 2b45e8
	FADD	c2,  c10, c2
kusano 2b45e8
	FMUL	ALPHA_I, c8, c7
kusano 2b45e8
	FSUB	c11, c3,  c3
kusano 2b45e8
	FMUL	ALPHA_R, c8, c8
kusano 2b45e8
	FADD	c4,  c12, c4
kusano 2b45e8
kusano 2b45e8
	STF	c1, [XX +  0 * SIZE]
kusano 2b45e8
	FSUB	c13, c5,  c5
kusano 2b45e8
	add	I, -1, I
kusano 2b45e8
	STF	c2, [XX +  1 * SIZE]
kusano 2b45e8
	FADD	c6,  c14, c6
kusano 2b45e8
	add	XX, INCX, XX
kusano 2b45e8
	STF	c3, [XX +  0 * SIZE]
kusano 2b45e8
	FSUB	c15, c7,  c7
kusano 2b45e8
	cmp	I, 0
kusano 2b45e8
	STF	c4, [XX +  1 * SIZE]
kusano 2b45e8
	FADD	c8,  c16, c8
kusano 2b45e8
	add	XX, INCX, XX
kusano 2b45e8
	STF	c5, [XX +  0 * SIZE]
kusano 2b45e8
	STF	c6, [XX +  1 * SIZE]
kusano 2b45e8
	add	XX, INCX, XX
kusano 2b45e8
	STF	c7, [XX +  0 * SIZE]
kusano 2b45e8
	STF	c8, [XX +  1 * SIZE]
kusano 2b45e8
	bg,pt	%icc, .LL151
kusano 2b45e8
	add	XX, INCX, XX
kusano 2b45e8
kusano 2b45e8
.LL155:
kusano 2b45e8
	and	N, 3, I
kusano 2b45e8
	cmp	I,  0
kusano 2b45e8
	ble,a,pn %icc, .LL159
kusano 2b45e8
	nop
kusano 2b45e8
kusano 2b45e8
.LL156:
kusano 2b45e8
	LDF	[X +  0 * SIZE], c1
kusano 2b45e8
	LDF	[X +  1 * SIZE], c2
kusano 2b45e8
kusano 2b45e8
	FMUL	ALPHA_R, c1, c3
kusano 2b45e8
	FMUL	ALPHA_I, c1, c4
kusano 2b45e8
	FMUL	ALPHA_I, c2, c1
kusano 2b45e8
	FMUL	ALPHA_R, c2, c2
kusano 2b45e8
kusano 2b45e8
	FSUB	c3, c1, c1
kusano 2b45e8
	FADD	c2, c4, c2
kusano 2b45e8
kusano 2b45e8
	STF	c1, [X +  0 * SIZE]
kusano 2b45e8
	STF	c2, [X +  1 * SIZE]
kusano 2b45e8
kusano 2b45e8
	add	I, -1, I
kusano 2b45e8
	cmp	I, 0
kusano 2b45e8
	bg,pt	%icc, .LL156
kusano 2b45e8
	add	X, INCX, X
kusano 2b45e8
kusano 2b45e8
.LL159:
kusano 2b45e8
	return	%i7 + 8
kusano 2b45e8
	clr	%o0
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
	EPILOGUE