(notice_update_cc): Clear cc_status if it references a mem we are modifying.

From-SVN: r11643
This commit is contained in:
Stan Cox 1996-03-29 19:27:45 +00:00
parent 6752b7d4dd
commit 0a78e86253

View File

@ -2922,9 +2922,11 @@ notice_update_cc (exp)
&& (REG_P (SET_SRC (exp))
|| GET_RTX_CLASS (GET_CODE (SET_SRC (exp))) == '<'))
{
if (cc_status.value1 && GET_CODE (cc_status.value1) == MEM)
if (cc_status.value1 && GET_CODE (cc_status.value1) == MEM
|| reg_mentioned_p (SET_DEST (exp), cc_status.value1))
cc_status.value1 = 0;
if (cc_status.value2 && GET_CODE (cc_status.value2) == MEM)
if (cc_status.value2 && GET_CODE (cc_status.value2) == MEM
|| reg_mentioned_p (SET_DEST (exp), cc_status.value2))
cc_status.value2 = 0;
return;
}