From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7814) id 1F0E03858407; Thu, 4 Aug 2022 21:06:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F0E03858407 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Fangrui Song To: glibc-cvs@sourceware.org Subject: [glibc] i386: Replace movzx with movzbl X-Act-Checkin: glibc X-Git-Author: Fangrui Song X-Git-Refname: refs/heads/master X-Git-Oldrev: ed0185e4129130cbe081c221efb758fb400623ce X-Git-Newrev: 525ca33a61edd733e8ad8c0456f8f811adc2ccb9 Message-Id: <20220804210652.1F0E03858407@sourceware.org> Date: Thu, 4 Aug 2022 21:06:52 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2022 21:06:52 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=525ca33a61edd733e8ad8c0456f8f811adc2ccb9 commit 525ca33a61edd733e8ad8c0456f8f811adc2ccb9 Author: Fangrui Song Date: Thu Aug 4 14:06:50 2022 -0700 i386: Replace movzx with movzbl Similar to 6720d36b6623c5e48c070d86acf61198b33e144e for x86-64. Clang cannot assemble movzx in the AT&T dialect mode. Change movzx to movzbl, which follows the AT&T dialect and is used elsewhere in the file. Diff: --- sysdeps/i386/i686/multiarch/strcmp-ssse3.S | 36 +++++++++++++++--------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/sysdeps/i386/i686/multiarch/strcmp-ssse3.S b/sysdeps/i386/i686/multiarch/strcmp-ssse3.S index ac5096f68d..3435691f23 100644 --- a/sysdeps/i386/i686/multiarch/strcmp-ssse3.S +++ b/sysdeps/i386/i686/multiarch/strcmp-ssse3.S @@ -2141,8 +2141,8 @@ L(less16bytes): jbe L(eq) #endif - movzx 7(%eax), %ecx - movzx 7(%edx), %eax + movzbl 7(%eax), %ecx + movzbl 7(%edx), %eax #if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L # ifdef PIC movl _nl_C_LC_CTYPE_tolower@GOTOFF+128*4(%ebx,%ecx,4), %ecx @@ -2161,8 +2161,8 @@ L(Byte0): cmp $0, REM jbe L(eq) #endif - movzx (%eax), %ecx - movzx (%edx), %eax + movzbl (%eax), %ecx + movzbl (%edx), %eax #if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L # ifdef PIC @@ -2182,8 +2182,8 @@ L(Byte1): cmp $1, REM jbe L(eq) #endif - movzx 1(%eax), %ecx - movzx 1(%edx), %eax + movzbl 1(%eax), %ecx + movzbl 1(%edx), %eax #if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L # ifdef PIC @@ -2203,8 +2203,8 @@ L(Byte2): cmp $2, REM jbe L(eq) #endif - movzx 2(%eax), %ecx - movzx 2(%edx), %eax + movzbl 2(%eax), %ecx + movzbl 2(%edx), %eax #if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L # ifdef PIC @@ -2224,8 +2224,8 @@ L(Byte3): cmp $3, REM jbe L(eq) #endif - movzx 3(%eax), %ecx - movzx 3(%edx), %eax + movzbl 3(%eax), %ecx + movzbl 3(%edx), %eax #if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L # ifdef PIC @@ -2245,8 +2245,8 @@ L(Byte4): cmp $4, REM jbe L(eq) #endif - movzx 4(%eax), %ecx - movzx 4(%edx), %eax + movzbl 4(%eax), %ecx + movzbl 4(%edx), %eax #if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L # ifdef PIC @@ -2266,8 +2266,8 @@ L(Byte5): cmp $5, REM jbe L(eq) #endif - movzx 5(%eax), %ecx - movzx 5(%edx), %eax + movzbl 5(%eax), %ecx + movzbl 5(%edx), %eax #if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L # ifdef PIC @@ -2287,8 +2287,8 @@ L(Byte6): cmp $6, REM jbe L(eq) #endif - movzx 6(%eax), %ecx - movzx 6(%edx), %eax + movzbl 6(%eax), %ecx + movzbl 6(%edx), %eax #if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L # ifdef PIC @@ -2337,8 +2337,8 @@ L(2next_8_bytes): cmp $7, REM jbe L(eq) #endif - movzx 7(%eax), %ecx - movzx 7(%edx), %eax + movzbl 7(%eax), %ecx + movzbl 7(%edx), %eax #if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L # ifdef PIC