/*
 * 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"



/* cheap-mode: VECTGRADE_FULL succeeded. (158 steps) */
/* Generated by: /homee/stevenj/cvs/fftw3.0.1/genfft-k7/gen_notw -no-randomized-cse -n 10 -name n1k7_10 */

/*
 * 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
KP559016994KP559016994: .float +0.559016994374947424102293417182819058860154590, +0.559016994374947424102293417182819058860154590
KP250000000KP250000000: .float +0.250000000000000000000000000000000000000000000, +0.250000000000000000000000000000000000000000000
KP587785252KP587785252: .float +0.587785252292473129168705954639072768597652438, +0.587785252292473129168705954639072768597652438
KP951056516KP951056516: .float +0.951056516295153572116439333379382143405698634, +0.951056516295153572116439333379382143405698634
chs_lo: .long 0x80000000, 0x00000000
.text
.text
	.balign 64
n1k7_10:
	subl $84, %esp
	femms 
	movl %ebx, 80(%esp)
	movl 104(%esp), %edx
	movl 108(%esp), %ebx
	movl 88(%esp), %eax
	movl %esi, 76(%esp)
	movl 96(%esp), %ecx
	movl %edi, 72(%esp)
	sall $2, 116(%esp)
	movl %ebp, 68(%esp)
	sall $2, 120(%esp)
	leal (,%edx,4), %edx
	leal (,%ebx,4), %ebx
	.p2align 4,,7
.L0:
	/* promise simd cell size = 8 */ 
	leal (%edx,%edx,4), %esi
	movq (%eax), %mm1
	leal (%edx,%edx,2), %ebp
	movq (%eax,%edx,2), %mm7
	movq (%eax,%edx,8), %mm4
	movq (%eax,%esi), %mm0
	leal (%esi,%edx,2), %edi
	leal (%edx,%edx,8), %esi
	movq (%eax,%ebp), %mm3
	movq %mm1, %mm2
	movq (%eax,%edi), %mm6
	leal (%ebx,%ebx,4), %edi
	movq %mm4, %mm5
	pfsub %mm0, %mm2
	pfadd %mm0, %mm1
	movq %mm7, %mm0
	pfadd %mm3, %mm4
	pfadd %mm6, %mm7
	pfsub %mm6, %mm0
	movq %mm2, 8(%esp)
	pfsub %mm3, %mm5
	movq %mm1, 0(%esp)
	movq (%eax,%edx,4), %mm1
	movq (%eax,%esi), %mm3
	leal (%edi,%ebx,2), %esi
	movq %mm7, %mm6
	pfsub %mm4, %mm7
	movq %mm0, %mm2
	pfsub %mm5, %mm0
	pfadd %mm5, %mm2
	movq (%eax,%ebp,2), %mm5
	leal (%ebx,%ebx,8), %ebp
	pfadd %mm4, %mm6
	movq %mm7, 16(%esp)
	movq %mm1, %mm4
	movq (%eax,%edx), %mm7
	pfadd %mm3, %mm1
	/* simd data load/store barrier */ 
	pfsub %mm3, %mm4
	pswapd %mm0, %mm0
	addl 116(%esp), %eax
	movq %mm5, %mm3
	pfsub %mm7, %mm3
	pfadd %mm7, %mm5
	movq %mm4, %mm7
	pfadd %mm3, %mm7
	pfsub %mm3, %mm4
	movq %mm1, %mm3
	pfsub %mm5, %mm1
	pfadd %mm5, %mm3
	movq %mm2, %mm5
	pfadd %mm7, %mm2
	pfsub %mm7, %mm5
	pswapd %mm4, %mm4
	pswapd %mm1, %mm1
	movq %mm2, %mm7
	pfmul KP559016994KP559016994, %mm5
	pfmul KP250000000KP250000000, %mm7
	movq %mm5, 24(%esp)
	movq %mm6, %mm5
	pfadd %mm3, %mm6
	movq %mm7, 56(%esp)
	movq 16(%esp), %mm7
	pfsub %mm3, %mm5
	movq %mm6, 48(%esp)
	pfmul KP250000000KP250000000, %mm6
	pswapd %mm7, %mm7
	pfmul KP559016994KP559016994, %mm5
	movq %mm7, %mm3
	pfmul KP587785252KP587785252, %mm7
	pfmul KP951056516KP951056516, %mm3
	movq %mm6, 40(%esp)
	movq %mm1, %mm6
	pfmul KP951056516KP951056516, %mm1
	pfmul KP587785252KP587785252, %mm6
	movq %mm5, 32(%esp)
	movq %mm0, %mm5
	pfmul KP951056516KP951056516, %mm0
	pfmul KP587785252KP587785252, %mm5
	pfsub %mm7, %mm1
	movq %mm4, %mm7
	pfmul KP587785252KP587785252, %mm4
	pfmul KP951056516KP951056516, %mm7
	pfadd %mm3, %mm6
	movq 8(%esp), %mm3
	pxor chs_lo, %mm1
	pfadd %mm4, %mm0
	movq %mm3, %mm4
	pxor chs_lo, %mm6
	pfsub 56(%esp), %mm3
	pfsub %mm5, %mm7
	movq 24(%esp), %mm5
	pfadd %mm2, %mm4
	pxor chs_lo, %mm0
	movq %mm5, %mm2
	pxor chs_lo, %mm7
	movq %mm4, (%ecx,%edi)
	pfsubr %mm3, %mm5
	leal (%ebx,%ebx,2), %edi
	pfadd %mm3, %mm2
	movq %mm5, %mm3
	pfsub %mm7, %mm5
	movq %mm2, %mm4
	pfsub %mm0, %mm2
	pfadd %mm7, %mm3
	pfadd %mm0, %mm4
	movq 0(%esp), %mm0
	movq %mm5, (%ecx,%edi)
	movq %mm2, (%ecx,%ebx)
	movq 32(%esp), %mm2
	movq %mm3, (%ecx,%esi)
	movq %mm0, %mm7
	pfsub 40(%esp), %mm0
	pfadd 48(%esp), %mm7
	movq %mm4, (%ecx,%ebp)
	movq %mm0, %mm5
	pfadd %mm2, %mm0
	pfsub %mm2, %mm5
	movq %mm7, (%ecx)
	movq %mm0, %mm4
	pfsub %mm6, %mm0
	movq %mm5, %mm3
	pfadd %mm6, %mm4
	pfsub %mm1, %mm5
	pfadd %mm1, %mm3
	movq %mm0, (%ecx,%edi,2)
	movq %mm4, (%ecx,%ebx,4)
	movq %mm5, (%ecx,%ebx,8)
	movq %mm3, (%ecx,%ebx,2)
	addl 120(%esp), %ecx
	decl 112(%esp)
	jnz .L0
	femms 
	movl 80(%esp), %ebx
	movl 76(%esp), %esi
	movl 72(%esp), %edi
	movl 68(%esp), %ebp
	addl $84, %esp
	ret 

.section .rodata
nam:
	.string "n1k7_10"
	.align 4
desc:
	.long 10
	.long nam
	.double 42
	.double 12
	.double 0
	.double 0
	.long fftwf_kdft_k7_mgenus
	.long 0
	.long 0
	.long 0
	.long 0

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

