[PATCH] Avoid ICE in convert_modes (regression from 3.0.x)

Richard Henderson rth@redhat.com
Tue Mar 12 15:59:00 GMT 2002


On Sat, Mar 09, 2002 at 11:38:44PM +0100, Jakub Jelinek wrote:
>  	  && GET_MODE_CLASS (mode) != MODE_CC
> -	  && GET_MODE_CLASS (GET_MODE (dest_reg)) != MODE_CC)
> +	  && GET_MODE_CLASS (GET_MODE (dest_reg)) != MODE_CC
> +	  && ((GET_MODE_CLASS (mode) == MODE_FLOAT)
> +	      == (GET_MODE_CLASS (GET_MODE (dest_reg)) == MODE_FLOAT)))

Perhaps better as

	GET_MODE_CLASS (mode) == GET_MODE_CLASS (GET_MODE (dest_reg))
	&& GET_MODE_CLASS (mode) != MODE_CC

?

Otherwise, I like this patch a bit better than Ulrich's.


r~



More information about the Gcc-patches mailing list