rev16 instruction is being generated for a half word byte swap on a 32-bit input as a bswap+rotr. This is not true for a 64-bit input.
This patch implements the rev16 instruction for a AArch64 backend for a half word byte swap on a 64-bit input.
Differential D122643
[AArch64] Optimize pattern for converting a half word byte swap in a 64-bit input to a rev16 instruction bipmis on Mar 29 2022, 3:19 AM. Authored by
Details rev16 instruction is being generated for a half word byte swap on a 32-bit input as a bswap+rotr. This is not true for a 64-bit input. This patch implements the rev16 instruction for a AArch64 backend for a half word byte swap on a 64-bit input.
Diff Detail
Unit Tests |