From ca419225a3c4f9f341eddf582b201211d1bf2aec Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 15 Jul 2009 17:59:14 -0700 Subject: Fix thinko in AVX audit patch. Don't use AVX instructions too often. --- sysdeps/x86_64/dl-trampoline.S | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'sysdeps/x86_64') diff --git a/sysdeps/x86_64/dl-trampoline.S b/sysdeps/x86_64/dl-trampoline.S index d09001b..7f20491 100644 --- a/sysdeps/x86_64/dl-trampoline.S +++ b/sysdeps/x86_64/dl-trampoline.S @@ -249,17 +249,7 @@ L(no_avx1): jmp 1f L(no_avx2): - vmovdqa (LR_XMM_OFFSET)(%rsp), %xmm0 - vmovdqa (LR_XMM_OFFSET + XMM_SIZE)(%rsp), %xmm1 - vmovdqa (LR_XMM_OFFSET + XMM_SIZE*2)(%rsp), %xmm2 - vmovdqa (LR_XMM_OFFSET + XMM_SIZE*3)(%rsp), %xmm3 - vmovdqa (LR_XMM_OFFSET + XMM_SIZE*4)(%rsp), %xmm4 - vmovdqa (LR_XMM_OFFSET + XMM_SIZE*5)(%rsp), %xmm5 - vmovdqa (LR_XMM_OFFSET + XMM_SIZE*6)(%rsp), %xmm6 - vmovdqa (LR_XMM_OFFSET + XMM_SIZE*7)(%rsp), %xmm7 - -1: -# else +# endif movaps (LR_XMM_OFFSET)(%rsp), %xmm0 movaps (LR_XMM_OFFSET + XMM_SIZE)(%rsp), %xmm1 movaps (LR_XMM_OFFSET + XMM_SIZE*2)(%rsp), %xmm2 @@ -268,9 +258,8 @@ L(no_avx2): movaps (LR_XMM_OFFSET + XMM_SIZE*5)(%rsp), %xmm5 movaps (LR_XMM_OFFSET + XMM_SIZE*6)(%rsp), %xmm6 movaps (LR_XMM_OFFSET + XMM_SIZE*7)(%rsp), %xmm7 -# endif - movq 16(%rbx), %r10 # Anything in framesize? +1: movq 16(%rbx), %r10 # Anything in framesize? testq %r10, %r10 jns 3f @@ -390,16 +379,11 @@ L(no_avx3): jmp 1f L(no_avx4): - vmovdqa LRV_XMM0_OFFSET(%rsp), %xmm0 - vmovdqa LRV_XMM1_OFFSET(%rsp), %xmm1 - -1: -# else +# endif movaps LRV_XMM0_OFFSET(%rsp), %xmm0 movaps LRV_XMM1_OFFSET(%rsp), %xmm1 -# endif - fldt LRV_ST1_OFFSET(%rsp) +1: fldt LRV_ST1_OFFSET(%rsp) fldt LRV_ST0_OFFSET(%rsp) movq %rbx, %rsp -- cgit v1.1