diff options
| author | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-11-21 19:00:46 -0300 |
|---|---|---|
| committer | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-11-21 19:00:46 -0300 |
| commit | 058170f6e0bd660b4596054352aeac54904b7ab0 (patch) | |
| tree | 8d725ed68a7e570809c6670f9b27beec0549540e /runtime/src/pe_loader.cpp | |
| parent | 3fae38a7a16ef1e9803349495598ff79510a8296 (diff) | |
tests/semantic: run integer compares in the interpreter, and test v_cmp/s_cmp
spirv_mini_interp.py had OpULessThan, OpUGreaterThanEqual and a 32-bit
OpSLessThan only, so most v_cmp_* and s_cmp_* translations could not run. It
now has OpULessThanEqual, OpUGreaterThan and the four signed orderings, and
reads a signed operand at the width of its type, so a 64-bit compare is not
cut to 32 bits.
test_int_compares.py checks v_cmp_{eq,ne,lt,le,gt,ge} for u16/i16/u32/i32
(e32 and e64) and u64/i64, s_cmp_{eq,lg,lt,le,gt,ge} for u32/i32, and
s_cmp_{eq,lg}_u64 at sign and width boundaries against Python's own
comparison. test_interp.py tests the new ops directly.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions