From 25ffb1f653a39c0390d82aac0e30610c6dddb431 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 4 Sep 2000 12:18:31 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 11 +++++++++++ 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 + + * combine.c (make_extraction): Fix rtx_cost comparison to + match the comment. + +Wed Jan 1 00:17:32 MET 1997 Jan Hubicka + + * 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 * 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; -- 2.30.2