https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128948

--- Comment #3 from Daniel Petrovic <daniel-dev at hotmail dot de> ---
Looking again at this, I see the following options:

Option 1. 
Simply exclude X^A  <//>= 0  from the new fold. 
This would be simple, localized change, and should leave the existing
sat-matchers intact. But we'd also lose something.

Option 2. 
Copy and modify P1-P4 by changing some of the XORs comparisons and try to add
some guards, e.g.
   in P1/P3: change (ge/lt (bit_xor:c @0 @1) integer_zerop)) to (ge/lt @0
integer_zerop) and guard  for non-negative @1

   in P2: change (ge (bit_xor:c @0 INTEGER_CST@3) integer_zerop))
              to (ge @0 integer_zerop) and guard for @1 >= 0

   in P4: change (lt (bit_xor:c @0 @1) integer_zerop)) 
              to (lt @0 integer_zerop) and guard for @1 >=0

 I didn't try this yet so I don't now if this would work

Option 3. ?

Perhaps someone has a better approach ?

Reply via email to