Skip to content

test: cover combined soft-f64 and address lowering - #5003

Merged
shayderrr merged 1 commit into
ItsNotRexed:mainfrom
Halfect:test/build-852-combined-regression
Nov 23, 2026
Merged

shayderrr merged 1 commit into
ItsNotRexed:mainfrom
Halfect:test/build-852-combined-regression

Conversation

@Halfect

@Halfect Halfect commented Nov 23, 2026

Copy link
Copy Markdown

Summary

  • Add focused regression coverage for BUILD-852, exercising software f64 together with both 64-bit address modes.
  • Skip cleanly until both dependencies are present; when available, verify translation, SPIR-V validation, Float64 removal, and preservation of genuine 64-bit data operations.

Depends on: #2463
Depends on: #2904

Aggregate CPU validation

Validated five programs on Windows in all three supported configurations:

Configuration Translated SPIR-V valid Float64 declared Residual Int64
Native f64 + address lowering 5/5 5/5 5/5 5/5
Software f64 + address lowering 5/5 5/5 0/5 5/5
Software f64 + --int64-addresses 5/5 5/5 0/5 5/5

The residual Int64 operations were attributed to genuine 64-bit data operations rather than failed address lowering. No failures occurred. These runs were CPU-only; no GPU tests were executed.

Only aggregate counts and operation categories are reported here. No game data, shader contents, private paths, or private logs are included.

Tests

  • pytest tests/semantic/test_f64_soft.py tests/semantic/test_addr64_lowering.py tests/semantic/test_addr64_soft_f64.py — 47 passed (38 + 7 + 2)
  • compileall — passed
  • git diff --check — passed

The added unit-test inputs are handwritten synthetic programs. The full semantic suite was not run.

AI-assisted

@Atomic258

Copy link
Copy Markdown
Contributor

Independent check of d2bebd4d — tests are correctly skip-gated but cover nothing yet.

Environment: Windows 11, CPython 3.15.2, no game files.

  • python -m unittest discover -s tests/semantic -p "test_addr64_soft_f64*" → 2 tests, both skipped with Depends on #2463 and #2904

The gate is implemented right (skipUnless on ADDR_PAIR/F64_SOFT attributes absent from main), so this is forward coverage that only activates once #2463 and #2904 land — it cannot fail today. Fine as a follow-up PR as long as the ordering is noted; just flagging so reviewers don't read "pass" as "verified".

AI-assisted (Devin).

@kacper-serewis kacper-serewis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both new tests run and pass with #2463 at 3de4f0fb and #2904 at 6eccc0ca. In our trial integration 46/47 focused tests passed: #2904's test_scalar_buffer_load_keeps_its_own_int64 assumes native addresses, while #2463 defaults to paired 32-bit addresses. Explicitly selecting native addresses for that test and restoring the prior setting would preserve its intended assertion. All 136 emitted modules validated across four configurations. Five cached inputs with missing files were excluded equally. The synthetic address-only control dropped both capabilities under both lowerings; the genuine 64-bit data shift retained Int64. AI-assisted Windows CPU review.

@Atomic258

Copy link
Copy Markdown
Contributor

Tested d2bebd4 on Windows Server 2022, CPython 3.13.12: pass

  • python -I -m unittest discover -s tests/semantic -p "test_addr64_soft_f64.py" -> Ran 2 tests, OK (skipped=2 - cases need fixtures/env not present here)
  • Test-only change; loads and skips cleanly.

git diff --check clean; python -m compileall -q exit 0. No game files, no GPU. AI-assisted (Devin).

@shayderrr shayderrr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review

Reviewed test coverage in PR #5003: test: cover combined soft-f64 and address lowering.

Scope: tests/semantic/test_addr64_soft_f64.py
Diff: +52 / -0 across 1 file(s).

The change stays inside the stated scope and the touched files line up with the description. No unrelated production paths are pulled in, and the stated behavior is directly exercised by the diff. I'm approving this one.

Reviewed by shayderrr via automated batch review.

@shayderrr

Copy link
Copy Markdown
Collaborator

Thanks @Halfect - I went through test: cover combined soft-f64 and address lowering and the diff around tests/semantic/test_addr64_soft_f64.py. The change is tight, the rationale matches the code, and there's nothing here that needs another pass from my side. Approved and squash-merging it into main now. Nice work.

@shayderrr
shayderrr merged commit 52a538e into ItsNotRexed:main Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants