|
kusano |
2b45e8 |
/*********************************************************************/
|
|
kusano |
2b45e8 |
/* Copyright 2009, 2010 The University of Texas at Austin. */
|
|
kusano |
2b45e8 |
/* All rights reserved. */
|
|
kusano |
2b45e8 |
/* */
|
|
kusano |
2b45e8 |
/* Redistribution and use in source and binary forms, with or */
|
|
kusano |
2b45e8 |
/* without modification, are permitted provided that the following */
|
|
kusano |
2b45e8 |
/* conditions are met: */
|
|
kusano |
2b45e8 |
/* */
|
|
kusano |
2b45e8 |
/* 1. Redistributions of source code must retain the above */
|
|
kusano |
2b45e8 |
/* copyright notice, this list of conditions and the following */
|
|
kusano |
2b45e8 |
/* disclaimer. */
|
|
kusano |
2b45e8 |
/* */
|
|
kusano |
2b45e8 |
/* 2. Redistributions in binary form must reproduce the above */
|
|
kusano |
2b45e8 |
/* copyright notice, this list of conditions and the following */
|
|
kusano |
2b45e8 |
/* disclaimer in the documentation and/or other materials */
|
|
kusano |
2b45e8 |
/* provided with the distribution. */
|
|
kusano |
2b45e8 |
/* */
|
|
kusano |
2b45e8 |
/* THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY OF TEXAS AT */
|
|
kusano |
2b45e8 |
/* AUSTIN ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, */
|
|
kusano |
2b45e8 |
/* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
|
|
kusano |
2b45e8 |
/* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */
|
|
kusano |
2b45e8 |
/* DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OF TEXAS AT */
|
|
kusano |
2b45e8 |
/* AUSTIN OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, */
|
|
kusano |
2b45e8 |
/* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES */
|
|
kusano |
2b45e8 |
/* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE */
|
|
kusano |
2b45e8 |
/* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR */
|
|
kusano |
2b45e8 |
/* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
|
|
kusano |
2b45e8 |
/* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
|
|
kusano |
2b45e8 |
/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT */
|
|
kusano |
2b45e8 |
/* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */
|
|
kusano |
2b45e8 |
/* POSSIBILITY OF SUCH DAMAGE. */
|
|
kusano |
2b45e8 |
/* */
|
|
kusano |
2b45e8 |
/* The views and conclusions contained in the software and */
|
|
kusano |
2b45e8 |
/* documentation are those of the authors and should not be */
|
|
kusano |
2b45e8 |
/* interpreted as representing official policies, either expressed */
|
|
kusano |
2b45e8 |
/* or implied, of The University of Texas at Austin. */
|
|
kusano |
2b45e8 |
/*********************************************************************/
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define ASSEMBLER
|
|
kusano |
2b45e8 |
#include "common.h"
|
|
kusano |
2b45e8 |
#include "l2param.h"
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef WINDOWS_ABI
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define STACKSIZE 64
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define OLD_INCX 8 + STACKSIZE(%rsp)
|
|
kusano |
2b45e8 |
#define OLD_Y 16 + STACKSIZE(%rsp)
|
|
kusano |
2b45e8 |
#define OLD_INCY 24 + STACKSIZE(%rsp)
|
|
kusano |
2b45e8 |
#define OLD_BUFFER 32 + STACKSIZE(%rsp)
|
|
kusano |
2b45e8 |
#define ALPHA_R 48 (%rsp)
|
|
kusano |
2b45e8 |
#define ALPHA_I 56 (%rsp)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define M %rdi
|
|
kusano |
2b45e8 |
#define N %rsi
|
|
kusano |
2b45e8 |
#define A %rcx
|
|
kusano |
2b45e8 |
#define LDA %r8
|
|
kusano |
2b45e8 |
#define X %r9
|
|
kusano |
2b45e8 |
#define INCX %rdx
|
|
kusano |
2b45e8 |
#define Y %rbp
|
|
kusano |
2b45e8 |
#define INCY %r10
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define STACKSIZE 256
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define OLD_ALPHA_I 40 + STACKSIZE(%rsp)
|
|
kusano |
2b45e8 |
#define OLD_A 48 + STACKSIZE(%rsp)
|
|
kusano |
2b45e8 |
#define OLD_LDA 56 + STACKSIZE(%rsp)
|
|
kusano |
2b45e8 |
#define OLD_X 64 + STACKSIZE(%rsp)
|
|
kusano |
2b45e8 |
#define OLD_INCX 72 + STACKSIZE(%rsp)
|
|
kusano |
2b45e8 |
#define OLD_Y 80 + STACKSIZE(%rsp)
|
|
kusano |
2b45e8 |
#define OLD_INCY 88 + STACKSIZE(%rsp)
|
|
kusano |
2b45e8 |
#define OLD_BUFFER 96 + STACKSIZE(%rsp)
|
|
kusano |
2b45e8 |
#define ALPHA_R 224 (%rsp)
|
|
kusano |
2b45e8 |
#define ALPHA_I 232 (%rsp)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define M %rcx
|
|
kusano |
2b45e8 |
#define N %rdx
|
|
kusano |
2b45e8 |
#define A %r8
|
|
kusano |
2b45e8 |
#define LDA %r9
|
|
kusano |
2b45e8 |
#define X %rdi
|
|
kusano |
2b45e8 |
#define INCX %rsi
|
|
kusano |
2b45e8 |
#define Y %rbp
|
|
kusano |
2b45e8 |
#define INCY %r10
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define I %rax
|
|
kusano |
2b45e8 |
#define A1 %r12
|
|
kusano |
2b45e8 |
#define A2 %r13
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define Y1 %r14
|
|
kusano |
2b45e8 |
#define BUFFER %r15
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#define J %r11
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#undef SUBPD
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if (!defined(CONJ) && !defined(XCONJ)) || (defined(CONJ) && defined(XCONJ))
|
|
kusano |
2b45e8 |
#define SUBPD subpd
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
#define SUBPD addpd
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
PROLOGUE
|
|
kusano |
2b45e8 |
PROFCODE
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $STACKSIZE, %rsp
|
|
kusano |
2b45e8 |
movq %rbx, 0(%rsp)
|
|
kusano |
2b45e8 |
movq %rbp, 8(%rsp)
|
|
kusano |
2b45e8 |
movq %r12, 16(%rsp)
|
|
kusano |
2b45e8 |
movq %r13, 24(%rsp)
|
|
kusano |
2b45e8 |
movq %r14, 32(%rsp)
|
|
kusano |
2b45e8 |
movq %r15, 40(%rsp)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef WINDOWS_ABI
|
|
kusano |
2b45e8 |
movq %rdi, 48(%rsp)
|
|
kusano |
2b45e8 |
movq %rsi, 56(%rsp)
|
|
kusano |
2b45e8 |
movups %xmm6, 64(%rsp)
|
|
kusano |
2b45e8 |
movups %xmm7, 80(%rsp)
|
|
kusano |
2b45e8 |
movups %xmm8, 96(%rsp)
|
|
kusano |
2b45e8 |
movups %xmm9, 112(%rsp)
|
|
kusano |
2b45e8 |
movups %xmm10, 128(%rsp)
|
|
kusano |
2b45e8 |
movups %xmm11, 144(%rsp)
|
|
kusano |
2b45e8 |
movups %xmm12, 160(%rsp)
|
|
kusano |
2b45e8 |
movups %xmm13, 176(%rsp)
|
|
kusano |
2b45e8 |
movups %xmm14, 192(%rsp)
|
|
kusano |
2b45e8 |
movups %xmm15, 208(%rsp)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movq OLD_A, A
|
|
kusano |
2b45e8 |
movq OLD_LDA, LDA
|
|
kusano |
2b45e8 |
movq OLD_X, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movapd %xmm3, %xmm0
|
|
kusano |
2b45e8 |
movsd OLD_ALPHA_I, %xmm1
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movq OLD_INCX, INCX
|
|
kusano |
2b45e8 |
movq OLD_Y, Y
|
|
kusano |
2b45e8 |
movq OLD_INCY, INCY
|
|
kusano |
2b45e8 |
movq OLD_BUFFER, BUFFER
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
salq $ZBASE_SHIFT, LDA
|
|
kusano |
2b45e8 |
salq $ZBASE_SHIFT, INCX
|
|
kusano |
2b45e8 |
salq $ZBASE_SHIFT, INCY
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlps %xmm0, ALPHA_R
|
|
kusano |
2b45e8 |
movlps %xmm1, ALPHA_I
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $-16 * SIZE, A
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
testq M, M
|
|
kusano |
2b45e8 |
jle .L999
|
|
kusano |
2b45e8 |
testq N, N
|
|
kusano |
2b45e8 |
jle .L999
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movq BUFFER, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
xorps %xmm4, %xmm4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movq M, %rax
|
|
kusano |
2b45e8 |
addq $8, %rax
|
|
kusano |
2b45e8 |
sarq $3, %rax
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L01:
|
|
kusano |
2b45e8 |
movaps %xmm4, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movaps %xmm4, 2 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movaps %xmm4, 4 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movaps %xmm4, 6 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movaps %xmm4, 8 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movaps %xmm4, 10 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movaps %xmm4, 12 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movaps %xmm4, 14 * SIZE(Y1)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $-16 * SIZE, Y1
|
|
kusano |
2b45e8 |
decq %rax
|
|
kusano |
2b45e8 |
jg .L01
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L10:
|
|
kusano |
2b45e8 |
#if GEMV_UNROLL >= 4
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
cmpq $4, N
|
|
kusano |
2b45e8 |
jl .L20
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L11:
|
|
kusano |
2b45e8 |
subq $4, N
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
leaq 16 * SIZE(BUFFER), Y1
|
|
kusano |
2b45e8 |
movq A, A1
|
|
kusano |
2b45e8 |
leaq (A, LDA, 2), A2
|
|
kusano |
2b45e8 |
leaq (A, LDA, 4), A
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movddup 0 * SIZE(X), %xmm8
|
|
kusano |
2b45e8 |
movddup 1 * SIZE(X), %xmm9
|
|
kusano |
2b45e8 |
addq INCX, X
|
|
kusano |
2b45e8 |
movddup 0 * SIZE(X), %xmm10
|
|
kusano |
2b45e8 |
movddup 1 * SIZE(X), %xmm11
|
|
kusano |
2b45e8 |
addq INCX, X
|
|
kusano |
2b45e8 |
movddup 0 * SIZE(X), %xmm12
|
|
kusano |
2b45e8 |
movddup 1 * SIZE(X), %xmm13
|
|
kusano |
2b45e8 |
addq INCX, X
|
|
kusano |
2b45e8 |
movddup 0 * SIZE(X), %xmm14
|
|
kusano |
2b45e8 |
movddup 1 * SIZE(X), %xmm15
|
|
kusano |
2b45e8 |
addq INCX, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
pcmpeqb %xmm5, %xmm5
|
|
kusano |
2b45e8 |
psllq $63, %xmm5
|
|
kusano |
2b45e8 |
shufps $0x40, %xmm5, %xmm5
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd ALPHA_R, %xmm6
|
|
kusano |
2b45e8 |
movhps ALPHA_I, %xmm6
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
pshufd $0x4e, %xmm6, %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef XCONJ
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm7
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm6
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm6, %xmm8
|
|
kusano |
2b45e8 |
mulpd %xmm7, %xmm9
|
|
kusano |
2b45e8 |
mulpd %xmm6, %xmm10
|
|
kusano |
2b45e8 |
mulpd %xmm7, %xmm11
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm6, %xmm12
|
|
kusano |
2b45e8 |
mulpd %xmm7, %xmm13
|
|
kusano |
2b45e8 |
mulpd %xmm6, %xmm14
|
|
kusano |
2b45e8 |
mulpd %xmm7, %xmm15
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef XCONJ
|
|
kusano |
2b45e8 |
subpd %xmm9, %xmm8
|
|
kusano |
2b45e8 |
subpd %xmm11, %xmm10
|
|
kusano |
2b45e8 |
subpd %xmm13, %xmm12
|
|
kusano |
2b45e8 |
subpd %xmm15, %xmm14
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
addpd %xmm9, %xmm8
|
|
kusano |
2b45e8 |
addpd %xmm11, %xmm10
|
|
kusano |
2b45e8 |
addpd %xmm13, %xmm12
|
|
kusano |
2b45e8 |
addpd %xmm15, %xmm14
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
pshufd $0x4e, %xmm8, %xmm9
|
|
kusano |
2b45e8 |
pshufd $0x4e, %xmm10, %xmm11
|
|
kusano |
2b45e8 |
pshufd $0x4e, %xmm12, %xmm13
|
|
kusano |
2b45e8 |
pshufd $0x4e, %xmm14, %xmm15
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef XCONJ
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm9
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm11
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm13
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm15
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm8
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm10
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm12
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm14
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YL1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YL1(-14 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YL1(-12 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YL1(-10 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movq M, I
|
|
kusano |
2b45e8 |
sarq $2, I
|
|
kusano |
2b45e8 |
jle .L15
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
movddup -12 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
movddup -10 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
decq I
|
|
kusano |
2b45e8 |
jle .L14
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L13:
|
|
kusano |
2b45e8 |
#ifdef PREFETCH
|
|
kusano |
2b45e8 |
PREFETCH (PREFETCHSIZE) - 128 + PREOFFSET(A1)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm5
|
|
kusano |
2b45e8 |
addpd %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -11 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm7
|
|
kusano |
2b45e8 |
addpd %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -9 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm4
|
|
kusano |
2b45e8 |
SUBPD %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A1, LDA), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A1, LDA), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm6
|
|
kusano |
2b45e8 |
SUBPD %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -12 * SIZE(A1, LDA), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -10 * SIZE(A1, LDA), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PREFETCH
|
|
kusano |
2b45e8 |
PREFETCH (PREFETCHSIZE) - 128 + PREOFFSET(A1, LDA)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1, LDA), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm5
|
|
kusano |
2b45e8 |
addpd %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A1, LDA), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -11 * SIZE(A1, LDA), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm7
|
|
kusano |
2b45e8 |
addpd %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -9 * SIZE(A1, LDA), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm4
|
|
kusano |
2b45e8 |
SUBPD %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A2), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A2), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm6
|
|
kusano |
2b45e8 |
SUBPD %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -12 * SIZE(A2), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -10 * SIZE(A2), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PREFETCH
|
|
kusano |
2b45e8 |
PREFETCH (PREFETCHSIZE) - 128 + PREOFFSET(A2)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm12, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A2), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm12, %xmm5
|
|
kusano |
2b45e8 |
addpd %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A2), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm12, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -11 * SIZE(A2), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm12, %xmm7
|
|
kusano |
2b45e8 |
addpd %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -9 * SIZE(A2), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm13, %xmm4
|
|
kusano |
2b45e8 |
SUBPD %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A2, LDA), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm13, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A2, LDA), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm13, %xmm6
|
|
kusano |
2b45e8 |
SUBPD %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -12 * SIZE(A2, LDA), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm13, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -10 * SIZE(A2, LDA), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PREFETCH
|
|
kusano |
2b45e8 |
PREFETCH (PREFETCHSIZE) - 128 + PREOFFSET(A2, LDA)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm14, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A2, LDA), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm14, %xmm5
|
|
kusano |
2b45e8 |
addpd %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A2, LDA), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm14, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -11 * SIZE(A2, LDA), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm14, %xmm7
|
|
kusano |
2b45e8 |
addpd %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -9 * SIZE(A2, LDA), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm15, %xmm4
|
|
kusano |
2b45e8 |
SUBPD %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -8 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm15, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -6 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm15, %xmm6
|
|
kusano |
2b45e8 |
SUBPD %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -4 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm15, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -2 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PREFETCHW
|
|
kusano |
2b45e8 |
PREFETCHW (PREFETCHSIZE) - 128 + PREOFFSET(Y1)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-14 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-12 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-10 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -8 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -6 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -4 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -2 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, A1
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, A2
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $1, I
|
|
kusano |
2b45e8 |
BRANCH
|
|
kusano |
2b45e8 |
jg .L13
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L14:
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm5
|
|
kusano |
2b45e8 |
addpd %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -11 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm7
|
|
kusano |
2b45e8 |
addpd %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -9 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm4
|
|
kusano |
2b45e8 |
SUBPD %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A1, LDA), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A1, LDA), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm6
|
|
kusano |
2b45e8 |
SUBPD %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -12 * SIZE(A1, LDA), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -10 * SIZE(A1, LDA), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1, LDA), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm5
|
|
kusano |
2b45e8 |
addpd %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A1, LDA), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -11 * SIZE(A1, LDA), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm7
|
|
kusano |
2b45e8 |
addpd %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -9 * SIZE(A1, LDA), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm4
|
|
kusano |
2b45e8 |
SUBPD %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A2), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A2), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm6
|
|
kusano |
2b45e8 |
SUBPD %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -12 * SIZE(A2), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -10 * SIZE(A2), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm12, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A2), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm12, %xmm5
|
|
kusano |
2b45e8 |
addpd %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A2), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm12, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -11 * SIZE(A2), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm12, %xmm7
|
|
kusano |
2b45e8 |
addpd %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -9 * SIZE(A2), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm13, %xmm4
|
|
kusano |
2b45e8 |
SUBPD %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A2, LDA), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm13, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A2, LDA), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm13, %xmm6
|
|
kusano |
2b45e8 |
SUBPD %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -12 * SIZE(A2, LDA), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm13, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -10 * SIZE(A2, LDA), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm14, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A2, LDA), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm14, %xmm5
|
|
kusano |
2b45e8 |
addpd %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A2, LDA), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm14, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -11 * SIZE(A2, LDA), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm14, %xmm7
|
|
kusano |
2b45e8 |
addpd %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -9 * SIZE(A2, LDA), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm15, %xmm4
|
|
kusano |
2b45e8 |
SUBPD %xmm4, %xmm0
|
|
kusano |
2b45e8 |
mulpd %xmm15, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm1
|
|
kusano |
2b45e8 |
mulpd %xmm15, %xmm6
|
|
kusano |
2b45e8 |
SUBPD %xmm6, %xmm2
|
|
kusano |
2b45e8 |
mulpd %xmm15, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-14 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-12 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-10 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -8 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -6 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -4 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -2 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, A1
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, A2
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, Y1
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L15:
|
|
kusano |
2b45e8 |
testq $2, M
|
|
kusano |
2b45e8 |
je .L17
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A1, LDA, 1), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm1
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A1, LDA, 1), %xmm6
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1, LDA, 1), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A1, LDA, 1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A2), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm1
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A2), %xmm6
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A2), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A2), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm12, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A2, LDA, 1), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm12, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm1
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A2, LDA, 1), %xmm6
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm13, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A2, LDA, 1), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm13, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A2, LDA, 1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm14, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
mulpd %xmm14, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm15, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm0
|
|
kusano |
2b45e8 |
mulpd %xmm15, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-14 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
movaps %xmm2, %xmm0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addq $4 * SIZE, A1
|
|
kusano |
2b45e8 |
addq $4 * SIZE, A2
|
|
kusano |
2b45e8 |
addq $4 * SIZE, Y1
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L17:
|
|
kusano |
2b45e8 |
testq $1, M
|
|
kusano |
2b45e8 |
je .L19
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A1, LDA, 1), %xmm6
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1, LDA, 1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A2), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A2), %xmm5
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm0
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A2, LDA, 1), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A2, LDA, 1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm12, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
mulpd %xmm13, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm14, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm0
|
|
kusano |
2b45e8 |
mulpd %xmm15, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L19:
|
|
kusano |
2b45e8 |
cmpq $4, N
|
|
kusano |
2b45e8 |
jge .L11
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L20:
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if GEMV_UNROLL >= 2
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
cmpq $2, N
|
|
kusano |
2b45e8 |
jl .L30
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if GEMV_UNROLL == 2
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L21:
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $2, N
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
leaq 16 * SIZE(BUFFER), Y1
|
|
kusano |
2b45e8 |
movq A, A1
|
|
kusano |
2b45e8 |
leaq (A, LDA, 1), A2
|
|
kusano |
2b45e8 |
leaq (A, LDA, 2), A
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movddup 0 * SIZE(X), %xmm8
|
|
kusano |
2b45e8 |
movddup 1 * SIZE(X), %xmm9
|
|
kusano |
2b45e8 |
addq INCX, X
|
|
kusano |
2b45e8 |
movddup 0 * SIZE(X), %xmm10
|
|
kusano |
2b45e8 |
movddup 1 * SIZE(X), %xmm11
|
|
kusano |
2b45e8 |
addq INCX, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
pcmpeqb %xmm5, %xmm5
|
|
kusano |
2b45e8 |
psllq $63, %xmm5
|
|
kusano |
2b45e8 |
shufps $0x40, %xmm5, %xmm5
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd ALPHA_R, %xmm6
|
|
kusano |
2b45e8 |
movhps ALPHA_I, %xmm6
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
pshufd $0x4e, %xmm6, %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef XCONJ
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm7
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm6
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm6, %xmm8
|
|
kusano |
2b45e8 |
mulpd %xmm7, %xmm9
|
|
kusano |
2b45e8 |
mulpd %xmm6, %xmm10
|
|
kusano |
2b45e8 |
mulpd %xmm7, %xmm11
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef XCONJ
|
|
kusano |
2b45e8 |
subpd %xmm9, %xmm8
|
|
kusano |
2b45e8 |
subpd %xmm11, %xmm10
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
addpd %xmm9, %xmm8
|
|
kusano |
2b45e8 |
addpd %xmm11, %xmm10
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
pshufd $0x4e, %xmm8, %xmm9
|
|
kusano |
2b45e8 |
pshufd $0x4e, %xmm10, %xmm11
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef XCONJ
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm9
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm11
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm8
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm10
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YL1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YL1(-14 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YL1(-12 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YL1(-10 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movq M, I
|
|
kusano |
2b45e8 |
sarq $2, I
|
|
kusano |
2b45e8 |
jle .L25
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
movddup -12 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
movddup -10 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
decq I
|
|
kusano |
2b45e8 |
jle .L24
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L23:
|
|
kusano |
2b45e8 |
#ifdef PREFETCH
|
|
kusano |
2b45e8 |
PREFETCH (PREFETCHSIZE) * 2 - 128 + PREOFFSET(A2)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm5
|
|
kusano |
2b45e8 |
addpd %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -11 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm7
|
|
kusano |
2b45e8 |
addpd %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -9 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm4
|
|
kusano |
2b45e8 |
SUBPD %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A2), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A2), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm6
|
|
kusano |
2b45e8 |
SUBPD %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -12 * SIZE(A2), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -10 * SIZE(A2), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PREFETCH
|
|
kusano |
2b45e8 |
PREFETCH (PREFETCHSIZE) * 2 - 128 + PREOFFSET(A1)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A2), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm5
|
|
kusano |
2b45e8 |
addpd %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A2), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -11 * SIZE(A2), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm7
|
|
kusano |
2b45e8 |
addpd %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -9 * SIZE(A2), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm4
|
|
kusano |
2b45e8 |
SUBPD %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -8 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -6 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm6
|
|
kusano |
2b45e8 |
SUBPD %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -4 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -2 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PREFETCHW
|
|
kusano |
2b45e8 |
PREFETCHW (PREFETCHSIZE) * 2 - 128 + PREOFFSET(Y1)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-14 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-12 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-10 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -8 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -6 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -4 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -2 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, A1
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, A2
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $1, I
|
|
kusano |
2b45e8 |
BRANCH
|
|
kusano |
2b45e8 |
jg .L23
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L24:
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm5
|
|
kusano |
2b45e8 |
addpd %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -11 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm7
|
|
kusano |
2b45e8 |
addpd %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -9 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm4
|
|
kusano |
2b45e8 |
SUBPD %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A2), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A2), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm6
|
|
kusano |
2b45e8 |
SUBPD %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -12 * SIZE(A2), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -10 * SIZE(A2), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A2), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm5
|
|
kusano |
2b45e8 |
addpd %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A2), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -11 * SIZE(A2), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm7
|
|
kusano |
2b45e8 |
addpd %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -9 * SIZE(A2), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm4
|
|
kusano |
2b45e8 |
SUBPD %xmm4, %xmm0
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm1
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm6
|
|
kusano |
2b45e8 |
SUBPD %xmm6, %xmm2
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-14 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-12 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-10 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -8 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -6 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -4 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -2 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, A1
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, A2
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, Y1
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L25:
|
|
kusano |
2b45e8 |
testq $2, M
|
|
kusano |
2b45e8 |
je .L27
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A2), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm1
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A2), %xmm6
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A2), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A2), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm0
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-14 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
movaps %xmm2, %xmm0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addq $4 * SIZE, A1
|
|
kusano |
2b45e8 |
addq $4 * SIZE, A2
|
|
kusano |
2b45e8 |
addq $4 * SIZE, Y1
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L27:
|
|
kusano |
2b45e8 |
testq $1, M
|
|
kusano |
2b45e8 |
#if GEMV_UNROLL == 2
|
|
kusano |
2b45e8 |
je .L29
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
je .L30
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A2), %xmm6
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A2), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm10, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm0
|
|
kusano |
2b45e8 |
mulpd %xmm11, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if GEMV_UNROLL == 2
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L29:
|
|
kusano |
2b45e8 |
cmpq $2, N
|
|
kusano |
2b45e8 |
jge .L21
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L30:
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
cmpq $1, N
|
|
kusano |
2b45e8 |
jl .L980
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if GEMV_UNROLL == 1
|
|
kusano |
2b45e8 |
.L31:
|
|
kusano |
2b45e8 |
decq N
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
leaq 16 * SIZE(BUFFER), Y1
|
|
kusano |
2b45e8 |
movq A, A1
|
|
kusano |
2b45e8 |
#if GEMV_UNROLL == 1
|
|
kusano |
2b45e8 |
addq LDA, A
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movddup 0 * SIZE(X), %xmm8
|
|
kusano |
2b45e8 |
movddup 1 * SIZE(X), %xmm9
|
|
kusano |
2b45e8 |
addq INCX, X
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
pcmpeqb %xmm5, %xmm5
|
|
kusano |
2b45e8 |
psllq $63, %xmm5
|
|
kusano |
2b45e8 |
shufps $0x40, %xmm5, %xmm5
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd ALPHA_R, %xmm6
|
|
kusano |
2b45e8 |
movhps ALPHA_I, %xmm6
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
pshufd $0x4e, %xmm6, %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef XCONJ
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm7
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm6
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm6, %xmm8
|
|
kusano |
2b45e8 |
mulpd %xmm7, %xmm9
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef XCONJ
|
|
kusano |
2b45e8 |
subpd %xmm9, %xmm8
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
addpd %xmm9, %xmm8
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
pshufd $0x4e, %xmm8, %xmm9
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifndef XCONJ
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm9
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
xorps %xmm5, %xmm8
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YL1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YL1(-14 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YL1(-12 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YL1(-10 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movq M, I
|
|
kusano |
2b45e8 |
sarq $2, I
|
|
kusano |
2b45e8 |
jle .L35
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
movddup -12 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
movddup -10 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
decq I
|
|
kusano |
2b45e8 |
jle .L34
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L33:
|
|
kusano |
2b45e8 |
#ifdef PREFETCH
|
|
kusano |
2b45e8 |
PREFETCH (PREFETCHSIZE) * 4 - 128 + PREOFFSET(A1)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm5
|
|
kusano |
2b45e8 |
addpd %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -11 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm7
|
|
kusano |
2b45e8 |
addpd %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -9 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm4
|
|
kusano |
2b45e8 |
SUBPD %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -8 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -6 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm6
|
|
kusano |
2b45e8 |
SUBPD %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -4 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -2 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef PREFETCHW
|
|
kusano |
2b45e8 |
PREFETCHW (PREFETCHSIZE) * 4 - 128 + PREOFFSET(Y1)
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-14 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-12 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-10 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -8 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -6 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -4 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -2 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, A1
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $1, I
|
|
kusano |
2b45e8 |
BRANCH
|
|
kusano |
2b45e8 |
jg .L33
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L34:
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm5
|
|
kusano |
2b45e8 |
addpd %xmm5, %xmm1
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm2
|
|
kusano |
2b45e8 |
movddup -11 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm7
|
|
kusano |
2b45e8 |
addpd %xmm7, %xmm3
|
|
kusano |
2b45e8 |
movddup -9 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm4
|
|
kusano |
2b45e8 |
SUBPD %xmm4, %xmm0
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm1
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm6
|
|
kusano |
2b45e8 |
SUBPD %xmm6, %xmm2
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-14 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-12 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-10 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -8 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -6 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -4 * SIZE, Y1, %xmm2)
|
|
kusano |
2b45e8 |
MOVUPS_YL1( -2 * SIZE, Y1, %xmm3)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, A1
|
|
kusano |
2b45e8 |
subq $-8 * SIZE, Y1
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L35:
|
|
kusano |
2b45e8 |
testq $2, M
|
|
kusano |
2b45e8 |
je .L37
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
movddup -14 * SIZE(A1), %xmm6
|
|
kusano |
2b45e8 |
movddup -13 * SIZE(A1), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm6
|
|
kusano |
2b45e8 |
addpd %xmm6, %xmm1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm0
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm7
|
|
kusano |
2b45e8 |
SUBPD %xmm7, %xmm1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-14 * SIZE, Y1, %xmm1)
|
|
kusano |
2b45e8 |
movaps %xmm2, %xmm0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addq $4 * SIZE, A1
|
|
kusano |
2b45e8 |
addq $4 * SIZE, Y1
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L37:
|
|
kusano |
2b45e8 |
testq $1, M
|
|
kusano |
2b45e8 |
#if GEMV_UNROLL == 1
|
|
kusano |
2b45e8 |
je .L39
|
|
kusano |
2b45e8 |
#else
|
|
kusano |
2b45e8 |
je .L980
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movddup -16 * SIZE(A1), %xmm4
|
|
kusano |
2b45e8 |
movddup -15 * SIZE(A1), %xmm5
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
mulpd %xmm8, %xmm4
|
|
kusano |
2b45e8 |
addpd %xmm4, %xmm0
|
|
kusano |
2b45e8 |
mulpd %xmm9, %xmm5
|
|
kusano |
2b45e8 |
SUBPD %xmm5, %xmm0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
MOVUPS_YS1(-16 * SIZE, Y1, %xmm0)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#if GEMV_UNROLL == 1
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
.L39:
|
|
kusano |
2b45e8 |
cmpq $1, N
|
|
kusano |
2b45e8 |
jge .L31
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L980:
|
|
kusano |
2b45e8 |
testq $SIZE, Y
|
|
kusano |
2b45e8 |
jne .L990
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movq Y, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movq M, %rax
|
|
kusano |
2b45e8 |
sarq $3, %rax
|
|
kusano |
2b45e8 |
jle .L184
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L182:
|
|
kusano |
2b45e8 |
movaps (Y), %xmm0
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
movaps (Y), %xmm1
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
movaps (Y), %xmm2
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
movaps (Y), %xmm3
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
movaps (Y), %xmm4
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
movaps (Y), %xmm5
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
movaps (Y), %xmm6
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
movaps (Y), %xmm7
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addpd 0 * SIZE(BUFFER), %xmm0
|
|
kusano |
2b45e8 |
addpd 2 * SIZE(BUFFER), %xmm1
|
|
kusano |
2b45e8 |
addpd 4 * SIZE(BUFFER), %xmm2
|
|
kusano |
2b45e8 |
addpd 6 * SIZE(BUFFER), %xmm3
|
|
kusano |
2b45e8 |
addpd 8 * SIZE(BUFFER), %xmm4
|
|
kusano |
2b45e8 |
addpd 10 * SIZE(BUFFER), %xmm5
|
|
kusano |
2b45e8 |
addpd 12 * SIZE(BUFFER), %xmm6
|
|
kusano |
2b45e8 |
addpd 14 * SIZE(BUFFER), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movaps %xmm0, (Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
movaps %xmm1, (Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
movaps %xmm2, (Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
movaps %xmm3, (Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
movaps %xmm4, (Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
movaps %xmm5, (Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
movaps %xmm6, (Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
movaps %xmm7, (Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $-16 * SIZE, BUFFER
|
|
kusano |
2b45e8 |
decq %rax
|
|
kusano |
2b45e8 |
jg .L182
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L184:
|
|
kusano |
2b45e8 |
testq $7, M
|
|
kusano |
2b45e8 |
jle .L999
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
testq $4, M
|
|
kusano |
2b45e8 |
jle .L185
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movaps (Y), %xmm0
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
movaps (Y), %xmm1
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
movaps (Y), %xmm2
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
movaps (Y), %xmm3
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addpd 0 * SIZE(BUFFER), %xmm0
|
|
kusano |
2b45e8 |
addpd 2 * SIZE(BUFFER), %xmm1
|
|
kusano |
2b45e8 |
addpd 4 * SIZE(BUFFER), %xmm2
|
|
kusano |
2b45e8 |
addpd 6 * SIZE(BUFFER), %xmm3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movaps %xmm0, (Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
movaps %xmm1, (Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
movaps %xmm2, (Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
movaps %xmm3, (Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addq $8 * SIZE, BUFFER
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L185:
|
|
kusano |
2b45e8 |
testq $2, M
|
|
kusano |
2b45e8 |
jle .L186
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movaps (Y), %xmm0
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
movaps (Y), %xmm1
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
addpd 0 * SIZE(BUFFER), %xmm0
|
|
kusano |
2b45e8 |
addpd 2 * SIZE(BUFFER), %xmm1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movaps %xmm0, (Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
movaps %xmm1, (Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addq $4 * SIZE, BUFFER
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L186:
|
|
kusano |
2b45e8 |
testq $1, M
|
|
kusano |
2b45e8 |
jle .L999
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movaps (Y), %xmm0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addpd (BUFFER), %xmm0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movaps %xmm0, (Y1)
|
|
kusano |
2b45e8 |
jmp .L999
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L990:
|
|
kusano |
2b45e8 |
movq Y, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movq M, %rax
|
|
kusano |
2b45e8 |
sarq $3, %rax
|
|
kusano |
2b45e8 |
jle .L994
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L992:
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm0
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm0
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm1
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm1
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm2
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm2
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm3
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm3
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm4
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm4
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm5
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm5
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm6
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm6
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm7
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm7
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addpd 0 * SIZE(BUFFER), %xmm0
|
|
kusano |
2b45e8 |
addpd 2 * SIZE(BUFFER), %xmm1
|
|
kusano |
2b45e8 |
addpd 4 * SIZE(BUFFER), %xmm2
|
|
kusano |
2b45e8 |
addpd 6 * SIZE(BUFFER), %xmm3
|
|
kusano |
2b45e8 |
addpd 8 * SIZE(BUFFER), %xmm4
|
|
kusano |
2b45e8 |
addpd 10 * SIZE(BUFFER), %xmm5
|
|
kusano |
2b45e8 |
addpd 12 * SIZE(BUFFER), %xmm6
|
|
kusano |
2b45e8 |
addpd 14 * SIZE(BUFFER), %xmm7
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm0, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm0, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm1, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm1, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm2, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm2, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm3, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm3, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm4, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm4, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm5, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm5, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm6, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm6, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm7, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm7, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
subq $-16 * SIZE, BUFFER
|
|
kusano |
2b45e8 |
decq %rax
|
|
kusano |
2b45e8 |
jg .L992
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L994:
|
|
kusano |
2b45e8 |
testq $7, M
|
|
kusano |
2b45e8 |
jle .L999
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
testq $4, M
|
|
kusano |
2b45e8 |
jle .L995
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm0
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm0
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm1
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm1
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm2
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm2
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm3
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm3
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addpd 0 * SIZE(BUFFER), %xmm0
|
|
kusano |
2b45e8 |
addpd 2 * SIZE(BUFFER), %xmm1
|
|
kusano |
2b45e8 |
addpd 4 * SIZE(BUFFER), %xmm2
|
|
kusano |
2b45e8 |
addpd 6 * SIZE(BUFFER), %xmm3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm0, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm0, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm1, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm1, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm2, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm2, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm3, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm3, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addq $8 * SIZE, BUFFER
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L995:
|
|
kusano |
2b45e8 |
testq $2, M
|
|
kusano |
2b45e8 |
jle .L996
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm0
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm0
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm1
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm1
|
|
kusano |
2b45e8 |
addq INCY, Y
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addpd 0 * SIZE(BUFFER), %xmm0
|
|
kusano |
2b45e8 |
addpd 2 * SIZE(BUFFER), %xmm1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm0, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm0, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm1, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm1, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
addq INCY, Y1
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addq $4 * SIZE, BUFFER
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L996:
|
|
kusano |
2b45e8 |
testq $1, M
|
|
kusano |
2b45e8 |
jle .L999
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movsd 0 * SIZE(Y), %xmm0
|
|
kusano |
2b45e8 |
movhpd 1 * SIZE(Y), %xmm0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addpd 0 * SIZE(BUFFER), %xmm0
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
movlpd %xmm0, 0 * SIZE(Y1)
|
|
kusano |
2b45e8 |
movhpd %xmm0, 1 * SIZE(Y1)
|
|
kusano |
2b45e8 |
ALIGN_3
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
.L999:
|
|
kusano |
2b45e8 |
movq 0(%rsp), %rbx
|
|
kusano |
2b45e8 |
movq 8(%rsp), %rbp
|
|
kusano |
2b45e8 |
movq 16(%rsp), %r12
|
|
kusano |
2b45e8 |
movq 24(%rsp), %r13
|
|
kusano |
2b45e8 |
movq 32(%rsp), %r14
|
|
kusano |
2b45e8 |
movq 40(%rsp), %r15
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
#ifdef WINDOWS_ABI
|
|
kusano |
2b45e8 |
movq 48(%rsp), %rdi
|
|
kusano |
2b45e8 |
movq 56(%rsp), %rsi
|
|
kusano |
2b45e8 |
movups 64(%rsp), %xmm6
|
|
kusano |
2b45e8 |
movups 80(%rsp), %xmm7
|
|
kusano |
2b45e8 |
movups 96(%rsp), %xmm8
|
|
kusano |
2b45e8 |
movups 112(%rsp), %xmm9
|
|
kusano |
2b45e8 |
movups 128(%rsp), %xmm10
|
|
kusano |
2b45e8 |
movups 144(%rsp), %xmm11
|
|
kusano |
2b45e8 |
movups 160(%rsp), %xmm12
|
|
kusano |
2b45e8 |
movups 176(%rsp), %xmm13
|
|
kusano |
2b45e8 |
movups 192(%rsp), %xmm14
|
|
kusano |
2b45e8 |
movups 208(%rsp), %xmm15
|
|
kusano |
2b45e8 |
#endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
addq $STACKSIZE, %rsp
|
|
kusano |
2b45e8 |
ret
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
EPILOGUE
|