Re: Simplify -x<0 to x>0

2015-05-26 Thread Richard Biener
On Sun, May 24, 2015 at 3:33 PM, Marc Glisse wrote: > Hello, > > I noticed we were only doing this transformation for floats and not for > integers, so I took the chance to move it to match.pd. Regtested on > ppc64le-redhat-linux. Ok. Thanks, Richard. > 2015-05-25 Marc Glisse > > * m

Re: Simplify -x<0 to x>0

2015-05-25 Thread Marc Glisse
On Mon, 25 May 2015, Eric Botcazou wrote: I noticed we were only doing this transformation for floats and not for integers, so I took the chance to move it to match.pd. Isn't it so because this requires a symmetrical domain around 0? With undefined overflow, by computing -x, you are assertin

Re: Simplify -x<0 to x>0

2015-05-25 Thread Eric Botcazou
> I noticed we were only doing this transformation for floats and not for > integers, so I took the chance to move it to match.pd. Isn't it so because this requires a symmetrical domain around 0? -- Eric Botcazou

Simplify -x<0 to x>0

2015-05-24 Thread Marc Glisse
Hello, I noticed we were only doing this transformation for floats and not for integers, so I took the chance to move it to match.pd. Regtested on ppc64le-redhat-linux. 2015-05-25 Marc Glisse * match.pd (swapped_tcc_comparison): New operator list. (-A CMP -B): New simplifi