https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108874
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 54629 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54629&action=edit Patch but need to add testcases here is the patch which adds the define_split to aarch64 md file that helps combine and we produce the rev16 again for the original testcase and fixes the testcases in comment #8 too.