/*
 * Copyright (c) 1997-1999 Massachusetts Institute of Technology
 * Copyright (c) 2000-2001 Stefan Kral
 *
 * 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 Tue Mar 25 06:41:12 EST 2003 */


/* fnset2/cheap-mode: VECTGRADE_FULL succeeded. (69 steps) */
.section .rodata
	.balign 64
	chs_lo: .double -1.0, +1.0
	PK587785252PK587785252: .double +0.5877852522924731291687060, +0.5877852522924731291687060
	PK951056516PK951056516: .double +0.9510565162951535721164393, +0.9510565162951535721164393
	PK559016994PK559016994: .double +0.5590169943749474241022934, +0.5590169943749474241022934
	PK250000000PK250000000: .double +0.2500000000000000000000000, +0.2500000000000000000000000

	

.text
	.balign 64
	.globl	fftw_twiddle_5
	.type	fftw_twiddle_5, @function
fftw_twiddle_5:
	subl $16, %esp
	movl %ebx, 12(%esp)
	movl 28(%esp), %edx
	movl 36(%esp), %ebx
	movl 20(%esp), %eax
	movl %esi, 8(%esp)
	movl %edi, 4(%esp)
	movl %ebp, 0(%esp)
	movl 24(%esp), %ecx
	movl 32(%esp), %esi
	sall $4, %edx
	sall $4, %ebx
	.p2align 4,,7
.L0:
	/* promise simd cell size = 16 */ 
	leal (%edx,%edx,2), %edi
	movapd (%eax,%edx,2), %xmm0
	movapd 32(%ecx), %xmm5
	movapd 16(%ecx), %xmm2
	leal (%edx,%edx,2), %ebp
	movapd (%eax,%edi), %xmm4
	movapd %xmm0, %xmm1
	movapd %xmm5, %xmm6
	movapd %xmm2, %xmm3
	shufpd $9, %xmm1, %xmm1
	mulpd %xmm0, %xmm3
	mulpd %xmm4, %xmm6
	shufpd $9, %xmm4, %xmm4
	mulpd %xmm1, %xmm2
	movapd (%eax,%edx), %xmm1
	movapd %xmm3, %xmm7
	mulpd %xmm4, %xmm5
	movapd %xmm6, %xmm0
	unpckhpd %xmm2, %xmm7
	unpcklpd %xmm2, %xmm3
	unpckhpd %xmm5, %xmm0
	unpcklpd %xmm5, %xmm6
	movapd (%ecx), %xmm5
	movapd %xmm1, %xmm4
	mulsd chs_lo, %xmm7
	shufpd $9, %xmm4, %xmm4
	mulsd chs_lo, %xmm0
	addpd %xmm3, %xmm7
	addpd %xmm6, %xmm0
	movapd %xmm7, %xmm2
	movapd %xmm5, %xmm3
	mulpd %xmm4, %xmm5
	movapd (%eax,%edx,4), %xmm4
	addpd %xmm0, %xmm2
	mulpd %xmm1, %xmm3
	movapd 48(%ecx), %xmm1
	subpd %xmm0, %xmm7
	addl $64, %ecx
	shufpd $9, %xmm7, %xmm7
	movapd %xmm3, %xmm6
	unpcklpd %xmm5, %xmm3
	movapd %xmm4, %xmm0
	unpckhpd %xmm5, %xmm6
	movapd %xmm1, %xmm5
	shufpd $9, %xmm0, %xmm0
	mulpd %xmm4, %xmm5
	mulpd %xmm0, %xmm1
	mulsd chs_lo, %xmm6
	movapd %xmm5, %xmm4
	unpcklpd %xmm1, %xmm5
	unpckhpd %xmm1, %xmm4
	addpd %xmm3, %xmm6
	movapd %xmm7, %xmm1
	mulpd PK587785252PK587785252, %xmm7
	movapd %xmm6, %xmm0
	mulpd PK951056516PK951056516, %xmm1
	mulsd chs_lo, %xmm4
	addpd %xmm5, %xmm4
	movapd (%eax), %xmm5
	/* simd data load/store barrier */ 
	addpd %xmm4, %xmm0
	subpd %xmm4, %xmm6
	movapd %xmm0, %xmm3
	subpd %xmm2, %xmm0
	shufpd $9, %xmm6, %xmm6
	addpd %xmm2, %xmm3
	movapd %xmm5, %xmm4
	mulpd PK559016994PK559016994, %xmm0
	addpd %xmm3, %xmm4
	mulpd PK250000000PK250000000, %xmm3
	movapd %xmm6, %xmm2
	mulpd PK587785252PK587785252, %xmm6
	mulpd PK951056516PK951056516, %xmm2
	movapd %xmm4, (%eax)
	subpd %xmm3, %xmm5
	subpd %xmm6, %xmm1
	movapd %xmm5, %xmm4
	addpd %xmm7, %xmm2
	mulsd chs_lo, %xmm1
	subpd %xmm0, %xmm4
	mulsd chs_lo, %xmm2
	addpd %xmm5, %xmm0
	movapd %xmm4, %xmm6
	subpd %xmm1, %xmm4
	movapd %xmm0, %xmm3
	subpd %xmm2, %xmm0
	addpd %xmm1, %xmm6
	movapd %xmm4, (%eax,%ebp)
	addpd %xmm2, %xmm3
	movapd %xmm0, (%eax,%edx)
	movapd %xmm6, (%eax,%edx,2)
	movapd %xmm3, (%eax,%edx,4)
	addl %ebx, %eax
	decl %esi
	jnz .L0
	movl 12(%esp), %ebx
	movl 8(%esp), %esi
	movl 4(%esp), %edi
	movl 0(%esp), %ebp
	addl $16, %esp
	ret 


.section .rodata
	.balign 4
twiddle_order:
	.long 1
	.long 2
	.long 3
	.long 4

	.globl fftw_twiddle_5_desc
	.balign 32
fftw_twiddle_5_desc:
	/* descr_str_ptr */	.long .LC0
	/* codelet_ptr */	.long fftw_twiddle_5
	/* n */			.long 5
	/* cdir_int */		.long -1
	/* ctype_int */		.long 1
	/* signature */		.long 110
	/* num_twiddles */	.long 4
	/* twiddle_order */	.long twiddle_order
.LC0:	.string "fftw_twiddle_5"
