aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2000-09-04 12:18:31 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2000-09-04 10:18:31 +0000
commit25ffb1f653a39c0390d82aac0e30610c6dddb431 (patch)
treecbff44784b8658bef6c8627385f70b7b04cc27cc /gcc
parente0cb4f36521e971561ddf6e7f33eba495120bae2 (diff)
downloadgcc-25ffb1f653a39c0390d82aac0e30610c6dddb431.zip
gcc-25ffb1f653a39c0390d82aac0e30610c6dddb431.tar.gz
gcc-25ffb1f653a39c0390d82aac0e30610c6dddb431.tar.bz2
combine.c (make_extraction): Fix rtx_cost comparison to match the comment.
* combine.c (make_extraction): Fix rtx_cost comparison to match the comment. From-SVN: r36131
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog11
-rw-r--r--gcc/combine.c4
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;