/*
 * Copyright (c) 1997-1999 Massachusetts Institute of Technology
 * Copyright (c) 2000-2001 Stefan Kral
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

/* This file was automatically generated --- DO NOT EDIT */
/* Generated on Tue Mar 25 06:42:18 EST 2003 */


/* fnset2/cheap-mode: VECTGRADE_FULL succeeded. (1397 steps) */
.section .rodata
	.balign 64
	chs_lo: .double -1.0, +1.0
	PK623489801PK623489801: .double +0.6234898018587335305250049, +0.6234898018587335305250049
	PK222520933PK222520933: .double +0.2225209339563144042889026, +0.2225209339563144042889026
	NK974927912PK781831482: .double -0.9749279121818236070181317, +0.7818314824680298087084445
	PK781831482PK433883739: .double +0.7818314824680298087084445, +0.4338837391175581204757683
	PK433883739PK974927912: .double +0.4338837391175581204757683, +0.9749279121818236070181317
	PK900968867PK900968867: .double +0.9009688679024191262361023, +0.9009688679024191262361023
	PK781831482PK781831482: .double +0.7818314824680298087084445, +0.7818314824680298087084445
	PK974927912PK974927912: .double +0.9749279121818236070181317, +0.9749279121818236070181317
	PK433883739PK433883739: .double +0.4338837391175581204757683, +0.4338837391175581204757683
	PK433883739PK781831482: .double +0.4338837391175581204757683, +0.7818314824680298087084445
	PK974927912PK433883739: .double +0.9749279121818236070181317, +0.4338837391175581204757683
	NK781831482PK974927912: .double -0.7818314824680298087084445, +0.9749279121818236070181317

	

.text
	.balign 64
	.globl	fftwi_twiddle_7
	.type	fftwi_twiddle_7, @function
fftwi_twiddle_7:
	subl $16, %esp
	movl %ebx, 12(%esp)
	movl 28(%esp), %edx
	movl 36(%esp), %ebx
	movl 24(%esp), %ecx
	movl %esi, 8(%esp)
	movl %edi, 4(%esp)
	movl %ebp, 0(%esp)
	movl 20(%esp), %eax
	movl 32(%esp), %esi
	sall $4, %edx
	sall $4, %ebx
	.p2align 4,,7
.L0:
	/* promise simd cell size = 16 */ 
	leal (%edx,%edx,2), %edi
	movapd (%ecx), %xmm1
	movapd 80(%ecx), %xmm4
	movapd (%eax,%edx), %xmm0
	leal (%edx,%edx,4), %ebp
	movapd (%eax,%edi,2), %xmm3
	movapd %xmm1, %xmm2
	movapd %xmm4, %xmm5
	mulpd %xmm0, %xmm2
	shufpd $9, %xmm0, %xmm0
	mulpd %xmm3, %xmm5
	shufpd $9, %xmm3, %xmm3
	mulpd %xmm0, %xmm1
	movapd (%eax,%edi), %xmm0
	movapd %xmm2, %xmm7
	leal (%edx,%edx,2), %edi
	movapd %xmm5, %xmm6
	mulpd %xmm3, %xmm4
	unpcklpd %xmm1, %xmm5
	unpckhpd %xmm1, %xmm6
	movapd 32(%ecx), %xmm1
	unpckhpd %xmm4, %xmm2
	unpcklpd %xmm4, %xmm7
	movapd %xmm0, %xmm3
	mulsd chs_lo, %xmm6
	mulsd chs_lo, %xmm2
	shufpd $9, %xmm3, %xmm3
	movapd %xmm1, %xmm4
	subpd %xmm6, %xmm5
	subpd %xmm2, %xmm7
	movapd (%eax,%edx,4), %xmm2
	mulpd %xmm3, %xmm1
	mulpd %xmm0, %xmm4
	movapd 48(%ecx), %xmm0
	movapd %xmm7, %xmm6
	addpd %xmm5, %xmm7
	subpd %xmm5, %xmm6
	movapd %xmm7, fftw_stackcell_1
	movapd %xmm4, %xmm7
	shufpd $9, %xmm6, %xmm6
	movapd %xmm2, %xmm3
	movapd %xmm0, %xmm5
	shufpd $9, %xmm3, %xmm3
	mulpd %xmm2, %xmm5
	movapd %xmm6, fftw_stackcell_0
	movapd 16(%ecx), %xmm6
	movapd (%eax,%edx,2), %xmm2
	mulpd %xmm3, %xmm0
	unpckhpd %xmm5, %xmm7
	unpcklpd %xmm5, %xmm4
	movapd (%eax,%ebp), %xmm5
	leal (%edx,%edx,4), %ebp
	addpd %xmm4, %xmm7
	movapd 64(%ecx), %xmm4
	movapd %xmm6, %xmm3
	addl $96, %ecx
	mulpd %xmm2, %xmm3
	movapd %xmm7, fftw_stackcell_2
	shufpd $9, %xmm2, %xmm2
	mulpd %xmm2, %xmm6
	movapd %xmm3, %xmm2
	movapd %xmm4, %xmm7
	mulpd %xmm5, %xmm7
	shufpd $9, %xmm5, %xmm5
	unpckhpd %xmm7, %xmm2
	mulpd %xmm5, %xmm4
	movapd %xmm0, %xmm5
	unpcklpd %xmm7, %xmm3
	unpckhpd %xmm1, %xmm0
	addpd %xmm3, %xmm2
	movapd fftw_stackcell_2, %xmm3
	movapd %xmm4, %xmm7
	unpcklpd %xmm1, %xmm5
	unpckhpd %xmm6, %xmm4
	unpcklpd %xmm6, %xmm7
	subpd %xmm0, %xmm5
	movapd %xmm3, %xmm1
	subpd %xmm4, %xmm7
	movapd %xmm3, %xmm6
	unpckhpd %xmm5, %xmm1
	movapd %xmm7, %xmm0
	movapd %xmm7, %xmm4
	unpcklpd %xmm5, %xmm6
	unpcklpd %xmm3, %xmm0
	unpckhpd %xmm3, %xmm4
	addpd %xmm6, %xmm1
	movapd %xmm2, %xmm3
	movapd %xmm2, %xmm6
	unpckhpd %xmm7, %xmm3
	unpcklpd %xmm7, %xmm6
	movapd %xmm5, %xmm7
	subpd %xmm4, %xmm0
	unpckhpd %xmm2, %xmm5
	unpcklpd %xmm2, %xmm7
	movapd %xmm0, fftw_stackcell_6
	addpd %xmm6, %xmm3
	subpd %xmm5, %xmm7
	movapd %xmm3, %xmm4
	movapd %xmm3, %xmm2
	movapd %xmm3, %xmm5
	movapd %xmm7, %xmm0
	movapd %xmm7, %xmm6
	mulpd PK623489801PK623489801, %xmm4
	mulpd PK222520933PK222520933, %xmm2
	mulpd NK974927912PK781831482, %xmm0
	mulpd PK781831482PK433883739, %xmm6
	mulpd PK433883739PK974927912, %xmm7
	movapd %xmm0, fftw_stackcell_4
	mulpd PK900968867PK900968867, %xmm5
	movapd (%eax), %xmm0
	/* simd data load/store barrier */ 
	movapd %xmm6, fftw_stackcell_5
	movapd %xmm7, fftw_stackcell_3
	movapd %xmm0, %xmm6
	addpd %xmm0, %xmm3
	movapd %xmm0, %xmm7
	subpd %xmm2, %xmm0
	movapd %xmm1, %xmm2
	addpd %xmm4, %xmm6
	movapd %xmm3, fftw_stackcell_7
	movapd fftw_stackcell_1, %xmm4
	mulpd PK623489801PK623489801, %xmm2
	subpd %xmm5, %xmm7
	movapd %xmm4, %xmm3
	movapd %xmm4, %xmm5
	mulpd PK623489801PK623489801, %xmm4
	mulpd PK222520933PK222520933, %xmm3
	mulpd PK900968867PK900968867, %xmm5
	subpd %xmm3, %xmm2
	movapd %xmm1, %xmm3
	addpd %xmm7, %xmm2
	movapd %xmm1, %xmm7
	mulpd PK222520933PK222520933, %xmm3
	addpd fftw_stackcell_1, %xmm1
	mulpd PK900968867PK900968867, %xmm7
	addpd %xmm5, %xmm3
	movapd fftw_stackcell_0, %xmm5
	subpd %xmm7, %xmm4
	addpd fftw_stackcell_7, %xmm1
	addpd %xmm0, %xmm4
	movapd fftw_stackcell_6, %xmm0
	movapd %xmm5, %xmm7
	subpd %xmm3, %xmm6
	movapd %xmm5, %xmm3
	mulpd PK781831482PK781831482, %xmm5
	mulpd PK974927912PK974927912, %xmm7
	mulpd PK433883739PK433883739, %xmm3
	movapd %xmm1, (%eax)
	movapd %xmm0, %xmm1
	mulpd PK433883739PK781831482, %xmm1
	subpd %xmm1, %xmm7
	movapd %xmm0, %xmm1
	mulpd PK974927912PK433883739, %xmm0
	mulpd NK781831482PK974927912, %xmm1
	subpd fftw_stackcell_5, %xmm7
	addpd %xmm5, %xmm0
	movapd %xmm2, %xmm5
	addpd %xmm1, %xmm3
	movapd %xmm4, %xmm1
	addpd fftw_stackcell_3, %xmm0
	subpd fftw_stackcell_4, %xmm3
	subpd %xmm7, %xmm5
	addpd %xmm7, %xmm2
	movapd %xmm6, %xmm7
	movapd %xmm5, (%eax,%ebp)
	addpd %xmm0, %xmm4
	movapd %xmm2, (%eax,%edx,2)
	subpd %xmm0, %xmm1
	subpd %xmm3, %xmm7
	movapd %xmm4, (%eax,%edx)
	addpd %xmm3, %xmm6
	movapd %xmm1, (%eax,%edi,2)
	movapd %xmm7, (%eax,%edx,4)
	movapd %xmm6, (%eax,%edi)
	addl %ebx, %eax
	decl %esi
	jnz .L0
	movl 12(%esp), %ebx
	movl 8(%esp), %esi
	movl 4(%esp), %edi
	movl 0(%esp), %ebp
	addl $16, %esp
	ret 


.section .rodata
	.balign 4
twiddle_order:
	.long 1
	.long 2
	.long 3
	.long 4
	.long 5
	.long 6

	.globl fftwi_twiddle_7_desc
	.balign 32
fftwi_twiddle_7_desc:
	/* descr_str_ptr */	.long .LC0
	/* codelet_ptr */	.long fftwi_twiddle_7
	/* n */			.long 7
	/* cdir_int */		.long 1
	/* ctype_int */		.long 1
	/* signature */		.long 165
	/* num_twiddles */	.long 6
	/* twiddle_order */	.long twiddle_order
.LC0:	.string "fftwi_twiddle_7"
