The "xor (X >> ShiftC), XorC --> (not X) >> ShiftC" fold is currently limited to the XOR mask being a shifted all-bits mask, but we can relax this to only need to match under the demanded bits.
This helps expose more bit extraction/clearing patterns and fixes the PowerPC testCompares*.ll regressions from D127115
I don't think this will appear in DAG, and Instcombine will fold this to a xor-shift-mask pattern: https://gcc.godbolt.org/z/nMdqeaGYh