[Patch] Bfin: Ensure rotrsi and rotlsi don't accept non-const INTVALS

Richard Henderson rth@redhat.com
Wed Mar 30 17:32:00 GMT 2011


On 03/29/2011 08:49 AM, Henderson, Stuart wrote:
>  		     (match_operand:SI 2 "immediate_operand" "")))]
>    ""
>  {
> -  if (INTVAL (operands[2]) != 16)
> +  if (GET_CODE (operands[2]) != CONST_INT || INTVAL (operands[2]) != 16)
>      FAIL;

Perhaps use const_int_operand instead of immediate_operand.


r~



More information about the Gcc-patches mailing list