From: Ulrich Drepper Date: Fri, 1 Oct 1999 16:00:37 +0000 (+0000) Subject: Correct assembler commands to fix warnings. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b276e345bcf5fd153acb9a2aee2c33726476db1f;p=thirdparty%2Fglibc.git Correct assembler commands to fix warnings. --- diff --git a/sysdeps/i386/lshift.S b/sysdeps/i386/lshift.S index c427ff02621..737ce3ed2be 100644 --- a/sysdeps/i386/lshift.S +++ b/sysdeps/i386/lshift.S @@ -1,5 +1,5 @@ /* i80386 __mpn_lshift -- - Copyright (C) 1992, 1994, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1992, 1994, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU MP Library. The GNU MP Library is free software; you can redistribute it and/or modify @@ -47,7 +47,7 @@ ENTRY(__mpn_lshift) decl %edx jz L(end) pushl %eax /* push carry limb onto stack */ - testb $1,%edx + testb $1,%dl jnz L(1) /* enter loop in the middle */ movl %ebx,%eax diff --git a/sysdeps/i386/rshift.S b/sysdeps/i386/rshift.S index af8c64777b5..0bb7288d31e 100644 --- a/sysdeps/i386/rshift.S +++ b/sysdeps/i386/rshift.S @@ -1,5 +1,5 @@ /* i80386 __mpn_rshift -- - Copyright (C) 1992, 1994, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1992, 1994, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU MP Library. The GNU MP Library is free software; you can redistribute it and/or modify @@ -49,7 +49,7 @@ ENTRY(__mpn_rshift) incl %edx jz L(end) pushl %eax /* push carry limb onto stack */ - testb $1,%edx + testb $1,%dl jnz L(1) /* enter loop in the middle */ movl %ebx,%eax diff --git a/sysdeps/i386/strchr.S b/sysdeps/i386/strchr.S index 69c4b145af5..582c3d737a5 100644 --- a/sysdeps/i386/strchr.S +++ b/sysdeps/i386/strchr.S @@ -1,6 +1,6 @@ /* strchr (str, ch) -- Return pointer to first occurrence of CH in STR. For Intel 80x86, x>=3. - Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper Some optimisations by Alan Modra @@ -56,7 +56,7 @@ ENTRY (strchr) implementation (this is because all processor inherent boundaries are multiples of 4. */ - testb $3, %eax /* correctly aligned ? */ + testb $3, %al /* correctly aligned ? */ jz L(11) /* yes => begin loop */ movb (%eax), %cl /* load byte in question (we need it twice) */ cmpb %cl, %dl /* compare byte */ @@ -65,7 +65,7 @@ ENTRY (strchr) jz L(2) /* yes => return NULL */ incl %eax /* increment pointer */ - testb $3, %eax /* correctly aligned ? */ + testb $3, %al /* correctly aligned ? */ jz L(11) /* yes => begin loop */ movb (%eax), %cl /* load byte in question (we need it twice) */ cmpb %cl, %dl /* compare byte */ @@ -74,7 +74,7 @@ ENTRY (strchr) jz L(2) /* yes => return NULL */ incl %eax /* increment pointer */ - testb $3, %eax /* correctly aligned ? */ + testb $3, %al /* correctly aligned ? */ jz L(11) /* yes => begin loop */ movb (%eax), %cl /* load byte in question (we need it twice) */ cmpb %cl, %dl /* compare byte */ diff --git a/sysdeps/i386/strchrnul.S b/sysdeps/i386/strchrnul.S index b99a439587d..f42a69728c7 100644 --- a/sysdeps/i386/strchrnul.S +++ b/sysdeps/i386/strchrnul.S @@ -57,7 +57,7 @@ ENTRY (__strchrnul) implementation (this is because all processor inherent boundaries are multiples of 4. */ - testb $3, %eax /* correctly aligned ? */ + testb $3, %al /* correctly aligned ? */ jz L(11) /* yes => begin loop */ movb (%eax), %cl /* load byte in question (we need it twice) */ cmpb %cl, %dl /* compare byte */ @@ -66,7 +66,7 @@ ENTRY (__strchrnul) jz L(6) /* yes => return NULL */ incl %eax /* increment pointer */ - testb $3, %eax /* correctly aligned ? */ + testb $3, %al /* correctly aligned ? */ jz L(11) /* yes => begin loop */ movb (%eax), %cl /* load byte in question (we need it twice) */ cmpb %cl, %dl /* compare byte */ @@ -75,7 +75,7 @@ ENTRY (__strchrnul) jz L(6) /* yes => return NULL */ incl %eax /* increment pointer */ - testb $3, %eax /* correctly aligned ? */ + testb $3, %al /* correctly aligned ? */ jz L(11) /* yes => begin loop */ movb (%eax), %cl /* load byte in question (we need it twice) */ cmpb %cl, %dl /* compare byte */