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

#include "config.h"



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

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

