https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119917
--- Comment #4 from Jin Haobo <a1343922569 at outlook dot com> --- The latest clang (trunk version) has applied this optimization, including 8/16/32/64-bit situation. Link: https://godbolt.org/z/aTbqGTPex