Re: PR82547: Undetected overflow for UNSIGNED wide_ints

2017-11-22 Thread Richard Biener
On Wed, Nov 22, 2017 at 10:33 AM, Richard Sandiford wrote: > wi::add_large and wi::sub_large weren't setting the overflow bit > correctly for unsigned operations if the result needed fewer HWIs > than the precision. > > Tested on aarch64-linux-gnu, x86_64-linux-gnu and powerpc64le-linux-gnu. > OK

PR82547: Undetected overflow for UNSIGNED wide_ints

2017-11-22 Thread Richard Sandiford
wi::add_large and wi::sub_large weren't setting the overflow bit correctly for unsigned operations if the result needed fewer HWIs than the precision. Tested on aarch64-linux-gnu, x86_64-linux-gnu and powerpc64le-linux-gnu. OK to install? Richard 2017-11-21 Richard Sandiford gcc/ PR