diff options
| author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-04 10:18:31 +0000 |
|---|---|---|
| committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-04 10:18:31 +0000 |
| commit | 0032d72bee4c26ef6cdbca5f3fdbff968512a7f0 (patch) | |
| tree | cbff44784b8658bef6c8627385f70b7b04cc27cc | |
| parent | 9008da1643116cb7ac439fb352a9c58709d7cf6f (diff) | |
| download | ppe42-gcc-0032d72bee4c26ef6cdbca5f3fdbff968512a7f0.tar.gz ppe42-gcc-0032d72bee4c26ef6cdbca5f3fdbff968512a7f0.zip | |
* combine.c (make_extraction): Fix rtx_cost comparison to
match the comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36131 138bc75d-0d04-0410-961f-82ee72b054a4
| -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 2e23d6ed45b..04a7af74de8 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 df5314b9b67..56bedce3b3b 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; |

