https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90323
--- Comment #13 from Segher Boessenkool <segher at gcc dot gnu.org> --- (In reply to luoxhu from comment #11) > I noticed that you added the below optimization with commit > a62436c0a505155fc8becac07a8c0abe2c265bfe. But it doesn't even handle this > case, cse1 pass will call simplify_binary_operation_1, both op0 and op1 are > REGs instead of AND operators, do you have a test case to cover that piece > of code? This worked at the time. It broke some time ago in simple testcases, triggered by the "don't combine hard registers" thing I did. This is PR98468.