Commit 9c8c5afb by John Wehle Committed by Jeff Law

i386.c (notice_update_cc): Integer conditional moves don't affect cc0.

	* i386.c (notice_update_cc): Integer conditional moves don't
	affect cc0.

From-SVN: r20575
parent bbe8497f
Fri Jun 19 02:10:10 1998 John Wehle (john@feith.com) Fri Jun 19 02:10:10 1998 John Wehle (john@feith.com)
* i386.c (notice_update_cc): Integer conditional moves don't
affect cc0.
* i386.md (movsfcc, movdfcc, movxfcc): Use emit_store_flag * i386.md (movsfcc, movdfcc, movxfcc): Use emit_store_flag
to support LT, LE, GE, and GT signed integer comparisons. to support LT, LE, GE, and GT signed integer comparisons.
(movsfcc+1, movsfcc+2, movdfcc+1, movdfcc+2, (movsfcc+1, movsfcc+2, movdfcc+1, movdfcc+2,
......
...@@ -3596,7 +3596,9 @@ notice_update_cc (exp) ...@@ -3596,7 +3596,9 @@ notice_update_cc (exp)
(Note that moving a constant 0 or 1 MAY set the cc's). */ (Note that moving a constant 0 or 1 MAY set the cc's). */
if (REG_P (SET_DEST (exp)) if (REG_P (SET_DEST (exp))
&& (REG_P (SET_SRC (exp)) || GET_CODE (SET_SRC (exp)) == MEM && (REG_P (SET_SRC (exp)) || GET_CODE (SET_SRC (exp)) == MEM
|| GET_RTX_CLASS (GET_CODE (SET_SRC (exp))) == '<')) || GET_RTX_CLASS (GET_CODE (SET_SRC (exp))) == '<'
|| (GET_CODE (SET_SRC (exp)) == IF_THEN_ELSE
&& GET_MODE_CLASS (GET_MODE (SET_DEST (exp))) == MODE_INT)))
{ {
if (cc_status.value1 if (cc_status.value1
&& reg_overlap_mentioned_p (SET_DEST (exp), cc_status.value1)) && reg_overlap_mentioned_p (SET_DEST (exp), cc_status.value1))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment