/*
 * Copyright (c) 2003, 2006 Matteo Frigo
 * Copyright (c) 2003, 2006 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  1 22:42:37 EDT 2006 */

#include "config.h"



/* $$$-mode: VECTGRADE_FULL succeeded (226 steps) */
/* Generated by: ../../../genfft-k7/gen_notw -no-randomized-cse -n 7 -sign 1 -name n1k7i_7 */

/*
 * Generator Id's : 
 * $Id: algsimp.ml,v 1.4 2006-01-05 03:04:27 stevenj Exp $
 * $Id: fft.ml,v 1.4 2006-01-05 03:04:27 stevenj Exp $
 * $Id: gen_notw.ml,v 1.12 2006-01-05 03:04:27 stevenj 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
KP781831482KN781831482: .float +0.781831482468029808708444526674057750232334519, -0.781831482468029808708444526674057750232334519
KP974927912KN974927912: .float +0.974927912181823607018131682993931217232785801, -0.974927912181823607018131682993931217232785801
KP433883739KN433883739: .float +0.433883739117558120475768332848358754609990728, -0.433883739117558120475768332848358754609990728
.text
.text
	.balign 64
n1k7i_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 60(%esp), %eax
	movl %ebp, 36(%esp)
	movl 68(%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
	pfsubr %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 KP781831482KN781831482, %mm2
	pfmul KP974927912KN974927912, %mm1
	pfsub %mm4, %mm0
	pfmul KP433883739KN433883739, %mm3
	movq %mm2, 16(%esp)
	movq %mm1, 0(%esp)
	movq %mm3, 8(%esp)
	movq (%eax,%edi,2), %mm4
	movq (%eax,%edx), %mm2
	movq (%eax,%edx,4), %mm3
	movq %mm2, %mm1
	pfadd %mm4, %mm2
	pfsubr %mm4, %mm1
	movq (%eax,%edi), %mm4
	/* simd data load/store barrier */ 
	addl 84(%esp), %eax
	movq %mm1, 24(%esp)
	movq %mm4, %mm1
	pfadd %mm3, %mm4
	pfsubr %mm3, %mm1
	movq %mm4, %mm3
	pfadd %mm2, %mm3
	pswapd %mm1, %mm1
	pfadd %mm5, %mm3
	movq %mm2, %mm5
	pfmul KP222520933KP222520933, %mm5
	movq %mm3, (%ecx)
	movq %mm4, %mm3
	pfmul KP623489801KP623489801, %mm3
	pfsub %mm5, %mm3
	movq %mm2, %mm5
	pfmul KP623489801KP623489801, %mm2
	pfmul KP900968867KP900968867, %mm5
	pfadd %mm0, %mm3
	movq %mm4, %mm0
	pfmul KP900968867KP900968867, %mm4
	pfmul KP222520933KP222520933, %mm0
	pfsub %mm4, %mm2
	movq 24(%esp), %mm4
	pfadd %mm5, %mm0
	movq %mm1, %mm5
	pswapd %mm4, %mm4
	pfadd %mm7, %mm2
	pfmul KP974927912KN974927912, %mm5
	pfsubr %mm6, %mm0
	movq %mm4, %mm6
	movq %mm4, %mm7
	pfmul KP781831482KN781831482, %mm4
	pfmul KP433883739KN433883739, %mm6
	pfmul KP974927912KN974927912, %mm7
	pfadd 0(%esp), %mm4
	pfsub 16(%esp), %mm6
	pfsub 8(%esp), %mm7
	pfadd %mm5, %mm6
	movq %mm1, %mm5
	pfmul KP781831482KN781831482, %mm1
	pfmul KP433883739KN433883739, %mm5
	pfsub %mm1, %mm7
	movq %mm0, %mm1
	pfsub %mm6, %mm0
	pfadd %mm5, %mm4
	movq %mm3, %mm5
	pfadd %mm6, %mm1
	movq %mm2, %mm6
	pfadd %mm7, %mm3
	pfsub %mm7, %mm5
	movq %mm0, (%ecx,%ebx,4)
	pfsub %mm4, %mm6
	pfadd %mm4, %mm2
	movq %mm1, (%ecx,%ebp)
	movq %mm3, (%ecx,%ebx,2)
	movq %mm5, (%ecx,%esi)
	movq %mm6, (%ecx,%ebp,2)
	movq %mm2, (%ecx,%ebx)
	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 "n1k7i_7"
	.align 4
desc:
	.long 7
	.long nam
	.double 30
	.double 18
	.double 0
	.double 0
	.long fftwf_kdft_k7_pgenus
	.long 0
	.long 0
	.long 0
	.long 0

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

