On 11/30/18 1:44 PM, Jakub Jelinek wrote:
> Hi!
>
> The following patch makes sure that we don't use weird integral types
> (either ones which have smaller precision than corresponding mode's
> precision, or ones like C++ -fstrict-enum enumeral types which have
> normal precision, but smaller TYPE_MAX_VALUE or larger TYPE_MIN_VALUE),
> because the constants could be outside of the range of those types.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2018-11-30 Jakub Jelinek <ja...@redhat.com>
>
> PR tree-optimization/88274
> * tree-ssa-reassoc.c (optimize_range_tests_xor,
> optimize_range_tests_diff): If type has smaller precision than
> corresponding mode or if it has non-standard min/max, compute
> everything in a standard type for the precision.
OK
jeff