need used to be ceil(size/4) and only the first dword was shifted, so a
4-byte format at byte 3 (or an 8-byte format at byte 6) took its tail
from dword 0. Load ceil((byte_shift + size) / 4) dwords and shift the
whole window so the packed stream starts at the element. Found by the
FUZZ-5 fuzzer; left open in #234.
buffer_load_format_* merges dword 1 above a sub-dword element with
w1 << (32 - bsh) and picks dword 0 when bsh is 0. For every dword-aligned
element, the discarded side shifts by 32, undefined in SPIR-V.
(32 - bsh) & 31 keeps it in range.
tests/semantic/test_buffer_load_format.py runs u32, u32x2/x4, uint8x4,
uint16x2/x4 and f16 loads from interpreter memory. spirv_mini_interp.py learns
the two things the format decode needs: OpConvertUToF/OpConvertSToF and GLSL
FMin/FMax (NaN operands raise UnsupportedConstruct).