From 4aae8a9a4b76096ecedba3b01161ba4e86d154be Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 26 Jan 2003 19:59:27 +0000 Subject: [PATCH] i386-modes.def: Fix comment typos. * config/i386/i386-modes.def: Fix comment typos. * config/i386/i386.c: Likewise. * config/i386/i386.md: Likewise. From-SVN: r61855 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/i386-modes.def | 4 ++-- gcc/config/i386/i386.c | 4 ++-- gcc/config/i386/i386.md | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6960af9..77b21d8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-01-26 Kazu Hirata + + * config/i386/i386-modes.def: Fix comment typos. + * config/i386/i386.c: Likewise. + * config/i386/i386.md: Likewise. + 2003-01-26 Steven Bosscher * config/avr/avr.h, config/cris/aout.h, config/elfos.h, diff --git a/gcc/config/i386/i386-modes.def b/gcc/config/i386/i386-modes.def index 5ef800f..fd0f03d 100644 --- a/gcc/config/i386/i386-modes.def +++ b/gcc/config/i386/i386-modes.def @@ -27,11 +27,11 @@ Boston, MA 02111-1307, USA. */ 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. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index c26cc50..d963667 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -8465,7 +8465,7 @@ ix86_cc_mode (code, op0, op1) 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 @@ ix86_expand_movstr (dst, src, count_exp, align_exp) 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) diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 02874dc..b17579f 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -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. -- 2.7.4