diff options
| author | eIBart0 <eIBart0@users.noreply.github.com> | 2026-11-21 19:07:49 +0000 |
|---|---|---|
| committer | eIBart0 <gabriel.skaminski@gmail.com> | 2026-11-21 16:17:58 -0300 |
| commit | 957dfb24bd039ab2b9474f676a09cf6bf482607c (patch) | |
| tree | 9bae4922df04b74d95475dd9d66055f681afd12e /runtime/src/pe_loader.cpp | |
| parent | d51bddc84e38971c834234179080f8d00092846a (diff) | |
Fix: stop dropping first instruction in shader_ir.parse_file on LLVM 21+ and un-xfail vcc_half test
- shader_ir.parse_file() unconditionally skipped lines[0] as a comment header,
while tests/conftest.py wrote raw llvm-mc stdout without a header line.
- On LLVM 14/18/19, llvm-mc emitted a leading '.text' directive on line 0 so
lines[1:] skipped '.text'. On LLVM 21/22, llvm-mc stopped emitting '.text',
causing parse_file() to drop the first instruction (s_mov_b64 exec, -1 in
test_wave64_bfm64_and_half_cmp_emit_wave_ops's vcc_half shader), which left
g.wave64 = False and made s_bcnt1_i32_b32 count both halves.
- Only skip lines[0] in parse_file() when it is not an instruction line, skip
assembler '.' directives (like '.text'), prepend a synthetic header in
tests/conftest.py, and restore the strict assert in tests/test_translate.py.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions