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

#include "config.h"



/* cheap-mode: VECTGRADE_FULL succeeded. (97 steps) */
/* Generated by: ../../../genfft-k7/gen_notw -no-randomized-cse -n 9 -name n1k7_9 */

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

/* CHImovopt_applicable: new! */
/* CHImovopt_applicable: new! */
/* The following asm code is Copyright (c) 2000-2001 Stefan Kral */
.section .rodata
	.balign 64
KP866025403KN866025403: .float +0.866025403784438646763723170752936183471402627, -0.866025403784438646763723170752936183471402627
KP500000000KP500000000: .float +0.500000000000000000000000000000000000000000000, +0.500000000000000000000000000000000000000000000
KP173648177KP984807753: .float +0.173648177666930348851716626769314796000375677, +0.984807753012208059366743024589523013670643252
KP766044443KP642787609: .float +0.766044443118978035202392650555416673935832457, +0.642787609686539326322643409907263432907559884
KP939692620KP342020143: .float +0.939692620785908384054109277324731469936208134, +0.342020143325668733044099614682259580763083368
KP342020143KP939692620: .float +0.342020143325668733044099614682259580763083368, +0.939692620785908384054109277324731469936208134
KP866025403KP866025403: .float +0.866025403784438646763723170752936183471402627, +0.866025403784438646763723170752936183471402627
.text
.text
	.balign 64
n1k7_9:
	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,2), %esi
	leal (%edx,%edx,4), %edi
	movq (%eax,%edx,8), %mm3
	movq (%eax), %mm6
	movq (%eax,%esi,2), %mm0
	movq (%eax,%esi), %mm1
	leal (%edi,%edx,2), %ebp
	movq (%eax,%edi), %mm4
	leal (%ebx,%ebx,2), %esi
	movq %mm6, %mm7
	leal (%esi,%ebx,4), %edi
	movq %mm1, %mm2
	pfsub %mm0, %mm1
	movq %mm4, %mm5
	pfadd %mm3, %mm4
	pfadd %mm0, %mm2
	pfsub %mm3, %mm5
	movq (%eax,%edx,2), %mm3
	pswapd %mm1, %mm1
	movq %mm4, %mm0
	pfmul KP866025403KN866025403, %mm1
	pfadd %mm2, %mm6
	pfmul KP500000000KP500000000, %mm2
	pswapd %mm5, %mm5
	pfmul KP500000000KP500000000, %mm0
	pfmul KP866025403KN866025403, %mm5
	movq %mm6, 16(%esp)
	movq %mm3, %mm6
	pfadd %mm4, %mm3
	movq (%eax,%ebp), %mm4
	leal (%ebx,%ebx,4), %ebp
	movq %mm1, 0(%esp)
	movq (%eax,%edx,4), %mm1
	pfsub %mm2, %mm7
	pfsub %mm0, %mm6
	movq %mm3, 24(%esp)
	movq (%eax,%edx), %mm0
	/* simd data load/store barrier */ 
	addl 84(%esp), %eax
	movq %mm1, %mm2
	pfadd %mm4, %mm1
	movq %mm7, 8(%esp)
	pfsub %mm4, %mm2
	movq %mm0, %mm7
	movq %mm6, %mm3
	pfadd %mm5, %mm6
	pfadd %mm1, %mm7
	pfmul KP500000000KP500000000, %mm1
	pfsub %mm5, %mm3
	pswapd %mm2, %mm2
	pswapd %mm6, %mm4
	pfmul KP173648177KP984807753, %mm6
	pfmul KP866025403KN866025403, %mm2
	pfmul KP173648177KP984807753, %mm4
	pswapd %mm3, %mm3
	pfsub %mm1, %mm0
	movq %mm0, %mm5
	pfadd %mm2, %mm0
	pfsub %mm2, %mm5
	pswapd %mm0, %mm1
	pfmul KP766044443KP642787609, %mm0
	pfmul KP766044443KP642787609, %mm1
	pswapd %mm5, %mm2
	pfmul KP173648177KP984807753, %mm5
	pfmul KP173648177KP984807753, %mm2
	pfacc %mm6, %mm0
	movq %mm3, %mm6
	pfmul KP939692620KP342020143, %mm3
	pfmul KP342020143KP939692620, %mm6
	pfnacc %mm4, %mm1
	movq 24(%esp), %mm4
	pfpnacc %mm3, %mm2
	movq %mm7, %mm3
	pfsub %mm4, %mm7
	pfpnacc %mm5, %mm6
	movq 16(%esp), %mm5
	pfadd %mm4, %mm3
	pswapd %mm7, %mm7
	movq %mm5, %mm4
	pfadd %mm3, %mm5
	pfmul KP500000000KP500000000, %mm3
	pfmul KP866025403KN866025403, %mm7
	movq %mm5, (%ecx)
	movq %mm0, %mm5
	pfacc %mm1, %mm0
	pfsub %mm3, %mm4
	pswapd %mm5, %mm5
	pfnacc %mm5, %mm1
	movq %mm0, %mm5
	movq %mm4, %mm3
	pfsub %mm7, %mm4
	pfmul KP500000000KP500000000, %mm5
	pfadd %mm7, %mm3
	movq 8(%esp), %mm7
	pfmul KP866025403KP866025403, %mm1
	movq %mm4, (%ecx,%esi,2)
	movq 0(%esp), %mm4
	movq %mm3, (%ecx,%esi)
	movq %mm7, %mm3
	pfadd %mm4, %mm7
	pfsub %mm4, %mm3
	movq %mm7, %mm4
	pfadd %mm0, %mm7
	movq %mm2, %mm0
	pfpnacc %mm6, %mm2
	pfpnacc %mm0, %mm6
	movq %mm3, %mm0
	pfsub %mm5, %mm4
	movq %mm7, (%ecx,%ebx)
	pswapd %mm2, %mm2
	pswapd %mm6, %mm6
	pfadd %mm2, %mm0
	pfmul KP500000000KP500000000, %mm2
	movq %mm4, %mm5
	pfmul KP866025403KP866025403, %mm6
	pfsub %mm1, %mm4
	pfadd %mm1, %mm5
	movq %mm0, (%ecx,%ebx,2)
	movq %mm4, (%ecx,%edi)
	pfsub %mm2, %mm3
	movq %mm5, (%ecx,%ebx,4)
	movq %mm3, %mm7
	pfadd %mm6, %mm3
	pfsub %mm6, %mm7
	movq %mm3, (%ecx,%ebp)
	movq %mm7, (%ecx,%ebx,8)
	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_9"
	.align 4
desc:
	.long 9
	.long nam
	.double 40
	.double 20
	.double 0
	.double 0
	.long fftwf_kdft_k7_mgenus
	.long 0
	.long 0
	.long 0
	.long 0

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

