[patch] i386: Fix comment typos.
Kazu Hirata
kazu@cs.umass.edu
Sun Jan 26 19:59:00 GMT 2003
Hi,
Attached is a patch to fix comment typos. Committed as obvious.
Kazu Hirata
2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
* config/i386/i386-modes.def: Fix comment typos.
* config/i386/i386.c: Likewise.
* config/i386/i386.md: Likewise.
Index: i386-modes.def
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386-modes.def,v
retrieving revision 1.1
diff -u -r1.1 i386-modes.def
--- i386-modes.def 10 Jun 2002 22:35:46 -0000 1.1
+++ i386-modes.def 26 Jan 2003 19:55:20 -0000
@@ -27,11 +27,11 @@
Overflow flag to be unset. Sign bit test is used instead and
thus can be used to form "a&b>0" type of tests.
- Add CCGC to indicate comparisons agains zero that allows
+ Add CCGC to indicate comparisons against zero that allows
unspecified garbage in the Carry flag. This mode is used
by inc/dec instructions.
- Add CCGOC to indicate comparisons agains zero that allows
+ Add CCGOC to indicate comparisons against zero that allows
unspecified garbage in the Carry and Overflow flag. This
mode is used to simulate comparisons of (a-b) and (a+b)
against zero using sub/cmp/add operations.
Index: i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.515
diff -u -r1.515 i386.c
--- i386.c 25 Jan 2003 22:40:32 -0000 1.515
+++ i386.c 26 Jan 2003 19:55:26 -0000
@@ -8465,7 +8465,7 @@
return CCGCmode;
/* Codes doable only with sign flag when comparing
against zero, but we miss jump instruction for it
- so we need to use relational tests agains overflow
+ so we need to use relational tests against overflow
that thus needs to be zero. */
case GT: /* ZF=0 & SF=OF */
case LE: /* ZF=1 | SF<>OF */
@@ -10765,7 +10765,7 @@
handle small counts using the loops. Many CPUs (such as Athlon)
have large REP prefix setup costs.
- This is quite costy. Maybe we can revisit this decision later or
+ This is quite costly. Maybe we can revisit this decision later or
add some customizability to this code. */
if (count == 0 && align < desired_alignment)
Index: i386.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.md,v
retrieving revision 1.414
diff -u -r1.414 i386.md
--- i386.md 25 Jan 2003 15:00:51 -0000 1.414
+++ i386.md 26 Jan 2003 19:55:31 -0000
@@ -5867,7 +5867,7 @@
(const_string "alu")))
(set_attr "mode" "SI")])
-; For comparisons agains 1, -1 and 128, we may generate better code
+; For comparisons against 1, -1 and 128, we may generate better code
; by converting cmp to add, inc or dec as done by peephole2. This pattern
; is matched then. We can't accept general immediate, because for
; case of overflows, the result is messed up.
More information about the Gcc-patches
mailing list