upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/loader_test.cpp
diff options
context:
space:
mode:
authorLuiz Neves <luizgustavobenicio@gmail.com>2026-11-21 19:08:00 -0300
committerLuiz Neves <luizgustavobenicio@gmail.com>2026-11-21 19:08:00 -0300
commitf2fead895a8943d0ac20547aaf0d492e03ce6bde (patch)
tree4b23775383ceec7a8e18a7d84b93f6fa8b05662b /runtime/test/loader_test.cpp
parent36ace7135e897c228eede5d1d8c28e972285cb14 (diff)
tests/semantic: run unordered float compares in the interpreter, and test v_cmp_*_f32/f16
spirv_mini_interp.py had the ordered float compares and OpFUnordNotEqual only, so v_cmp_lg/nlt/ngt/nle/nge could not run, and neither could the OpIsNan/OpIsInf checks in v_cvt_pkrtz. It now has OpFOrdNotEqual, every OpFUnord* compare, OpIsNan and OpIsInf: an ordered compare is false and an unordered one true when either operand is NaN. test_float_compares.py checks v_cmp_{lt,le,gt,ge,eq,lg,neq,nlt,ngt,nle,nge} for f32 (e32 and e64) and f16 (with high-half noise) on 0, -0, +-1, 2.5, +-inf and NaN against Python's own comparison, plus e64 neg/abs source modifiers. test_interp.py tests the new ops directly.
Diffstat (limited to 'runtime/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions