https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83377
--- Comment #4 from Vinay Kumar ---
Hi,
Above mentioned patch does not work for the pattern "if( x & 2 ) y = (x &
~2UL)".
>> Probably still easier to fix in combine / simplify-rtx.
We are working as per your suggestion.
Regards,
Vinay
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83377
--- Comment #3 from Vinay Kumar ---
The below mentioned pattern match in match.pd generates the assembly code
similar to subtraction.
==
diff --git a/gcc/match.pd b/gcc/match.pd
index fbb4d6f..3cde6a6 1006
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85667
Vinay Kumar changed:
What|Removed |Added
CC||vinay.m.engg at gmail dot com
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86947
--- Comment #4 from Vinay Kumar ---
Hi Richard,
Thanks for checking the bug.
Please find attached the testcase that would exit with message
"Should NOT BE here" on miscompilation.
The behavior is same with other targets as well.
We have checked
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86947
--- Comment #3 from Vinay Kumar ---
Created attachment 44572
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44572&action=edit
Testcase t2.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86947
Vinay Kumar changed:
What|Removed |Added
CC||vinay.m.engg at gmail dot com
--- Comment