https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112398
Jeffrey A. Law <law at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #11 from Jeffrey A. Law <law at gcc dot gnu.org> --- So I looked at the neg16 case with zbb off. Even with the additional instruction budget, I don't see that an xor base sequence will be any better as we need two instructions to struct 0xffff. I also looked at the 3rd testcase. As I noted before the output of the NOT is used in multiple contexts, so trivial adjustment to XOR doesn't work. On targets with bitfield extractions we will recognize the zero extended bitfield extraction as-such. Closing as I think the generic changes to simplify-rtx are doing what they should.