Skip to content

Fix the expected ADCX probe result - #8

Merged
adrbn merged 1 commit into
adrbn:mac-native-hostfrom
tronLives111:patch-3
Nov 23, 2026
Merged

adrbn merged 1 commit into
adrbn:mac-native-hostfrom
tronLives111:patch-3

Conversation

@tronLives111

Copy link
Copy Markdown

Summary

Fix the ADX probe’s expected result from 1 to 2. Starting at UINT64_MAX with carry clear, the first ADCX adds 1 and wraps to 0 with carry set. The second adds 1 plus that carry, yielding 2 and clearing carry. The old expectation would report a mismatch when native ADX executes correctly.

Verification

  • Rebuilt and ran the x86_64 ISA probe on Apple M1 under Rosetta. Raw ADX raised SIGILL on this host, so native x86 ADX remains untested.
  • Exercised the same two ADCX instructions through Leonida’s Rosetta fallback. The result was 2, the final carry was 0, and all 23 traps in the extended test passed.

Coordination claim

AI-assisted. No game files or GPU required.

The first ADCX wraps UINT64_MAX + 1 to zero and sets CF. The second adds one and the carry, producing 2 with CF clear.

Verified the result and carry through Leonida’s Rosetta fallback on Apple M1. The raw ISA probe rebuilt and ran, and raw ADX traps under Rosetta on this host. AI-assisted.
@adrbn
adrbn merged commit 21dca61 into adrbn:mac-native-host 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.

2 participants