About: ------ For testing compiler changes, keep a database of tgsi inputs and corresponding ir3 asm outputs. When compiler changes are made, regenerate ir3 asm outputs with ir3_compiler from latest mesa, and feed both new and old outputs into assembler + emulator to check for equivalent outputs. The emulator does not try to be 100% accurate, or even 100% complete, as much as just ensuring that equivalent sequences of instructions produce equivalent results. It does, to a limited extent, try to detect known issues, like insufficent delay slots or missing sync bits. Build: ------ ./autogen.sh && make Run: ---- ./run-tests.sh