https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122018 --- Comment #6 from uis <uis9936 at gmail dot com> --- Bit test reset seems like common pattern too, not sure about complement, but more optimizations is not less.