little-endian or big-endian test code