Tamar Christina <tamar.christ...@arm.com> writes:
>    /* We can't do anything smart if the amount to copy is not constant.  */
>    if (!CONST_INT_P (operands[2]))
>      return false;
> 
> -  n = INTVAL (operands[2]);
> +  /* This may get truncated but that's fine as it would be above our maximum
> +     memset inline limit.  */
> +  unsigned tmp = INTVAL (operands[2]);

That's not true for (1ULL << 32) + 1 for example, since the truncated
value will come under the limit.  I think we should just do:

  unsigned HOST_WIDE_INT tmp = UINTVAL (operands[2]);

without a comment.

Thanks,
Richard

Reply via email to