/*
 * 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:37:30 EST 2003 */


/* fnset2/cheap-mode: VECTGRADE_FULLH0 succeeded. (23 steps) */
.section .rodata
	.balign 64
	chs_lo: .double -1.0, +1.0
	PK707106781PK707106781: .double +0.7071067811865475244008444, +0.7071067811865475244008444
	chs_hi: .double +1.0, -1.0

	

.text
	.balign 64
	.globl	fftw_real2hc_8
	.type	fftw_real2hc_8, @function
fftw_real2hc_8:
	/* promise simd cell size = 16 */ 
	subl $16, %esp
	movl 32(%esp), %ecx
	movl %esi, 8(%esp)
	movl 20(%esp), %eax
	movl %ebx, 12(%esp)
	movl %edi, 4(%esp)
	movl %ebp, 0(%esp)
	movl 28(%esp), %ebp
	leal (,%ecx,8), %edx
	movl 24(%esp), %ecx
	leal (%edx,%edx,4), %esi
	leal (%edx,%edx,2), %ebx
	movlpd (%eax,%edx), %xmm1
	movhpd (%eax,%edx,4), %xmm4
	movlpd (%eax), %xmm4
	leal (%esi,%edx,2), %edi
	movhpd (%eax,%esi), %xmm1
	movhpd (%eax,%ebx), %xmm0
	movapd %xmm4, %xmm5
	movapd %xmm4, %xmm6
	movlpd (%eax,%edi), %xmm0
	movapd %xmm4, %xmm7
	movapd %xmm1, %xmm2
	movapd %xmm1, %xmm3
	unpckhpd %xmm0, %xmm2
	unpcklpd %xmm0, %xmm3
	unpckhpd %xmm0, %xmm5
	subpd %xmm2, %xmm3
	movlpd (%eax,%edx,2), %xmm2
	movhpd (%eax,%ebx,2), %xmm2
	unpcklpd %xmm0, %xmm6
	movl 36(%esp), %edx
	movl 40(%esp), %ebx
	/* simd data load/store barrier */ 
	addpd %xmm6, %xmm5
	movapd %xmm3, %xmm6
	shufpd $9, %xmm6, %xmm6
	leal (,%edx,8), %eax
	leal (,%ebx,8), %esi
	movl 12(%esp), %ebx
	movapd %xmm2, %xmm0
	unpckhpd %xmm2, %xmm4
	unpcklpd %xmm2, %xmm7
	mulsd chs_lo, %xmm6
	unpckhpd %xmm1, %xmm0
	unpcklpd %xmm1, %xmm2
	subpd %xmm4, %xmm7
	movapd %xmm5, %xmm4
	leal (%esi,%esi,2), %edi
	subpd %xmm6, %xmm3
	leal (%eax,%eax,2), %edx
	addpd %xmm2, %xmm0
	movapd %xmm7, %xmm2
	mulpd PK707106781PK707106781, %xmm3
	addpd %xmm0, %xmm4
	subpd %xmm0, %xmm5
	movapd %xmm4, %xmm1
	subpd %xmm3, %xmm2
	addpd %xmm3, %xmm7
	movlpd %xmm5, (%ecx,%eax,2)
	movhpd %xmm5, (%ebp,%esi,2)
	shufpd $9, %xmm1, %xmm1
	mulpd chs_hi, %xmm2
	movlpd %xmm7, (%ecx,%eax)
	movhpd %xmm7, (%ebp,%edi)
	movl 4(%esp), %edi
	mulsd chs_lo, %xmm1
	movlpd %xmm2, (%ecx,%edx)
	movhpd %xmm2, (%ebp,%esi)
	movl 8(%esp), %esi
	movl 0(%esp), %ebp
	addl $16, %esp
	addpd %xmm1, %xmm4
	movlpd %xmm4, (%ecx,%eax,4)
	movhpd %xmm4, (%ecx)
	ret 


.section .rodata

	.globl fftw_real2hc_8_desc
	.balign 32
fftw_real2hc_8_desc:
	/* descr_str_ptr */	.long .LC0
	/* codelet_ptr */	.long fftw_real2hc_8
	/* n */			.long 8
	/* cdir_int */		.long -1
	/* ctype_int */		.long 4
	/* signature */		.long 178
	/* num_twiddles */	.long 0
	/* twiddle_order */	.long 0
.LC0:	.string "fftw_real2hc_8"
