From 5ae5999cfe054bd1840277903b2aed4e905c2236 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 12 Apr 1996 17:49:19 -0600 Subject: [PATCH] h8300.c (const_costs): -4 and 4 are cheap on the h8300h. * h8300/h8300.c (const_costs): -4 and 4 are cheap on the h8300h. (notice_update_cc): Remove references to "value2" field. From-SVN: r11709 --- gcc/config/h8300/h8300.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 2d8fc53c18f..f07d5718533 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -67,7 +67,6 @@ static char *names_upper_extended[] = char **h8_reg_names; /* Various operations needed by the following, indexed by CPU_TYPE. */ -/* ??? The h8/300 assembler doesn't understand pop.w (yet). */ static char *h8_push_ops[2] = {"push", "push.l"}; @@ -687,6 +686,12 @@ const_costs (r, c) case -1: case -2: return 0; + case 4: + case -4: + if (TARGET_H8300H) + return 0; + else + return 1; default: return 1; } @@ -1277,10 +1282,6 @@ notice_update_cc (body, insn) if (cc_status.value1 != 0 && reg_overlap_mentioned_p (recog_operand[0], cc_status.value1)) cc_status.value1 = 0; - /* ??? Is value2 ever set?. */ - if (cc_status.value2 != 0 - && reg_overlap_mentioned_p (recog_operand[0], cc_status.value2)) - cc_status.value2 = 0; break; case CC_SET: