From fb096fff7815c18c9062928960dff0250bdc8d0b Mon Sep 17 00:00:00 2001 From: DRC Date: Mon, 19 Apr 2010 18:58:07 +0000 Subject: [PATCH] Only have to use 32-bit mov for r14, since it is populated from the stack git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@171 632fc199-4ca6-4c93-a231-07263d6284db --- simd/jcclrss2-64.asm | 4 ++-- simd/jcqnts2f-64.asm | 2 +- simd/jcqnts2i-64.asm | 2 +- simd/jcsamss2-64.asm | 16 ++++++++-------- simd/jdclrss2-64.asm | 4 ++-- simd/jdmrgss2-64.asm | 8 ++++---- simd/jdsamss2-64.asm | 16 ++++++++-------- simd/jiss2flt-64.asm | 2 +- simd/jiss2fst-64.asm | 2 +- simd/jiss2int-64.asm | 2 +- simd/jiss2red-64.asm | 4 ++-- 11 files changed, 31 insertions(+), 31 deletions(-) diff --git a/simd/jcclrss2-64.asm b/simd/jcclrss2-64.asm index 6e33163..900d9a6 100644 --- a/simd/jcclrss2-64.asm +++ b/simd/jcclrss2-64.asm @@ -52,14 +52,14 @@ EXTN(jsimd_rgb_ycc_convert_sse2): collect_args push rbx - mov ecx, r10d + mov rcx, r10 test rcx,rcx jz near .return push rcx mov rsi, r12 - mov ecx, r13d + mov rcx, r13 mov rdi, JSAMPARRAY [rsi+0*SIZEOF_JSAMPARRAY] mov rbx, JSAMPARRAY [rsi+1*SIZEOF_JSAMPARRAY] mov rdx, JSAMPARRAY [rsi+2*SIZEOF_JSAMPARRAY] diff --git a/simd/jcqnts2f-64.asm b/simd/jcqnts2f-64.asm index 3dbcebb..6d8a123 100644 --- a/simd/jcqnts2f-64.asm +++ b/simd/jcqnts2f-64.asm @@ -50,7 +50,7 @@ EXTN(jsimd_convsamp_float_sse2): packsswb xmm7,xmm7 ; xmm7 = PB_CENTERJSAMPLE (0x808080..) mov rsi, r10 - mov eax, r11d + mov rax, r11 mov rdi, r12 mov rcx, DCTSIZE/2 .convloop: diff --git a/simd/jcqnts2i-64.asm b/simd/jcqnts2i-64.asm index 1d1c6af..419c593 100644 --- a/simd/jcqnts2i-64.asm +++ b/simd/jcqnts2i-64.asm @@ -50,7 +50,7 @@ EXTN(jsimd_convsamp_sse2): psllw xmm7,7 ; xmm7={0xFF80 0xFF80 0xFF80 0xFF80 ..} mov rsi, r10 - mov eax, r11d + mov rax, r11 mov rdi, r12 mov rcx, DCTSIZE/4 .convloop: diff --git a/simd/jcsamss2-64.asm b/simd/jcsamss2-64.asm index 2318375..502d225 100644 --- a/simd/jcsamss2-64.asm +++ b/simd/jcsamss2-64.asm @@ -49,11 +49,11 @@ EXTN(jsimd_h2v1_downsample_sse2): mov rbp,rsp collect_args - mov ecx, r13d + mov rcx, r13 shl rcx,3 ; imul rcx,DCTSIZE (rcx = output_cols) jz near .return - mov edx, r10d + mov rdx, r10 ; -- expand_right_edge @@ -62,7 +62,7 @@ EXTN(jsimd_h2v1_downsample_sse2): sub rcx,rdx jle short .expand_end - mov eax, r11d + mov rax, r11 test rax,rax jle short .expand_end @@ -90,7 +90,7 @@ EXTN(jsimd_h2v1_downsample_sse2): ; -- h2v1_downsample - mov eax, r12d ; rowctr + mov rax, r12 ; rowctr test eax,eax jle near .return @@ -193,11 +193,11 @@ EXTN(jsimd_h2v2_downsample_sse2): mov rbp,rsp collect_args - mov ecx, r13d + mov rcx, r13 shl rcx,3 ; imul rcx,DCTSIZE (rcx = output_cols) jz near .return - mov edx, r10d + mov rdx, r10 ; -- expand_right_edge @@ -206,7 +206,7 @@ EXTN(jsimd_h2v2_downsample_sse2): sub rcx,rdx jle short .expand_end - mov eax, r11d + mov rax, r11 test rax,rax jle short .expand_end @@ -234,7 +234,7 @@ EXTN(jsimd_h2v2_downsample_sse2): ; -- h2v2_downsample - mov eax, r12d ; rowctr + mov rax, r12 ; rowctr test rax,rax jle near .return diff --git a/simd/jdclrss2-64.asm b/simd/jdclrss2-64.asm index 52421ba..4563a7a 100644 --- a/simd/jdclrss2-64.asm +++ b/simd/jdclrss2-64.asm @@ -54,14 +54,14 @@ EXTN(jsimd_ycc_rgb_convert_sse2): collect_args push rbx - mov ecx, r10d ; num_cols + mov rcx, r10 ; num_cols test rcx,rcx jz near .return push rcx mov rdi, r11 - mov ecx, r12d + mov rcx, r12 mov rsi, JSAMPARRAY [rdi+0*SIZEOF_JSAMPARRAY] mov rbx, JSAMPARRAY [rdi+1*SIZEOF_JSAMPARRAY] mov rdx, JSAMPARRAY [rdi+2*SIZEOF_JSAMPARRAY] diff --git a/simd/jdmrgss2-64.asm b/simd/jdmrgss2-64.asm index 38c842e..c51c91b 100644 --- a/simd/jdmrgss2-64.asm +++ b/simd/jdmrgss2-64.asm @@ -54,14 +54,14 @@ EXTN(jsimd_h2v1_merged_upsample_sse2): collect_args push rbx - mov ecx, r10d ; col + mov rcx, r10 ; col test rcx,rcx jz near .return push rcx mov rdi, r11 - mov ecx, r12d + mov rcx, r12 mov rsi, JSAMPARRAY [rdi+0*SIZEOF_JSAMPARRAY] mov rbx, JSAMPARRAY [rdi+1*SIZEOF_JSAMPARRAY] mov rdx, JSAMPARRAY [rdi+2*SIZEOF_JSAMPARRAY] @@ -501,10 +501,10 @@ EXTN(jsimd_h2v2_merged_upsample_sse2): collect_args push rbx - mov eax, r10d + mov rax, r10 mov rdi, r11 - mov ecx, r12d + mov rcx, r12 mov rsi, JSAMPARRAY [rdi+0*SIZEOF_JSAMPARRAY] mov rbx, JSAMPARRAY [rdi+1*SIZEOF_JSAMPARRAY] mov rdx, JSAMPARRAY [rdi+2*SIZEOF_JSAMPARRAY] diff --git a/simd/jdsamss2-64.asm b/simd/jdsamss2-64.asm index 8c69fe7..f9c61fc 100644 --- a/simd/jdsamss2-64.asm +++ b/simd/jdsamss2-64.asm @@ -67,11 +67,11 @@ EXTN(jsimd_h2v1_fancy_upsample_sse2): mov rbp,rsp collect_args - mov eax, r11d ; colctr + mov rax, r11 ; colctr test rax,rax jz near .return - mov ecx, r10d ; rowctr + mov rcx, r10 ; rowctr test rcx,rcx jz near .return @@ -214,11 +214,11 @@ EXTN(jsimd_h2v2_fancy_upsample_sse2): collect_args push rbx - mov eax, r11d ; colctr + mov rax, r11 ; colctr test rax,rax jz near .return - mov ecx, r10d ; rowctr + mov rcx, r10 ; rowctr test rcx,rcx jz near .return @@ -506,12 +506,12 @@ EXTN(jsimd_h2v1_upsample_sse2): mov rbp,rsp collect_args - mov edx, r11d + mov rdx, r11 add rdx, byte (2*SIZEOF_XMMWORD)-1 and rdx, byte -(2*SIZEOF_XMMWORD) jz near .return - mov ecx, r10d ; rowctr + mov rcx, r10 ; rowctr test rcx,rcx jz short .return @@ -596,12 +596,12 @@ EXTN(jsimd_h2v2_upsample_sse2): collect_args push rbx - mov edx, r11d + mov rdx, r11 add rdx, byte (2*SIZEOF_XMMWORD)-1 and rdx, byte -(2*SIZEOF_XMMWORD) jz near .return - mov ecx, r10d ; rowctr + mov rcx, r10 ; rowctr test rcx,rcx jz near .return diff --git a/simd/jiss2flt-64.asm b/simd/jiss2flt-64.asm index 1cd51a8..3db52ee 100644 --- a/simd/jiss2flt-64.asm +++ b/simd/jiss2flt-64.asm @@ -326,7 +326,7 @@ EXTN(jsimd_idct_float_sse2): mov rax, [original_rbp] lea rsi, [workspace] ; FAST_FLOAT * wsptr mov rdi, r12 ; (JSAMPROW *) - mov eax, r13d + mov rax, r13 mov rcx, DCTSIZE/4 ; ctr .rowloop: diff --git a/simd/jiss2fst-64.asm b/simd/jiss2fst-64.asm index 5056313..9e56a2c 100644 --- a/simd/jiss2fst-64.asm +++ b/simd/jiss2fst-64.asm @@ -323,7 +323,7 @@ EXTN(jsimd_idct_ifast_sse2): mov rax, [original_rbp] mov rdi, r12 ; (JSAMPROW *) - mov eax, r13d + mov rax, r13 ; -- Even part diff --git a/simd/jiss2int-64.asm b/simd/jiss2int-64.asm index 54fed6a..82da0a7 100644 --- a/simd/jiss2int-64.asm +++ b/simd/jiss2int-64.asm @@ -515,7 +515,7 @@ EXTN(jsimd_idct_islow_sse2): mov rax, [original_rbp] mov rdi, r12 ; (JSAMPROW *) - mov eax, r13d + mov rax, r13 ; -- Even part diff --git a/simd/jiss2red-64.asm b/simd/jiss2red-64.asm index 0121aea..f390367 100644 --- a/simd/jiss2red-64.asm +++ b/simd/jiss2red-64.asm @@ -312,7 +312,7 @@ EXTN(jsimd_idct_4x4_sse2): mov rax, [original_rbp] mov rdi, r12 ; (JSAMPROW *) - mov eax, r13d + mov rax, r13 ; -- Even part @@ -521,7 +521,7 @@ EXTN(jsimd_idct_2x2_sse2): ; ---- Pass 2: process rows, store into output array. mov rdi, r12 ; (JSAMPROW *) - mov eax, r13d + mov rax, r13 ; | input:| result:| ; | A0 B0 | | -- 2.40.0