/*
 * 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:40:33 EST 2003 */


/* fnset2/cheap-mode: VECTGRADE_SEMI succeeded. (27 steps) */
.section .rodata
	.balign 64
	chs_hi: .double +1.0, -1.0
	NK2_000000000PK2_000000000: .double -2.0000000000000000000000000, +2.0000000000000000000000000
	chs_lo: .double -1.0, +1.0
	PK2_000000000PK1_414213562: .double +2.0000000000000000000000000, +1.4142135623730950488016887
	PK1_414213562PK2_000000000: .double +1.4142135623730950488016887, +2.0000000000000000000000000

	

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


.section .rodata

	.globl fftw_hc2real_8_desc
	.balign 32
fftw_hc2real_8_desc:
	/* descr_str_ptr */	.long .LC0
	/* codelet_ptr */	.long fftw_hc2real_8
	/* n */			.long 8
	/* cdir_int */		.long 1
	/* ctype_int */		.long 5
	/* signature */		.long 191
	/* num_twiddles */	.long 0
	/* twiddle_order */	.long 0
.LC0:	.string "fftw_hc2real_8"
