📄 ztrsm_kernel_rt_4x2_sse.s
字号:
addps %xmm0, %xmm7 pshufd $0x44, %xmm8, %xmm9 pshufd $0x11, %xmm8, %xmm10 pshufd $0xa0, %xmm7, %xmm0 pshufd $0xf5, %xmm7, %xmm1#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm1 subps %xmm0, %xmm6 subps %xmm1, %xmm6 movaps 24 * SIZE(AO), %xmm8 pshufd $0xee, %xmm8, %xmm9 pshufd $0xbb, %xmm8, %xmm10 pshufd $0xa0, %xmm7, %xmm0 pshufd $0xf5, %xmm7, %xmm1#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm1 subps %xmm0, %xmm3 subps %xmm1, %xmm3 pshufd $0x44, %xmm8, %xmm9 pshufd $0x11, %xmm8, %xmm10 pshufd $0xa0, %xmm7, %xmm0 pshufd $0xf5, %xmm7, %xmm1#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm1 subps %xmm0, %xmm2 subps %xmm1, %xmm2 movaps 20 * SIZE(AO), %xmm8 pshufd $0x44, %xmm8, %xmm9 pshufd $0x11, %xmm8, %xmm10 pshufd $0xa0, %xmm6, %xmm0 pshufd $0xf5, %xmm6, %xmm6#ifndef CONJ xorps %xmm15, %xmm6#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm6 addps %xmm0, %xmm6 movaps 16 * SIZE(AO), %xmm8 pshufd $0xee, %xmm8, %xmm9 pshufd $0xbb, %xmm8, %xmm10 pshufd $0xa0, %xmm6, %xmm0 pshufd $0xf5, %xmm6, %xmm1#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm1 subps %xmm0, %xmm3 subps %xmm1, %xmm3 pshufd $0x44, %xmm8, %xmm9 pshufd $0x11, %xmm8, %xmm10 pshufd $0xa0, %xmm6, %xmm0 pshufd $0xf5, %xmm6, %xmm1#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm1 subps %xmm0, %xmm2 subps %xmm1, %xmm2 movaps 8 * SIZE(AO), %xmm8 pshufd $0xee, %xmm8, %xmm9 pshufd $0xbb, %xmm8, %xmm10 pshufd $0xa0, %xmm3, %xmm0 pshufd $0xf5, %xmm3, %xmm3#ifndef CONJ xorps %xmm15, %xmm3#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm3 addps %xmm0, %xmm3 pshufd $0x44, %xmm8, %xmm9 pshufd $0x11, %xmm8, %xmm10 pshufd $0xa0, %xmm3, %xmm0 pshufd $0xf5, %xmm3, %xmm1#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm1 subps %xmm0, %xmm2 subps %xmm1, %xmm2 movaps 0 * SIZE(AO), %xmm8 pshufd $0x44, %xmm8, %xmm9 pshufd $0x11, %xmm8, %xmm10 pshufd $0xa0, %xmm2, %xmm0 pshufd $0xf5, %xmm2, %xmm2#ifndef CONJ xorps %xmm15, %xmm2#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm2 addps %xmm0, %xmm2#endif#ifdef LT movaps 0 * SIZE(AO), %xmm8 pshufd $0x44, %xmm8, %xmm9 pshufd $0x11, %xmm8, %xmm10 pshufd $0xa0, %xmm2, %xmm0 pshufd $0xf5, %xmm2, %xmm2#ifndef CONJ xorps %xmm15, %xmm2#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm2 addps %xmm0, %xmm2 pshufd $0xee, %xmm8, %xmm9 pshufd $0xbb, %xmm8, %xmm10 pshufd $0xa0, %xmm2, %xmm0 pshufd $0xf5, %xmm2, %xmm1#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm1 subps %xmm0, %xmm3 subps %xmm1, %xmm3 movaps 4 * SIZE(AO), %xmm8 pshufd $0x44, %xmm8, %xmm9 pshufd $0x11, %xmm8, %xmm10 pshufd $0xa0, %xmm2, %xmm0 pshufd $0xf5, %xmm2, %xmm1#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm1 subps %xmm0, %xmm6 subps %xmm1, %xmm6 pshufd $0xee, %xmm8, %xmm9 pshufd $0xbb, %xmm8, %xmm10 pshufd $0xa0, %xmm2, %xmm0 pshufd $0xf5, %xmm2, %xmm1#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm1 subps %xmm0, %xmm7 subps %xmm1, %xmm7 movaps 8 * SIZE(AO), %xmm8 pshufd $0xee, %xmm8, %xmm9 pshufd $0xbb, %xmm8, %xmm10 pshufd $0xa0, %xmm3, %xmm0 pshufd $0xf5, %xmm3, %xmm3#ifndef CONJ xorps %xmm15, %xmm3#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm3 addps %xmm0, %xmm3 movaps 12 * SIZE(AO), %xmm8 pshufd $0x44, %xmm8, %xmm9 pshufd $0x11, %xmm8, %xmm10 pshufd $0xa0, %xmm3, %xmm0 pshufd $0xf5, %xmm3, %xmm1#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm1 subps %xmm0, %xmm6 subps %xmm1, %xmm6 pshufd $0xee, %xmm8, %xmm9 pshufd $0xbb, %xmm8, %xmm10 pshufd $0xa0, %xmm3, %xmm0 pshufd $0xf5, %xmm3, %xmm1#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm1 subps %xmm0, %xmm7 subps %xmm1, %xmm7 movaps 20 * SIZE(AO), %xmm8 pshufd $0x44, %xmm8, %xmm9 pshufd $0x11, %xmm8, %xmm10 pshufd $0xa0, %xmm6, %xmm0 pshufd $0xf5, %xmm6, %xmm6#ifndef CONJ xorps %xmm15, %xmm6#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm6 addps %xmm0, %xmm6 pshufd $0xee, %xmm8, %xmm9 pshufd $0xbb, %xmm8, %xmm10 pshufd $0xa0, %xmm6, %xmm0 pshufd $0xf5, %xmm6, %xmm1#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm1 subps %xmm0, %xmm7 subps %xmm1, %xmm7 movaps 28 * SIZE(AO), %xmm8 pshufd $0xee, %xmm8, %xmm9 pshufd $0xbb, %xmm8, %xmm10 pshufd $0xa0, %xmm7, %xmm0 pshufd $0xf5, %xmm7, %xmm7#ifndef CONJ xorps %xmm15, %xmm7#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm7 addps %xmm0, %xmm7#endif#if defined(RN) || defined(RT) movaps 0 * SIZE(B), %xmm8 pshufd $0x44, %xmm8, %xmm9 pshufd $0x11, %xmm8, %xmm10 pshufd $0xa0, %xmm1, %xmm4 pshufd $0xf5, %xmm1, %xmm1 pshufd $0xa0, %xmm3, %xmm6 pshufd $0xf5, %xmm3, %xmm3#ifndef CONJ xorps %xmm15, %xmm1 xorps %xmm15, %xmm3#else xorps %xmm15, %xmm4 xorps %xmm15, %xmm6#endif mulps %xmm9, %xmm4 mulps %xmm9, %xmm6 mulps %xmm10, %xmm1 mulps %xmm10, %xmm3 addps %xmm4, %xmm1 addps %xmm6, %xmm3#endif#ifdef LN subq $8 * SIZE, CO1#endif#if defined(LN) || defined(LT) movlps %xmm2, 0 * SIZE(B) movlps %xmm3, 2 * SIZE(B) movlps %xmm6, 4 * SIZE(B) movlps %xmm7, 6 * SIZE(B) pshufd $0x00, %xmm2, %xmm0 pshufd $0x55, %xmm2, %xmm1 movaps %xmm0, 0 * SIZE(BO) movaps %xmm1, 4 * SIZE(BO) pshufd $0x00, %xmm3, %xmm0 pshufd $0x55, %xmm3, %xmm1 movaps %xmm0, 8 * SIZE(BO) movaps %xmm1, 12 * SIZE(BO) pshufd $0x00, %xmm6, %xmm0 pshufd $0x55, %xmm6, %xmm1 movaps %xmm0, 16 * SIZE(BO) movaps %xmm1, 20 * SIZE(BO) pshufd $0x00, %xmm7, %xmm0 pshufd $0x55, %xmm7, %xmm1 movaps %xmm0, 24 * SIZE(BO) movaps %xmm1, 28 * SIZE(BO) movlps %xmm2, 0 * SIZE(CO1) movlps %xmm3, 2 * SIZE(CO1) movlps %xmm6, 4 * SIZE(CO1) movlps %xmm7, 6 * SIZE(CO1)#else movaps %xmm1, 0 * SIZE(AO) movaps %xmm3, 4 * SIZE(AO) movlps %xmm1, 0 * SIZE(CO1) movhps %xmm1, 2 * SIZE(CO1) movlps %xmm3, 4 * SIZE(CO1) movhps %xmm3, 6 * SIZE(CO1)#endif#ifndef LN addq $8 * SIZE, CO1#endif#if defined(LT) || defined(RN) movq K, %rax subq KK, %rax salq $ZBASE_SHIFT, %rax leaq (AO, %rax, 4), AO#ifdef LT addq $8 * SIZE, B#endif#endif#ifdef LN subq $4, KK movq BORIG, B#endif#ifdef LT addq $4, KK#endif#ifdef RT movq K, %rax movq BORIG, B salq $2 + ZBASE_SHIFT, %rax addq %rax, AORIG#endif decq I # i -- jg .L51 ALIGN_4 .L60: testq $2, M je .L70#ifdef LN movq K, %rax salq $1 + ZBASE_SHIFT, %rax subq %rax, AORIG#endif#if defined(LN) || defined(RT) movq KK, %rax movq AORIG, AO salq $ZBASE_SHIFT, %rax leaq (AO, %rax, 2), AO#endif leaq BUFFER, BO#if defined(LN) || defined(RT) movq KK, %rax salq $ZBASE_SHIFT, %rax leaq (BO, %rax, 4), BO#endif movaps 0 * SIZE(AO), %xmm8 movaps 16 * SIZE(AO), %xmm10 movaps 0 * SIZE(BO), %xmm9 movaps 16 * SIZE(BO), %xmm11 movaps 32 * SIZE(BO), %xmm13 movaps 48 * SIZE(BO), %xmm15 pxor %xmm0, %xmm0 pxor %xmm1, %xmm1 pxor %xmm2, %xmm2 pxor %xmm3, %xmm3#if defined(LT) || defined(RN) movq KK, %rax#else movq K, %rax subq KK, %rax#endif sarq $3, %rax je .L65 ALIGN_4.L62: mulps %xmm8, %xmm9#if defined(OPTERON) && defined(HAVE_PREFETCH) PREFETCH (PREFETCHSIZE + 0) * SIZE(AO)#endif mulps 4 * SIZE(BO), %xmm8 addps %xmm9, %xmm0 movaps 8 * SIZE(BO), %xmm9 addps %xmm8, %xmm1 movaps 4 * SIZE(AO), %xmm8 mulps %xmm8, %xmm9 mulps 12 * SIZE(BO), %xmm8 addps %xmm9, %xmm2 movaps 64 * SIZE(BO), %xmm9 addps %xmm8, %xmm3 movaps 8 * SIZE(AO), %xmm8 mulps %xmm8, %xmm11 mulps 20 * SIZE(BO), %xmm8 addps %xmm11, %xmm0 movaps 24 * SIZE(BO), %xmm11 addps %xmm8, %xmm1 movaps 12 * SIZE(AO), %xmm8 mulps %xmm8, %xmm11 mulps 28 * SIZE(BO), %xmm8 addps %xmm11, %xmm2 movaps 80 * SIZE(BO), %xmm11 addps %xmm8, %xmm3 movaps 32 * SIZE(AO), %xmm8#if defined(OPTERON) && defined(HAVE_PREFETCH) PREFETCH (PREFETCHSIZE + 16) * SIZE(AO)#endif mulps %xmm10, %xmm13 mulps 36 * SIZE(BO), %xmm10 addps %xmm13, %xmm0 movaps 40 * SIZE(BO), %xmm13 addps %xmm10, %xmm1 movaps 20 * SIZE(AO), %xmm10 mulps %xmm10, %xmm13 mulps 44 * SIZE(BO), %xmm10 addps %xmm13, %xmm2 movaps 96 * SIZE(BO), %xmm13 addps %xmm10, %xmm3 movaps 24 * SIZE(AO), %xmm10 mulps %xmm10, %xmm15 mulps 52 * SIZE(BO), %xmm10 addps %xmm15, %xmm0 movaps 56 * SIZE(BO), %xmm15 addps %xmm10, %xmm1 movaps 28 * SIZE(AO), %xmm10 mulps %xmm10, %xmm15 mulps 60 * SIZE(BO), %xmm10 addps %xmm15, %xmm2 movaps 112 * SIZE(BO), %xmm15 addps %xmm10, %xmm3 movaps 48 * SIZE(AO), %xmm10 addq $32 * SIZE, AO addq $64 * SIZE, BO decq %rax jne .L62 ALIGN_4.L65:#if defined(LT) || defined(RN) movq KK, %rax#else movq K, %rax subq KK, %rax#endif movaps POSINV, %xmm15 andq $7, %rax # if (k & 1) BRANCH je .L68 ALIGN_4.L66: mulps %xmm8, %xmm9 mulps 4 * SIZE(BO), %xmm8 addps %xmm9, %xmm0 movaps 8 * SIZE(BO), %xmm9 addps %xmm8, %xmm1 movaps 4 * SIZE(AO), %xmm8 addq $4 * SIZE, AO # aoffset += 4 addq $8 * SIZE, BO # boffset1 += 8 decq %rax jg .L66 ALIGN_4.L68: addps %xmm2, %xmm0 addps %xmm3, %xmm1 shufps $0xb1, %xmm1, %xmm1#if defined(LN) || defined(LT)#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif#else xorps %xmm15, %xmm1#endif addps %xmm1, %xmm0#if defined(LN) || defined(RT) movq KK, %rax#ifdef LN subq $2, %rax#else subq $1, %rax#endif movq AORIG, AO movq BORIG, B leaq BUFFER, BO salq $ZBASE_SHIFT, %rax leaq (AO, %rax, 2), AO leaq (B, %rax, 1), B leaq (BO, %rax, 4), BO#endif#if defined(LN) || defined(LT) movaps %xmm0, %xmm1 unpcklpd %xmm2, %xmm0 unpckhpd %xmm2, %xmm1 movlps 0 * SIZE(B), %xmm2 movlps 2 * SIZE(B), %xmm3 subps %xmm0, %xmm2 subps %xmm1, %xmm3#else movaps 0 * SIZE(AO), %xmm1 subps %xmm0, %xmm1#endif#ifdef LN movaps 4 * SIZE(AO), %xmm8 pshufd $0xee, %xmm8, %xmm9 pshufd $0xbb, %xmm8, %xmm10 pshufd $0xa0, %xmm3, %xmm0 pshufd $0xf5, %xmm3, %xmm3#ifndef CONJ xorps %xmm15, %xmm3#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm3 addps %xmm0, %xmm3 pshufd $0x44, %xmm8, %xmm9 pshufd $0x11, %xmm8, %xmm10 pshufd $0xa0, %xmm3, %xmm0 pshufd $0xf5, %xmm3, %xmm1#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm1 subps %xmm0, %xmm2 subps %xmm1, %xmm2 movaps 0 * SIZE(AO), %xmm8 pshufd $0x44, %xmm8, %xmm9 pshufd $0x11, %xmm8, %xmm10 pshufd $0xa0, %xmm2, %xmm0 pshufd $0xf5, %xmm2, %xmm2#ifndef CONJ xorps %xmm15, %xmm2#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm2 addps %xmm0, %xmm2#endif#ifdef LT movaps 0 * SIZE(AO), %xmm8 pshufd $0x44, %xmm8, %xmm9 pshufd $0x11, %xmm8, %xmm10 pshufd $0xa0, %xmm2, %xmm0 pshufd $0xf5, %xmm2, %xmm2#ifndef CONJ xorps %xmm15, %xmm2#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm2 addps %xmm0, %xmm2 pshufd $0xee, %xmm8, %xmm9 pshufd $0xbb, %xmm8, %xmm10 pshufd $0xa0, %xmm2, %xmm0 pshufd $0xf5, %xmm2, %xmm1#ifndef CONJ xorps %xmm15, %xmm1#else xorps %xmm15, %xmm0#endif mulps %xmm9, %xmm0 mulps %xmm10, %xmm1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -