summaryrefslogtreecommitdiff
path: root/gcc/config/h8300
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-18 22:37:04 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-18 22:37:04 +0000
commitad992f91562532d703b14c6858cbb51753fc0304 (patch)
treedf3888182261c6b0dfec8964816eeb46c41e717b /gcc/config/h8300
parentec708c23eba20e5969f14bff4c69dcab0c7c0dee (diff)
downloadgcc-ad992f91562532d703b14c6858cbb51753fc0304.tar.gz
* config/h8300/h8300.c (notice_update_cc): Use
cc_status.value2. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49850 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/h8300')
-rw-r--r--gcc/config/h8300/h8300.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index eb573f38266..629539d2446 100644
--- a/gcc/config/h8300/h8300.c
+++ b/gcc/config/h8300/h8300.c
@@ -1434,6 +1434,9 @@ notice_update_cc (body, insn)
if (cc_status.value1 != 0
&& reg_overlap_mentioned_p (recog_data.operand[0], cc_status.value1))
cc_status.value1 = 0;
+ if (cc_status.value2 != 0
+ && reg_overlap_mentioned_p (recog_data.operand[0], cc_status.value2))
+ cc_status.value2 = 0;
break;
case CC_SET_ZN:
@@ -1452,6 +1455,8 @@ notice_update_cc (body, insn)
CC_STATUS_INIT;
cc_status.flags |= CC_NO_CARRY;
cc_status.value1 = recog_data.operand[0];
+ if (GET_CODE (body) == SET && REG_P (SET_SRC (body)))
+ cc_status.value2 = SET_SRC (body);
break;
case CC_COMPARE: