/*
 * Copyright (c) 2003 Matteo Frigo
 * Copyright (c) 2003 Massachusetts Institute of Technology
 *
 * 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 Sat Jul  5 21:50:57 EDT 2003 */

#include "config.h"



/* $$$-mode: VECTGRADE_FULL succeeded (226 steps) */
/* Generated by: /homee/stevenj/cvs/fftw3.0.1/genfft-k7/gen_notw -no-randomized-cse -n 7 -name n1k7_7 */

/*
 * Generator Id's : 
 * $Id: algsimp.ml,v 1.3 2003/03/15 20:29:42 stevenj Exp $
 * $Id: fft.ml,v 1.3 2003/03/15 20:29:43 stevenj Exp $
 * $Id: gen_notw.ml,v 1.11 2003/04/18 01:21:45 athena Exp $
 */

/* The following asm code is Copyright (c) 2000-2001 Stefan Kral */
.section .rodata
	.balign 64
KP222520933KP222520933: .float +0.222520933956314404288902564496794759466355569, +0.222520933956314404288902564496794759466355569
KP623489801KP623489801: .float +0.623489801858733530525004884004239810632274731, +0.623489801858733530525004884004239810632274731
KP900968867KP900968867: .float +0.900968867902419126236102319507445051165919162, +0.900968867902419126236102319507445051165919162
KP433883739KN433883739: .float +0.433883739117558120475768332848358754609990728, -0.433883739117558120475768332848358754609990728
KP974927912KN974927912: .float +0.974927912181823607018131682993931217232785801, -0.974927912181823607018131682993931217232785801
KP781831482KN781831482: .float +0.781831482468029808708444526674057750232334519, -0.781831482468029808708444526674057750232334519
.text
.text
	.balign 64
n1k7_7:
	subl $52, %esp
	femms 
	movl %ebx, 48(%esp)
	movl 72(%esp), %edx
	movl 76(%esp), %ebx
	movl %esi, 44(%esp)
	movl %edi, 40(%esp)
	movl 56(%esp), %eax
	movl %ebp, 36(%esp)
	movl 64(%esp), %ecx
	sall $2, 84(%esp)
	leal (,%edx,4), %edx
	sall $2, 88(%esp)
	leal (,%ebx,4), %ebx
	.p2align 4,,7
.L0:
	/* promise simd cell size = 8 */ 
	leal (%edx,%edx,4), %esi
	movq (%eax,%edx,2), %mm1
	movq (%eax), %mm6
	leal (%edx,%edx,2), %edi
	leal (%ebx,%ebx,2), %ebp
	movq (%eax,%esi), %mm0
	leal (%ebx,%ebx,4), %esi
	movq %mm1, %mm2
	movq %mm6, %mm7
	pfadd %mm0, %mm1
	pfsub %mm0, %mm2
	movq %mm6, %mm0
	movq %mm1, %mm3
	movq %mm1, %mm4
	movq %mm1, %mm5
	pfmul KP222520933KP222520933, %mm1
	pswapd %mm2, %mm2
	pfmul KP623489801KP623489801, %mm3
	pfadd %mm6, %mm5
	pfmul KP900968867KP900968867, %mm4
	pfsub %mm1, %mm7
	movq %mm2, %mm1
	pfadd %mm3, %mm6
	movq %mm2, %mm3
	pfmul KP433883739KN433883739, %mm2
	pfmul KP974927912KN974927912, %mm1
	pfsub %mm4, %mm0
	pfmul KP781831482KN781831482, %mm3
	movq %mm2, 24(%esp)
	movq %mm1, 0(%esp)
	movq %mm3, 8(%esp)
	movq (%eax,%edx,4), %mm4
	movq (%eax,%edi,2), %mm2
	movq (%eax,%edi), %mm3
	movq %mm3, %mm1
	pfsub %mm4, %mm3
	pfadd %mm4, %mm1
	movq (%eax,%edx), %mm4
	/* simd data load/store barrier */ 
	addl 84(%esp), %eax
	movq %mm3, 16(%esp)
	movq %mm4, %mm3
	pfsub %mm2, %mm4
	pfadd %mm2, %mm3
	movq %mm1, %mm2
	pswapd %mm4, %mm4
	pfadd %mm3, %mm2
	pfadd %mm5, %mm2
	movq %mm1, %mm5
	pfmul KP623489801KP623489801, %mm5
	movq %mm2, (%ecx)
	movq %mm3, %mm2
	pfmul KP222520933KP222520933, %mm2
	pfsub %mm2, %mm5
	movq %mm1, %mm2
	pfmul KP900968867KP900968867, %mm1
	pfmul KP222520933KP222520933, %mm2
	pfadd %mm0, %mm5
	movq %mm3, %mm0
	pfmul KP623489801KP623489801, %mm3
	pfmul KP900968867KP900968867, %mm0
	pfsub %mm1, %mm3
	movq %mm4, %mm1
	pfadd %mm0, %mm2
	pfmul KP974927912KN974927912, %mm1
	movq %mm4, %mm0
	pfmul KP781831482KN781831482, %mm4
	pfadd %mm7, %mm3
	movq 16(%esp), %mm7
	pfmul KP433883739KN433883739, %mm0
	pfsubr %mm6, %mm2
	pswapd %mm7, %mm7
	pfsub 24(%esp), %mm1
	pfadd 0(%esp), %mm4
	movq %mm7, %mm6
	pfsub 8(%esp), %mm0
	pfmul KP781831482KN781831482, %mm6
	pfsub %mm6, %mm1
	movq %mm7, %mm6
	pfmul KP974927912KN974927912, %mm7
	pfmul KP433883739KN433883739, %mm6
	pfadd %mm7, %mm0
	movq %mm5, %mm7
	pfadd %mm1, %mm5
	pfadd %mm6, %mm4
	movq %mm2, %mm6
	pfsub %mm1, %mm7
	movq %mm3, %mm1
	pfsub %mm0, %mm2
	pfadd %mm0, %mm6
	movq %mm5, (%ecx,%ebx,2)
	pfadd %mm4, %mm3
	pfsub %mm4, %mm1
	movq %mm7, (%ecx,%esi)
	movq %mm2, (%ecx,%ebx,4)
	movq %mm6, (%ecx,%ebp)
	movq %mm3, (%ecx,%ebx)
	movq %mm1, (%ecx,%ebp,2)
	addl 88(%esp), %ecx
	decl 80(%esp)
	jnz .L0
	femms 
	movl 48(%esp), %ebx
	movl 44(%esp), %esi
	movl 40(%esp), %edi
	movl 36(%esp), %ebp
	addl $52, %esp
	ret 

.section .rodata
nam:
	.string "n1k7_7"
	.align 4
desc:
	.long 7
	.long nam
	.double 30
	.double 18
	.double 0
	.double 0
	.long fftwf_kdft_k7_mgenus
	.long 0
	.long 0
	.long 0
	.long 0

.text
	.align 4
.globl fftwf_codelet_n1k7_7
fftwf_codelet_n1k7_7:
	subl $12,%esp
	addl $-4,%esp
	pushl $desc
	pushl $n1k7_7
	pushl 28(%esp)
	call fftwf_kdft_register
	addl $16,%esp
	addl $12,%esp
	ret

