diff options
| -rw-r--r-- | gcc/ChangeLog | 11 | ||||
| -rw-r--r-- | gcc/combine.c | 4 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2e23d6e..04a7af7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +Wed Jan 1 00:23:59 MET 1997 Jan Hubicka <jh@suse.cz> + + * combine.c (make_extraction): Fix rtx_cost comparison to + match the comment. + +Wed Jan 1 00:17:32 MET 1997 Jan Hubicka <jh@suse.cz> + + * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf, + umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1): + Add '*' to insn pattern name. + 2000-09-04 Jakub Jelinek <jakub@redhat.com> * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context, diff --git a/gcc/combine.c b/gcc/combine.c index df5314b..56bedce3 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -6002,7 +6002,7 @@ make_extraction (mode, inner, pos, pos_rtx, len, /* Prefer ZERO_EXTENSION, since it gives more information to backends. */ - if (rtx_cost (temp, SET) < rtx_cost (temp1, SET)) + if (rtx_cost (temp, SET) <= rtx_cost (temp1, SET)) return temp; return temp1; } @@ -6218,7 +6218,7 @@ make_extraction (mode, inner, pos, pos_rtx, len, { rtx temp1 = gen_rtx_SIGN_EXTEND (pos_mode, pos_rtx); - /* Preffer ZERO_EXTENSION, since it gives more information to + /* Prefer ZERO_EXTENSION, since it gives more information to backends. */ if (rtx_cost (temp1, SET) < rtx_cost (temp, SET)) temp = temp1; |
