Re: calculate overflow type in wide int arithmetic

2018-07-09 Thread Aldy Hernandez
On 07/09/2018 07:16 AM, Rainer Orth wrote: and several more. This seems to be the only backend that uses the additional bool * argument to wi::neg etc. Fixed as follows, bootstrapped on sparc-sun-solaris2.11. Thanks. Sorry for the oversight. Aldy

Re: calculate overflow type in wide int arithmetic

2018-07-09 Thread Richard Biener
On July 9, 2018 1:16:59 PM GMT+02:00, Rainer Orth wrote: >Hi Aldy, > >> On 07/05/2018 05:50 AM, Richard Biener wrote: >>> On Thu, Jul 5, 2018 at 9:35 AM Aldy Hernandez >wrote: The reason for this patch are the changes showcased in tree-vrp.c. Basically I'd like to discourage rolli

Re: calculate overflow type in wide int arithmetic

2018-07-09 Thread Rainer Orth
Hi Aldy, > On 07/05/2018 05:50 AM, Richard Biener wrote: >> On Thu, Jul 5, 2018 at 9:35 AM Aldy Hernandez wrote: >>> >>> The reason for this patch are the changes showcased in tree-vrp.c. >>> Basically I'd like to discourage rolling our own overflow and underflow >>> calculation when doing wide i

Re: calculate overflow type in wide int arithmetic

2018-07-07 Thread Richard Sandiford
Richard Biener writes: > On Fri, Jul 6, 2018 at 9:50 AM Aldy Hernandez wrote: >> >> >> >> On 07/05/2018 05:50 AM, Richard Biener wrote: >> > On Thu, Jul 5, 2018 at 9:35 AM Aldy Hernandez wrote: >> >> >> >> The reason for this patch are the changes showcased in tree-vrp.c. >> >> Basically I'd lik

Re: calculate overflow type in wide int arithmetic

2018-07-06 Thread Richard Biener
On Fri, Jul 6, 2018 at 9:50 AM Aldy Hernandez wrote: > > > > On 07/05/2018 05:50 AM, Richard Biener wrote: > > On Thu, Jul 5, 2018 at 9:35 AM Aldy Hernandez wrote: > >> > >> The reason for this patch are the changes showcased in tree-vrp.c. > >> Basically I'd like to discourage rolling our own ov

Re: calculate overflow type in wide int arithmetic

2018-07-06 Thread Aldy Hernandez
On 07/05/2018 05:50 AM, Richard Biener wrote: On Thu, Jul 5, 2018 at 9:35 AM Aldy Hernandez wrote: The reason for this patch are the changes showcased in tree-vrp.c. Basically I'd like to discourage rolling our own overflow and underflow calculation when doing wide int arithmetic. We should

Re: calculate overflow type in wide int arithmetic

2018-07-05 Thread Richard Biener
On Thu, Jul 5, 2018 at 9:35 AM Aldy Hernandez wrote: > > The reason for this patch are the changes showcased in tree-vrp.c. > Basically I'd like to discourage rolling our own overflow and underflow > calculation when doing wide int arithmetic. We should have a > centralized place for this, that i

calculate overflow type in wide int arithmetic

2018-07-05 Thread Aldy Hernandez
The reason for this patch are the changes showcased in tree-vrp.c. Basically I'd like to discourage rolling our own overflow and underflow calculation when doing wide int arithmetic. We should have a centralized place for this, that is-- in the wide int code itself ;-). The only cases I care