/*
 * 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:51:49 EDT 2003 */

#include "config.h"



/* cheap-mode: VECTGRADE_FULL succeeded. (80 steps) */
/* Generated by: /homee/stevenj/cvs/fftw3.0.1/genfft-k7/gen_twiddle -no-randomized-cse -n 8 -name t1k7_8 */

/*
 * 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_twiddle.ml,v 1.13 2003/04/18 01:21:45 athena Exp $
 */

/* The following asm code is Copyright (c) 2000-2001 Stefan Kral */
.section .rodata
	.balign 64
KP707106781KP707106781: .float +0.707106781186547524400844362104849039284835938, +0.707106781186547524400844362104849039284835938
.text
.text
	.balign 64
t1k7_8:
	subl $36, %esp
	femms 
	movl %ebx, 32(%esp)
	movl 52(%esp), %edx
	movl 60(%esp), %ebx
	movl %esi, 28(%esp)
	movl %edi, 24(%esp)
	movl 40(%esp), %ecx
	movl %ebp, 20(%esp)
	movl 48(%esp), %eax
	movl 56(%esp), %esi
	leal (,%edx,4), %edx
	leal (,%ebx,4), %ebx
	.p2align 4,,7
.L0:
	/* promise simd cell size = 8 */ 
	leal (%edx,%edx,2), %edi
	movq 16(%eax), %mm0
	movq 48(%eax), %mm3
	movq (%ecx,%edx), %mm7
	leal (%edx,%edi,2), %ebp
	movq (%ecx,%edi), %mm1
	movq (%eax), %mm6
	leal (%edx,%edx,4), %edi
	movq (%ecx,%ebp), %mm4
	leal (%edx,%edx,2), %ebp
	pswapd %mm1, %mm2
	pfmul %mm0, %mm1
	pswapd %mm4, %mm5
	pfmul %mm3, %mm4
	pfmul %mm0, %mm2
	pswapd %mm7, %mm0
	pfmul %mm3, %mm5
	movq 32(%eax), %mm3
	pfmul %mm6, %mm7
	pfacc %mm1, %mm4
	pfmul %mm6, %mm0
	movq (%ecx,%edi), %mm6
	leal (%edx,%edx,2), %edi
	pfnacc %mm2, %mm5
	movq %mm4, %mm2
	pswapd %mm6, %mm1
	pfmul %mm3, %mm6
	pfnacc %mm5, %mm2
	pfmul %mm3, %mm1
	pfacc %mm6, %mm7
	movq %mm2, 0(%esp)
	movq 24(%eax), %mm6
	movq (%ecx,%edx,4), %mm2
	pfnacc %mm1, %mm0
	movq %mm7, %mm3
	pswapd %mm2, %mm1
	pfnacc %mm0, %mm7
	pfmul %mm6, %mm2
	pfacc %mm5, %mm0
	movq (%ecx,%edx,2), %mm5
	pfmul %mm6, %mm1
	pfacc %mm4, %mm3
	movq %mm7, 8(%esp)
	movq 8(%eax), %mm4
	movq 40(%eax), %mm7
	addl $56, %eax
	pswapd %mm5, %mm6
	pfpnacc %mm2, %mm1
	movq (%ecx,%ebp,2), %mm2
	pfmul %mm4, %mm5
	pfmul %mm4, %mm6
	leal (%edx,%edx,4), %ebp
	pswapd %mm2, %mm4
	pfmul %mm7, %mm2
	pswapd %mm1, %mm1
	pfmul %mm7, %mm4
	movq (%ecx), %mm7
	/* simd data load/store barrier */ 
	pfacc %mm2, %mm5
	pfnacc %mm4, %mm6
	movq %mm7, %mm2
	movq %mm3, %mm4
	pfadd %mm1, %mm7
	pfsub %mm1, %mm2
	movq %mm5, %mm1
	pswapd %mm4, %mm4
	pfacc %mm0, %mm3
	pfacc %mm6, %mm1
	pswapd %mm6, %mm6
	pfnacc %mm4, %mm0
	movq %mm7, %mm4
	pfnacc %mm5, %mm6
	pfadd %mm1, %mm4
	pfsub %mm1, %mm7
	movq %mm4, %mm5
	pfadd %mm3, %mm4
	movq %mm7, %mm1
	pfadd %mm0, %mm7
	pfsub %mm3, %mm5
	movq %mm2, %mm3
	pfsub %mm0, %mm1
	movq 8(%esp), %mm0
	pfadd %mm6, %mm2
	movq %mm4, (%ecx)
	pfsub %mm6, %mm3
	movq %mm7, (%ecx,%edx,2)
	movq %mm5, (%ecx,%edx,4)
	movq 0(%esp), %mm5
	pswapd %mm0, %mm6
	movq %mm1, (%ecx,%edi,2)
	leal (%ebp,%edx,2), %edi
	movq %mm2, %mm4
	movq %mm3, %mm1
	pfpnacc %mm5, %mm6
	pfpnacc %mm0, %mm5
	movq %mm6, %mm7
	pfnacc %mm5, %mm6
	pfacc %mm7, %mm5
	pfmul KP707106781KP707106781, %mm6
	pfmul KP707106781KP707106781, %mm5
	pfsub %mm6, %mm4
	pfsub %mm5, %mm1
	pfadd %mm6, %mm2
	pfadd %mm5, %mm3
	movq %mm4, (%ecx,%edi)
	movq %mm1, (%ecx,%ebp)
	leal (%edx,%edx,2), %ebp
	movq %mm3, (%ecx,%edx)
	movq %mm2, (%ecx,%ebp)
	addl %ebx, %ecx
	decl %esi
	jnz .L0
	femms 
	movl 32(%esp), %ebx
	movl 28(%esp), %esi
	movl 24(%esp), %edi
	movl 20(%esp), %ebp
	addl $36, %esp
	ret 

.section .rodata
nam:
	.string "t1k7_8"
	.align 4
twinstr:
	.byte 4
	.byte 0
	.value 8
	.byte 3
	.byte 1
	.value 0
	.align 4
desc:
	.long 8
	.long nam
	.long twinstr
	.zero 4
	.double 33
	.double 16
	.double 0
	.double 0
	.long fftwf_kdft_ct_k7_mgenus
	.long 0
	.long 0
	.long 0

.text
	.align 4
.globl fftwf_codelet_t1k7_8
fftwf_codelet_t1k7_8:
	subl $12,%esp
	movl 16(%esp),%eax
	addl $-4,%esp
	pushl $desc
	pushl $t1k7_8
	pushl %eax
	call fftwf_kdft_dit_register
	addl $16,%esp
	addl $12,%esp
	ret

