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

#include "config.h"



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

/*
 * 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
KP707106781KP707106781: .float +0.707106781186547524400844362104849039284835938, +0.707106781186547524400844362104849039284835938
chs_lo: .long 0x80000000, 0x00000000
KP923879532KP382683432: .float +0.923879532511286756128183189396788286822416626, +0.382683432365089771728459984030398866761344562
KP382683432KP923879532: .float +0.382683432365089771728459984030398866761344562, +0.923879532511286756128183189396788286822416626
chs_hi: .long 0x00000000, 0x80000000
.text
.text
	.balign 64
n1k7_16:
	subl $132, %esp
	femms 
	movl %esi, 124(%esp)
	movl 152(%esp), %ecx
	movl 156(%esp), %esi
	movl %ebx, 128(%esp)
	movl 136(%esp), %eax
	movl 144(%esp), %ebx
	movl %edi, 120(%esp)
	sall $2, 164(%esp)
	leal (,%ecx,4), %ecx
	movl %ebp, 116(%esp)
	sall $2, 168(%esp)
	leal (,%esi,4), %esi
	leal (%eax,%ecx,8), %edx
	leal (%ebx,%esi,8), %edi
	.p2align 4,,7
.L0:
	/* promise simd cell size = 8 */ 
	movq (%eax), %mm1
	movq (%edx), %mm0
	movq (%edx,%ecx,4), %mm3
	movq (%eax,%ecx,4), %mm4
	leal (%ecx,%ecx,2), %ebp
	movq (%eax,%ebp,2), %mm7
	movq %mm1, %mm2
	pfadd %mm0, %mm1
	movq %mm4, %mm5
	pfsub %mm3, %mm4
	pfsub %mm0, %mm2
	movq (%edx,%ebp,2), %mm0
	leal (%ecx,%ecx,2), %ebp
	pfadd %mm3, %mm5
	movq %mm1, %mm6
	leal (%ecx,%ebp,2), %ebp
	movq %mm4, 24(%esp)
	movq %mm2, 0(%esp)
	movq (%eax,%ecx,2), %mm4
	movq (%edx,%ecx,2), %mm2
	movq %mm0, %mm3
	pfsub %mm5, %mm1
	pfadd %mm5, %mm6
	movq %mm4, %mm5
	pfsub %mm7, %mm0
	pfsub %mm2, %mm4
	pfadd %mm7, %mm3
	movq %mm1, 32(%esp)
	pfadd %mm2, %mm5
	movq %mm6, 56(%esp)
	movq (%edx,%ebp), %mm2
	movq (%eax,%ebp), %mm6
	leal (%ecx,%ecx,2), %ebp
	pswapd %mm4, %mm1
	movq %mm5, %mm7
	pfpnacc %mm0, %mm1
	pfsub %mm3, %mm5
	pfpnacc %mm4, %mm0
	movq (%eax,%ebp), %mm4
	pfadd %mm3, %mm7
	movq %mm2, %mm3
	pfsub %mm6, %mm2
	movq %mm5, 40(%esp)
	movq %mm1, %mm5
	pfadd %mm6, %mm3
	pfnacc %mm0, %mm1
	movq (%edx,%ebp), %mm6
	leal (%ecx,%ecx,4), %ebp
	pfacc %mm5, %mm0
	movq %mm7, 48(%esp)
	movq %mm4, %mm7
	pfmul KP707106781KP707106781, %mm1
	movq (%edx,%ecx), %mm5
	pfadd %mm6, %mm4
	pfmul KP707106781KP707106781, %mm0
	pfsub %mm6, %mm7
	movq %mm4, 64(%esp)
	movq (%eax,%ecx), %mm6
	movq %mm6, %mm4
	pfsub %mm5, %mm6
	pswapd %mm7, %mm7
	movq %mm1, 16(%esp)
	movq %mm0, 8(%esp)
	movq (%edx,%ebp), %mm1
	movq (%eax,%ebp), %mm0
	pfadd %mm5, %mm4
	pxor chs_lo, %mm7
	/* simd data load/store barrier */ 
	leal (%esi,%esi,2), %ebp
	pswapd %mm6, %mm6
	addl 164(%esp), %eax
	addl 164(%esp), %edx
	movq %mm0, %mm5
	pfsub %mm1, %mm0
	pfadd %mm1, %mm5
	movq %mm4, %mm1
	pxor chs_lo, %mm0
	pfsub %mm5, %mm1
	pfadd %mm5, %mm4
	movq %mm2, %mm5
	pfsub %mm7, %mm2
	pfadd %mm7, %mm5
	movq %mm6, %mm7
	pfadd %mm0, %mm6
	pfsub %mm0, %mm7
	movq %mm2, 72(%esp)
	movq %mm6, %mm0
	pfmul KP923879532KP382683432, %mm6
	movq %mm7, %mm2
	pfmul KP382683432KP923879532, %mm7
	pfmul KP382683432KP923879532, %mm0
	pfmul KP923879532KP382683432, %mm2
	movq %mm6, 80(%esp)
	movq %mm7, 96(%esp)
	movq 64(%esp), %mm6
	movq %mm3, %mm7
	movq %mm0, 88(%esp)
	movq %mm4, %mm0
	movq %mm2, 104(%esp)
	pfsub %mm6, %mm3
	pfadd %mm6, %mm7
	movq 48(%esp), %mm6
	movq %mm3, %mm2
	pfsub %mm7, %mm0
	pfadd %mm7, %mm4
	movq 56(%esp), %mm7
	pfpnacc %mm1, %mm2
	pswapd %mm1, %mm1
	pfpnacc %mm3, %mm1
	pswapd %mm0, %mm0
	movq %mm7, %mm3
	pfadd %mm6, %mm7
	pxor chs_hi, %mm0
	pfsub %mm6, %mm3
	movq %mm7, %mm6
	pfadd %mm4, %mm7
	pfsub %mm4, %mm6
	movq %mm1, %mm4
	pfnacc %mm2, %mm1
	pfacc %mm4, %mm2
	movq 40(%esp), %mm4
	movq %mm7, (%ebx)
	movq %mm3, %mm7
	pfadd %mm0, %mm3
	movq %mm6, (%edi)
	movq 32(%esp), %mm6
	pfsub %mm0, %mm7
	pfmul KP707106781KP707106781, %mm1
	pswapd %mm4, %mm4
	pfmul KP707106781KP707106781, %mm2
	pxor chs_hi, %mm4
	movq %mm3, (%ebx,%esi,4)
	movq %mm6, %mm0
	movq %mm7, (%edi,%esi,4)
	pfsub %mm4, %mm0
	pfadd %mm4, %mm6
	movq %mm5, %mm4
	pfmul KP382683432KP923879532, %mm5
	pfmul KP923879532KP382683432, %mm4
	movq %mm0, %mm7
	pfadd %mm1, %mm0
	movq %mm6, %mm3
	pfsub %mm2, %mm6
	pfsub %mm1, %mm7
	movq 24(%esp), %mm1
	pfadd %mm2, %mm3
	movq 96(%esp), %mm2
	pfpnacc 104(%esp), %mm5
	movq %mm0, (%ebx,%ebp,2)
	movq %mm6, (%edi,%esi,2)
	pswapd %mm1, %mm1
	movq %mm7, (%edi,%ebp,2)
	movq 16(%esp), %mm7
	movq %mm3, (%ebx,%esi,2)
	movq 0(%esp), %mm3
	pfpnacc %mm4, %mm2
	pxor chs_lo, %mm1
	movq %mm5, %mm6
	movq %mm3, %mm0
	pfacc %mm2, %mm5
	pfadd %mm1, %mm3
	pfnacc %mm6, %mm2
	pfsub %mm1, %mm0
	movq %mm3, %mm4
	pfadd %mm7, %mm3
	pfsub %mm7, %mm4
	movq 72(%esp), %mm7
	movq %mm3, %mm6
	pfadd %mm5, %mm3
	movq %mm4, %mm1
	pfadd %mm2, %mm4
	pfsub %mm5, %mm6
	movq 8(%esp), %mm5
	pfsub %mm2, %mm1
	movq %mm7, %mm2
	pfmul KP923879532KP382683432, %mm7
	movq %mm3, (%ebx,%ebp)
	movq %mm0, %mm3
	pfmul KP382683432KP923879532, %mm2
	movq %mm6, (%edi,%ebp)
	movq 80(%esp), %mm6
	pfsub %mm5, %mm0
	pfadd %mm5, %mm3
	leal (%esi,%esi,2), %ebp
	pfpnacc 88(%esp), %mm7
	leal (%esi,%ebp,2), %ebp
	pfpnacc %mm2, %mm6
	movq %mm4, (%ebx,%ebp)
	movq %mm3, %mm2
	movq %mm0, %mm4
	movq %mm1, (%edi,%ebp)
	leal (%esi,%esi,4), %ebp
	movq %mm7, %mm5
	pfacc %mm6, %mm7
	pfnacc %mm5, %mm6
	pfsub %mm7, %mm2
	pfadd %mm7, %mm3
	pfsub %mm6, %mm4
	pfadd %mm6, %mm0
	movq %mm2, (%edi,%esi)
	movq %mm3, (%ebx,%esi)
	movq %mm4, (%edi,%ebp)
	movq %mm0, (%ebx,%ebp)
	addl 168(%esp), %ebx
	addl 168(%esp), %edi
	decl 160(%esp)
	jnz .L0
	femms 
	movl 128(%esp), %ebx
	movl 124(%esp), %esi
	movl 120(%esp), %edi
	movl 116(%esp), %ebp
	addl $132, %esp
	ret 

.section .rodata
nam:
	.string "n1k7_16"
	.align 4
desc:
	.long 16
	.long nam
	.double 72
	.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_16
fftwf_codelet_n1k7_16:
	subl $12,%esp
	addl $-4,%esp
	pushl $desc
	pushl $n1k7_16
	pushl 28(%esp)
	call fftwf_kdft_register
	addl $16,%esp
	addl $12,%esp
	ret

