Re: [GSoC][match-and-simplify] add bitwise patterns to match.pd

2014-06-02 Thread Richard Biener
On Mon, Jun 2, 2014 at 2:53 PM, Richard Biener wrote: > On Mon, Jun 2, 2014 at 1:33 PM, Prathamesh Kulkarni > wrote: >> Hi, >> I have tried to add few bitwise patterns from >> tree-ssa-forwprop.c:simplify_bitwise_binary and the patterns >> mentioned in Simplifications wiki (https://gcc.gnu.org/

Re: [GSoC][match-and-simplify] add bitwise patterns to match.pd

2014-06-02 Thread Richard Biener
On Mon, Jun 2, 2014 at 1:33 PM, Prathamesh Kulkarni wrote: > Hi, > I have tried to add few bitwise patterns from > tree-ssa-forwprop.c:simplify_bitwise_binary and the patterns > mentioned in Simplifications wiki (https://gcc.gnu.org/wiki/Simplifications). > > How to write a test-case to match mu

[GSoC][match-and-simplify] add bitwise patterns to match.pd

2014-06-02 Thread Prathamesh Kulkarni
Hi, I have tried to add few bitwise patterns from tree-ssa-forwprop.c:simplify_bitwise_binary and the patterns mentioned in Simplifications wiki (https://gcc.gnu.org/wiki/Simplifications). How to write a test-case to match multiple gimple statements ? Example: For the pattern: ~x | ~y -> ~(x & y