ncg(aarch64): Implement MO_BSwap using REV
ncg(aarch64): Implement MO_BSwap using REV
Implements MO_BSwap by producing assembly to do the byte swapping
instead of producing a foreign call a C function.
In `tar`, the hot loop for `deserialise` got almost 4x faster by
avoiding the foreign call which caused spilling live variables to the
stack -- this means the loop did 4x more memory read/writing than
necessary in that particular case!
-
Implement test-primops for byteswap
Edited by Rodrigo Mesquita