Add pspautotests for the div-by-zero, rounding, scaled convert and call-out JIT paths

Covers the cases fixed on the riscv-loongarch-fixes branch, none of which
the suite reached before. Five go in tests_good, and two in tests_next:

- cpu/cpu_alu/cpu_div: hardware leaves HI = 0 for INT_MIN / -1. The x86
  JIT, both interpreters and every IR backend set it to -1 on purpose;
  the classic arm64 JIT passes by not special-casing it at all.
- cpu/vfpu/minmax_zero: signed zero and denormals in vmin/vmax.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Fable 5.1 committed 2026-09-22 10:59:17 -06:00
1 parent 28b5d0ee5c
commit 5b507e5bb3
2 files changed
+8 -1

No files matched your search

+7
View File
@@ -87,14 +87,18 @@ tests_good = [
"cpu/cpu_alu/cpu_alu",
"cpu/cpu_alu/cpu_branch",
"cpu/cpu_alu/cpu_branch2",
"cpu/vfpu/callout",
"cpu/vfpu/colors",
"cpu/vfpu/convert",
"cpu/vfpu/convert_scaled",
"cpu/vfpu/minmax",
"cpu/vfpu/gum",
"cpu/vfpu/matrix",
"cpu/vfpu/vavg",
"cpu/icache/icache",
"cpu/lsu/lsu",
"cpu/fpu/fpu",
"cpu/fpu/rounding",
"audio/atrac/addstreamdata",
"audio/atrac/atractest",
@@ -263,6 +267,7 @@ tests_good = [
"malloc/malloc",
"misc/dcache",
"misc/deadbeef",
"modules/unresolved/unresolved",
"misc/libc",
"misc/sdkver",
"misc/testgp",
@@ -462,7 +467,9 @@ known_failures = {
tests_next = [
# These are the next tests up for fixing. These run by default.
"cpu/cpu_alu/cpu_div", # INT_MIN / -1 leaves HI = 0 on hardware, the interpreters and IR backends say -1
"cpu/fpu/fcr",
"cpu/vfpu/minmax_zero", # signed zero and denormals in vmin/vmax
"cpu/vfpu/prefixes",
"cpu/vfpu/vector",
"cpu/vfpu/vregs",