combine.c (make_extraction): Fix rtx_cost comparison to match the comment.
authorJan Hubicka <jh@suse.cz>
Mon, 4 Sep 2000 10:18:31 +0000 (12:18 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 4 Sep 2000 10:18:31 +0000 (10:18 +0000)
* combine.c (make_extraction): Fix rtx_cost comparison to
match the comment.

From-SVN: r36131

gcc/ChangeLog
gcc/combine.c

index 2e23d6ed45b3ae3716ff3dc494accbc41801ee6b..04a7af74de8e031b238f13c4e1ec6dfe17659325 100644 (file)
@@ -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,
index df5314b9b6750f808bf445cc1f22b4bd3eee0cbe..56bedce3b3b1ea2c34de194e60d9266ed35140a7 100644 (file)
@@ -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;