/*
 * 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:40:57 EDT 2006 */

#include "config.h"



/* $$$-mode: VECTGRADE_FULL succeeded (590 steps) */
/* Generated by: ../../../genfft-k7/gen_notw -no-randomized-cse -n 14 -name n1k7_14 */

/*
 * 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
KP623489801KP623489801: .float +0.623489801858733530525004884004239810632274731, +0.623489801858733530525004884004239810632274731
KP222520933KP222520933: .float +0.222520933956314404288902564496794759466355569, +0.222520933956314404288902564496794759466355569
KP900968867KP900968867: .float +0.900968867902419126236102319507445051165919162, +0.900968867902419126236102319507445051165919162
KP781831482KN781831482: .float +0.781831482468029808708444526674057750232334519, -0.781831482468029808708444526674057750232334519
KP433883739KN433883739: .float +0.433883739117558120475768332848358754609990728, -0.433883739117558120475768332848358754609990728
KP974927912KN974927912: .float +0.974927912181823607018131682993931217232785801, -0.974927912181823607018131682993931217232785801
.text
.text
	.balign 64
n1k7_14:
	subl $276, %esp
	femms 
	movl %ebx, 272(%esp)
	movl 296(%esp), %edx
	movl 300(%esp), %ebx
	movl 280(%esp), %eax
	movl %esi, 268(%esp)
	movl 288(%esp), %ecx
	movl %edi, 264(%esp)
	sall $2, 308(%esp)
	movl %ebp, 260(%esp)
	sall $2, 312(%esp)
	leal (,%edx,4), %edx
	leal (,%ebx,4), %ebx
	.p2align 4,,7
.L0:
	/* promise simd cell size = 8 */ 
	movq (%eax,%edx,8), %mm1
	leal (%edx,%edx,2), %esi
	movq (%eax,%edx), %mm0
	movq (%eax), %mm4
	leal (%edx,%esi,4), %ebp
	movq (%eax,%esi,2), %mm7
	leal (%edx,%esi,2), %edi
	leal (%edx,%edx,4), %esi
	movq %mm1, %mm2
	movq (%eax,%ebp), %mm6
	movq (%eax,%edi), %mm3
	pfsub %mm0, %mm1
	movq %mm4, %mm5
	leal (%edx,%edx,2), %edi
	pfadd %mm0, %mm2
	movq %mm7, %mm0
	leal (%edi,%edx,8), %ebp
	pfadd %mm6, %mm7
	pfsub %mm6, %mm0
	pfadd %mm3, %mm5
	pfsub %mm3, %mm4
	movq %mm7, %mm3
	pfadd %mm2, %mm7
	movq %mm0, %mm6
	pfadd %mm1, %mm0
	pfsubr %mm2, %mm3
	movq %mm5, 24(%esp)
	movq %mm4, 8(%esp)
	pfsub %mm1, %mm6
	movq %mm7, %mm2
	movq %mm7, 64(%esp)
	movq %mm7, %mm1
	movq %mm0, %mm4
	movq %mm0, %mm5
	movq %mm0, 32(%esp)
	pfmul KP623489801KP623489801, %mm2
	movq %mm3, 16(%esp)
	pfmul KP623489801KP623489801, %mm4
	pfmul KP222520933KP222520933, %mm0
	movq %mm6, 0(%esp)
	pfmul KP900968867KP900968867, %mm5
	pfmul KP900968867KP900968867, %mm7
	pfmul KP222520933KP222520933, %mm1
	movq %mm2, 88(%esp)
	movq %mm4, 48(%esp)
	movq (%eax,%edi), %mm3
	movq (%eax,%esi,2), %mm6
	movq (%eax,%edx,4), %mm2
	movq (%eax,%ebp), %mm4
	leal (%ebx,%ebx,2), %ebp
	movq %mm0, 56(%esp)
	movq %mm6, %mm0
	pfadd %mm3, %mm6
	movq %mm5, 40(%esp)
	movq %mm2, %mm5
	movq %mm7, 80(%esp)
	pfsub %mm3, %mm0
	pfadd %mm4, %mm2
	movq %mm1, 72(%esp)
	pfsub %mm4, %mm5
	movq %mm2, %mm7
	pfsubr %mm6, %mm2
	movq %mm5, %mm3
	pfadd %mm0, %mm5
	pfadd %mm6, %mm7
	pfsub %mm0, %mm3
	pswapd %mm2, %mm2
	movq %mm5, 152(%esp)
	movq %mm2, %mm1
	movq %mm2, %mm4
	pfmul KP781831482KN781831482, %mm2
	movq %mm7, 160(%esp)
	pswapd %mm3, %mm3
	pfmul KP433883739KN433883739, %mm4
	pfmul KP974927912KN974927912, %mm1
	movq %mm3, %mm6
	movq %mm3, %mm0
	pfmul KP781831482KN781831482, %mm3
	pfmul KP433883739KN433883739, %mm6
	movq %mm2, 96(%esp)
	movq %mm7, %mm2
	pfmul KP974927912KN974927912, %mm0
	pfmul KP900968867KP900968867, %mm2
	movq %mm4, 168(%esp)
	movq %mm7, %mm4
	pfmul KP623489801KP623489801, %mm7
	movq %mm1, 176(%esp)
	movq %mm5, %mm1
	pfmul KP222520933KP222520933, %mm4
	pfmul KP623489801KP623489801, %mm1
	movq %mm2, 104(%esp)
	movq %mm5, %mm2
	pfmul KP222520933KP222520933, %mm5
	movq %mm7, 120(%esp)
	movq (%eax,%esi), %mm7
	leal (%edx,%edx,8), %esi
	pfmul KP900968867KP900968867, %mm2
	movq %mm4, 112(%esp)
	movq %mm1, 128(%esp)
	movq (%eax,%edi,4), %mm4
	leal (%ebx,%ebx,4), %edi
	movq %mm5, 144(%esp)
	movq (%eax,%esi), %mm5
	leal (%edi,%ebx,2), %esi
	movq %mm4, %mm1
	pfsub %mm7, %mm4
	movq %mm2, 136(%esp)
	movq (%eax,%edx,2), %mm2
	/* simd data load/store barrier */ 
	pfadd %mm7, %mm1
	addl 308(%esp), %eax
	movq %mm2, %mm7
	pfsub %mm5, %mm2
	pfadd %mm5, %mm7
	movq %mm2, %mm5
	pfsub %mm4, %mm2
	pfadd %mm4, %mm5
	movq %mm7, %mm4
	pfadd %mm1, %mm7
	pswapd %mm2, %mm2
	pfsub %mm1, %mm4
	movq %mm2, %mm1
	pfmul KP974927912KN974927912, %mm1
	pswapd %mm4, %mm4
	pfsub %mm6, %mm1
	movq %mm2, %mm6
	pfmul KP781831482KN781831482, %mm2
	pfmul KP433883739KN433883739, %mm6
	movq %mm1, 200(%esp)
	movq %mm4, %mm1
	pfadd %mm2, %mm0
	movq %mm4, %mm2
	pfmul KP433883739KN433883739, %mm4
	pfmul KP781831482KN781831482, %mm1
	pfsub %mm3, %mm6
	movq %mm7, %mm3
	pfmul KP974927912KN974927912, %mm2
	pfmul KP222520933KP222520933, %mm3
	movq %mm0, 184(%esp)
	movq %mm7, %mm0
	pfmul KP623489801KP623489801, %mm0
	movq %mm6, 192(%esp)
	movq %mm7, %mm6
	pfadd 64(%esp), %mm7
	pfmul KP900968867KP900968867, %mm6
	pfadd 96(%esp), %mm4
	pfsub 176(%esp), %mm1
	pfsubr 88(%esp), %mm3
	pfadd 168(%esp), %mm2
	pfsub 80(%esp), %mm0
	pfadd 72(%esp), %mm6
	movq %mm3, 208(%esp)
	movq %mm5, %mm3
	pfmul KP900968867KP900968867, %mm3
	movq %mm0, 216(%esp)
	movq %mm5, %mm0
	pfmul KP222520933KP222520933, %mm0
	pfadd 56(%esp), %mm3
	pfsubr 48(%esp), %mm0
	movq %mm3, 224(%esp)
	movq %mm5, %mm3
	pfadd 32(%esp), %mm5
	pfmul KP623489801KP623489801, %mm3
	movq %mm0, 232(%esp)
	movq %mm5, 248(%esp)
	movq 160(%esp), %mm0
	movq 24(%esp), %mm5
	pfsub 40(%esp), %mm3
	pfadd %mm5, %mm0
	movq %mm3, 240(%esp)
	pfadd %mm0, %mm7
	movq 16(%esp), %mm3
	pswapd %mm3, %mm3
	movq %mm7, (%ecx)
	movq %mm5, %mm7
	movq %mm3, %mm0
	pfadd 120(%esp), %mm7
	pfmul KP974927912KN974927912, %mm0
	pfsubr %mm7, %mm6
	pfsub %mm0, %mm4
	movq %mm3, %mm0
	pfmul KP781831482KN781831482, %mm3
	movq %mm6, %mm7
	pfmul KP433883739KN433883739, %mm0
	pfsub %mm4, %mm6
	pfadd %mm4, %mm7
	movq %mm5, %mm4
	pfsub 104(%esp), %mm5
	pfsub 112(%esp), %mm4
	pfsub %mm0, %mm1
	movq %mm6, (%ecx,%ebx,4)
	pfadd %mm3, %mm2
	movq 8(%esp), %mm3
	movq %mm7, (%ecx,%edi,2)
	movq 152(%esp), %mm7
	leal (%ebx,%ebx,8), %edi
	pfadd 208(%esp), %mm5
	pfadd 216(%esp), %mm4
	pfadd %mm3, %mm7
	movq %mm5, %mm0
	pfsub %mm2, %mm5
	movq %mm4, %mm6
	pfadd %mm1, %mm4
	pfadd %mm2, %mm0
	movq %mm3, %mm2
	pfsub %mm1, %mm6
	movq 0(%esp), %mm1
	pfsub 136(%esp), %mm2
	movq %mm5, (%ecx,%ebp,4)
	movq %mm3, %mm5
	pfsub 144(%esp), %mm3
	pfadd 128(%esp), %mm5
	movq %mm4, (%ecx,%ebx,8)
	movq %mm0, (%ecx,%ebx,2)
	pswapd %mm1, %mm1
	pfadd 248(%esp), %mm7
	movq %mm6, (%ecx,%ebp,2)
	leal (%ebx,%ebx,4), %ebp
	movq %mm1, %mm6
	movq %mm1, %mm0
	pfmul KP974927912KN974927912, %mm1
	pfadd 232(%esp), %mm2
	pfmul KP781831482KN781831482, %mm6
	pfadd 240(%esp), %mm3
	pfmul KP433883739KN433883739, %mm0
	pfsub 224(%esp), %mm5
	movq %mm7, (%ecx,%esi)
	leal (%ebx,%ebx,2), %esi
	pfadd 192(%esp), %mm1
	movq %mm2, %mm4
	pfsubr 200(%esp), %mm6
	pfadd 184(%esp), %mm0
	movq %mm5, %mm7
	pfsub %mm1, %mm5
	pfadd %mm1, %mm7
	pfadd %mm6, %mm2
	pfsub %mm6, %mm4
	movq %mm3, %mm6
	pfsub %mm0, %mm3
	pfadd %mm0, %mm6
	movq %mm7, (%ecx,%esi)
	movq %mm2, (%ecx,%edi)
	leal (%esi,%ebx,8), %edi
	movq %mm4, (%ecx,%ebp)
	leal (%edi,%ebx,2), %ebp
	movq %mm5, (%ecx,%edi)
	movq %mm6, (%ecx,%ebx)
	movq %mm3, (%ecx,%ebp)
	addl 312(%esp), %ecx
	decl 304(%esp)
	jnz .L0
	femms 
	movl 272(%esp), %ebx
	movl 268(%esp), %esi
	movl 264(%esp), %edi
	movl 260(%esp), %ebp
	addl $276, %esp
	ret 

.section .rodata
nam:
	.string "n1k7_14"
	.align 4
desc:
	.long 14
	.long nam
	.double 74
	.double 36
	.double 0
	.double 0
	.long fftwf_kdft_k7_mgenus
	.long 0
	.long 0
	.long 0
	.long 0

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

