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

#include "config.h"



/* cheap-mode: VECTGRADE_FULL succeeded. (192 steps) */
/* Generated by: ../../../genfft-k7/gen_twiddle -no-randomized-cse -n 16 -sign 1 -name t1k7i_16 */

/*
 * 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_twiddle.ml,v 1.14 2005-12-24 21:08:49 athena Exp $
 */

/* The following asm code is Copyright (c) 2000-2001 Stefan Kral */
.section .rodata
	.balign 64
KP707106781KP707106781: .float +0.707106781186547524400844362104849039284835938, +0.707106781186547524400844362104849039284835938
KP382683432KP923879532: .float +0.382683432365089771728459984030398866761344562, +0.923879532511286756128183189396788286822416626
KP923879532KP382683432: .float +0.923879532511286756128183189396788286822416626, +0.382683432365089771728459984030398866761344562
.text
.text
	.balign 64
t1k7i_16:
	subl $148, %esp
	femms 
	movl %ebx, 144(%esp)
	movl 164(%esp), %edx
	movl 172(%esp), %ebx
	movl %esi, 140(%esp)
	movl %edi, 136(%esp)
	movl 156(%esp), %ecx
	movl %ebp, 132(%esp)
	movl 160(%esp), %eax
	movl 168(%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 (%ecx,%edx,8), %mm1
	movq 56(%eax), %mm0
	movq 88(%eax), %mm3
	movq (%ecx,%edi,4), %mm4
	movq (%ecx), %mm6
	leal (%edi,%edx,4), %ebp
	pswapd %mm1, %mm2
	pfmul %mm0, %mm1
	pswapd %mm4, %mm5
	pfmul %mm0, %mm2
	movq 24(%eax), %mm0
	pfmul %mm3, %mm4
	movq %mm6, %mm7
	pfmul %mm3, %mm5
	movq (%ecx,%edx,4), %mm3
	pfpnacc %mm2, %mm1
	pswapd %mm3, %mm2
	pfmul %mm0, %mm3
	pfmul %mm0, %mm2
	pfsub %mm1, %mm7
	movq (%ecx,%edi,2), %mm0
	pfadd %mm1, %mm6
	movq 40(%eax), %mm1
	leal (%edx,%edx,4), %edi
	pfnacc %mm4, %mm3
	movq 104(%eax), %mm4
	pfacc %mm5, %mm2
	movq %mm7, 8(%esp)
	movq %mm6, 40(%esp)
	movq (%ecx,%ebp,2), %mm5
	pswapd %mm0, %mm6
	pfmul %mm1, %mm0
	movq %mm3, %mm7
	leal (%edi,%edx,8), %ebp
	pfmul %mm1, %mm6
	pfacc %mm2, %mm7
	pswapd %mm2, %mm2
	pswapd %mm5, %mm1
	pfmul %mm4, %mm5
	pfnacc %mm3, %mm2
	movq 72(%eax), %mm3
	pfmul %mm4, %mm1
	movq %mm7, 16(%esp)
	movq (%ecx,%edi,2), %mm7
	pfnacc %mm0, %mm5
	movq %mm2, 0(%esp)
	movq (%ecx,%edx,2), %mm0
	movq 8(%eax), %mm2
	pfacc %mm6, %mm1
	pswapd %mm7, %mm4
	pfmul %mm3, %mm7
	pswapd %mm0, %mm6
	pfmul %mm2, %mm0
	pfmul %mm3, %mm4
	pfmul %mm2, %mm6
	movq 96(%eax), %mm2
	pfnacc %mm7, %mm0
	movq (%ecx,%ebp), %mm7
	pfacc %mm4, %mm6
	movq %mm0, %mm3
	pswapd %mm7, %mm4
	pfmul %mm2, %mm7
	pfacc %mm5, %mm3
	pfmul %mm2, %mm4
	movq (%ecx,%edi), %mm2
	pfnacc %mm6, %mm0
	leal (%edx,%edx,8), %edi
	pfnacc %mm1, %mm5
	pfacc %mm6, %mm1
	leal (%edi,%edx,2), %ebp
	movq %mm3, 80(%esp)
	movq 32(%eax), %mm3
	movq %mm0, %mm6
	movq %mm1, 48(%esp)
	pfpnacc %mm5, %mm6
	pswapd %mm2, %mm1
	pswapd %mm5, %mm5
	pfmul %mm3, %mm2
	pfmul %mm3, %mm1
	pfpnacc %mm0, %mm5
	movq %mm6, 24(%esp)
	movq 64(%eax), %mm0
	movq (%ecx,%edi), %mm6
	leal (%edx,%edx,2), %edi
	pfnacc %mm7, %mm2
	movq (%ecx,%edx), %mm7
	pfacc %mm4, %mm1
	movq %mm5, 32(%esp)
	movq (%eax), %mm5
	pswapd %mm6, %mm3
	pfmul %mm0, %mm6
	pswapd %mm7, %mm4
	pfmul %mm0, %mm3
	pfmul %mm5, %mm7
	pfmul %mm5, %mm4
	pfnacc %mm6, %mm7
	pfacc %mm3, %mm4
	movq %mm7, %mm0
	pfnacc %mm1, %mm7
	movq %mm4, %mm5
	pfnacc %mm2, %mm4
	pfacc %mm2, %mm0
	movq (%ecx,%ebp), %mm2
	leal (%edi,%edx,4), %ebp
	pfacc %mm1, %mm5
	movq 80(%eax), %mm1
	movq %mm7, %mm6
	pfpnacc %mm4, %mm7
	movq %mm0, %mm3
	pfpnacc %mm6, %mm4
	movq %mm5, 88(%esp)
	movq 16(%eax), %mm6
	pfnacc %mm5, %mm0
	pswapd %mm2, %mm5
	pfmul %mm1, %mm2
	pfmul %mm1, %mm5
	movq %mm7, 56(%esp)
	movq (%ecx,%edi), %mm1
	leal (%ebp,%edx,8), %edi
	movq %mm4, 64(%esp)
	movq %mm0, 72(%esp)
	movq (%ecx,%ebp), %mm0
	leal (%edx,%edx,2), %ebp
	pswapd %mm1, %mm7
	pfmul %mm6, %mm1
	pfmul %mm6, %mm7
	movq 48(%eax), %mm6
	pswapd %mm0, %mm4
	pfnacc %mm2, %mm1
	movq 112(%eax), %mm2
	addl $120, %eax
	pfacc %mm5, %mm7
	movq (%ecx,%edi), %mm5
	pfmul %mm6, %mm0
	pfmul %mm6, %mm4
	/* simd data load/store barrier */ 
	leal (%ebp,%edx,4), %edi
	pswapd %mm5, %mm6
	pfmul %mm2, %mm5
	pfmul %mm2, %mm6
	pfnacc %mm0, %mm5
	pfacc %mm4, %mm6
	movq %mm5, %mm2
	pfnacc %mm7, %mm5
	movq %mm6, %mm0
	pfnacc %mm1, %mm6
	pfacc %mm1, %mm2
	movq 80(%esp), %mm1
	pfacc %mm7, %mm0
	movq %mm5, %mm4
	movq 48(%esp), %mm7
	pfpnacc %mm6, %mm5
	pfpnacc %mm4, %mm6
	movq %mm1, %mm4
	pfacc %mm2, %mm3
	pfnacc %mm0, %mm2
	pfacc 88(%esp), %mm0
	movq %mm5, 96(%esp)
	pfacc %mm7, %mm1
	movq %mm6, 104(%esp)
	movq 16(%esp), %mm6
	pfnacc %mm4, %mm7
	movq 40(%esp), %mm4
	movq %mm3, %mm5
	pfacc %mm0, %mm3
	pfnacc %mm5, %mm0
	movq %mm4, %mm5
	pfadd %mm6, %mm4
	pfsub %mm6, %mm5
	movq %mm4, %mm6
	pfsub %mm1, %mm4
	pfadd %mm1, %mm6
	movq %mm4, %mm1
	pfsub %mm0, %mm4
	pfadd %mm0, %mm1
	movq %mm6, %mm0
	pfsub %mm3, %mm6
	pfadd %mm3, %mm0
	movq 72(%esp), %mm3
	movq %mm4, (%ecx,%ebp,4)
	movq %mm5, %mm4
	pfsub %mm7, %mm5
	movq %mm1, (%ecx,%edx,4)
	movq %mm6, (%ecx,%edx,8)
	pfadd %mm7, %mm4
	movq %mm3, %mm1
	movq %mm0, (%ecx)
	movq %mm5, %mm7
	pfpnacc %mm2, %mm1
	pswapd %mm2, %mm2
	movq %mm4, %mm0
	pfpnacc %mm3, %mm2
	movq 32(%esp), %mm3
	movq %mm1, %mm6
	pfacc %mm2, %mm1
	pfnacc %mm6, %mm2
	movq 24(%esp), %mm6
	pfmul KP707106781KP707106781, %mm1
	pfmul KP707106781KP707106781, %mm2
	pfadd %mm1, %mm0
	pfsub %mm2, %mm7
	pfsub %mm1, %mm4
	movq %mm3, %mm1
	pfadd %mm2, %mm5
	movq 8(%esp), %mm2
	pfnacc %mm6, %mm3
	movq %mm0, (%ecx,%edx,2)
	movq 0(%esp), %mm0
	pfacc %mm1, %mm6
	movq 104(%esp), %mm1
	movq %mm7, (%ecx,%edi,2)
	movq 64(%esp), %mm7
	leal (%edx,%edx,2), %edi
	movq %mm5, (%ecx,%ebp,2)
	leal (%edx,%edx,4), %ebp
	movq %mm2, %mm5
	pfsub %mm0, %mm2
	pfmul KP707106781KP707106781, %mm3
	movq %mm4, (%ecx,%ebp,2)
	pfadd %mm0, %mm5
	movq %mm1, %mm4
	pfmul KP382683432KP923879532, %mm1
	pswapd %mm7, %mm0
	leal (%edi,%edx,8), %ebp
	pfmul KP382683432KP923879532, %mm7
	pfmul KP923879532KP382683432, %mm4
	pfmul KP382683432KP923879532, %mm0
	movq %mm5, 120(%esp)
	pfmul KP707106781KP707106781, %mm6
	movq 96(%esp), %mm5
	pfpnacc %mm7, %mm1
	movq 56(%esp), %mm7
	pswapd %mm5, %mm5
	pfpnacc %mm4, %mm0
	movq %mm6, 112(%esp)
	movq %mm5, %mm6
	pfmul KP923879532KP382683432, %mm5
	movq %mm7, %mm4
	pswapd %mm7, %mm7
	pfmul KP382683432KP923879532, %mm6
	pfmul KP923879532KP382683432, %mm7
	pfmul KP923879532KP382683432, %mm4
	pfpnacc %mm7, %mm5
	movq %mm2, %mm7
	pfadd %mm3, %mm2
	pfpnacc %mm6, %mm4
	movq %mm0, %mm6
	pfsub %mm3, %mm7
	pfacc %mm1, %mm0
	pfnacc %mm6, %mm1
	movq %mm2, %mm6
	movq %mm7, %mm3
	pfadd %mm0, %mm6
	pfsub %mm1, %mm7
	pfadd %mm1, %mm3
	movq 120(%esp), %mm1
	pfsub %mm0, %mm2
	movq %mm5, %mm0
	movq %mm6, (%ecx,%edi)
	movq 112(%esp), %mm6
	pfnacc %mm4, %mm5
	pfacc %mm0, %mm4
	movq %mm1, %mm0
	movq %mm2, (%ecx,%ebp)
	leal (%edi,%edx,4), %ebp
	pfadd %mm6, %mm0
	pfsub %mm6, %mm1
	movq %mm3, (%ecx,%ebp)
	leal (%ebp,%edx,8), %edi
	leal (%edx,%edx,8), %ebp
	movq %mm7, (%ecx,%edi)
	leal (%edx,%edx,4), %edi
	movq %mm0, %mm3
	pfadd %mm4, %mm0
	movq %mm1, %mm2
	pfsub %mm5, %mm1
	pfsub %mm4, %mm3
	pfadd %mm5, %mm2
	movq %mm0, (%ecx,%edx)
	movq %mm3, (%ecx,%ebp)
	leal (%edi,%edx,8), %ebp
	movq %mm2, (%ecx,%edi)
	movq %mm1, (%ecx,%ebp)
	addl %ebx, %ecx
	decl %esi
	jnz .L0
	femms 
	movl 144(%esp), %ebx
	movl 140(%esp), %esi
	movl 136(%esp), %edi
	movl 132(%esp), %ebp
	addl $148, %esp
	ret 

.section .rodata
nam:
	.string "t1k7i_16"
	.align 4
twinstr:
	.byte 4
	.byte 0
	.value 16
	.byte 3
	.byte 1
	.value 0
	.align 4
desc:
	.long 16
	.long nam
	.long twinstr
	.long fftwf_kdft_ct_k7_pgenus
	.double 87
	.double 42
	.double 0
	.double 0
	.long 0
	.long 0
	.long 0

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

