From 4ba747128d0cac775faa054a3f81956e5e28482e Mon Sep 17 00:00:00 2001 From: jasonmoxham Date: Thu, 15 Oct 2009 18:21:27 +0000 Subject: [PATCH] change movq to movd for old masm assembler --- mpn/x86_64/k8/rshift.asm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/mpn/x86_64/k8/rshift.asm b/mpn/x86_64/k8/rshift.asm index b5bc5d4b..5ac02a05 100644 --- a/mpn/x86_64/k8/rshift.asm +++ b/mpn/x86_64/k8/rshift.asm @@ -26,10 +26,15 @@ C rax rdi, rsi, rdx ASM_START() PROLOGUE(mpn_rshift) -movq %rcx,%mm0 +C below really a movq +movd %rcx,%mm0 + mov $64,%rax sub %rcx,%rax -movq %rax,%mm1 + +C below really a movq +movd %rax,%mm1 + mov $4,%rcx lea -32(%rsi,%rdx,8),%rsi lea -32(%rdi,%rdx,8),%rdi @@ -37,7 +42,10 @@ sub %rdx,%rcx movq (%rsi,%rcx,8),%mm5 movq %mm5,%mm3 psllq %mm1,%mm5 -movq %mm5,%rax + +C below really a movq +movd %mm5,%rax + psrlq %mm0,%mm3 jge skiplp ALIGN(16)