https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64718
thopre01 at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #4 from thopre01 at gcc dot gnu.org --- The problem comes from: bswap_type = TREE_TYPE (src); in bswap_replace when dealing with 16-bit bswap. I got a fix for that and testing is underway. Thanks for the testcase. Best regards.