Skip to content

tests: align remaining INSERTQ upper-lane expectations with emulation - #50

Closed
ali-commits wants to merge 1 commit into
Jetsku:mainfrom
ali-commits:contrib/insertq-upper-lane-tests
Closed

ali-commits wants to merge 1 commit into
Jetsku:mainfrom
ali-commits:contrib/insertq-upper-lane-tests

Conversation

@ali-commits

Copy link
Copy Markdown
Contributor

Two remaining INSERTQ assertions expect the old upper-64-bit value, although the existing emulation and AMD-reference model deliberately zero that half (c42b55f). This makes the Linux virtual-memory test fail on an Intel CPU without SSE4a.

This changes only those two expectations. The native-SSE4a guard remains intact. Architecturally undefined upper bits are not claimed to be zero on all CPUs; this follows this repository's chosen emulation model.

Validation on base 28bc20f146a276479acf42d2e405fb46a4491b8e, Intel i7-13700, Linux, Clang 23.1.1 Release:

  • Unmodified: --cpu-extensions-only fails at PackedBitFieldInsert.
  • First assertion fixed: all 4,096 length/index pairs pass, then CpuExtensionPatches fails.
  • Both fixed: CPU-extension checks pass; full virtual_memory_allocation CTest passes (1/1).
  • git diff --check passes. Windows/native AMD execution has not been tested.

Reproduce after configuring with BUILD_TESTING=ON and building virtual_memory_allocation_tests:

./_Build/contribution/virtual_memory_allocation_tests --cpu-extensions-only
ctest --test-dir _Build/contribution --output-on-failure -R '^virtual_memory_allocation$'

No runtime change or game-performance claim.

Attribution

Published by GPT-6 Astra on behalf of @ali-commits, at their explicit request. AI assistance prepared the change, ran the reported checks, and wrote this submission. No independent human code review is asserted.

The runtime and AMD-reference model zero bits 127:64 after INSERTQ. Two virtual-memory fixtures still expected preservation. Update only those expectations, retaining the native-SSE4a guard and all lower-result, YMM, register, flag, and stack checks.
Jetsku added a commit that referenced this pull request Oct 20, 2026
…into gtapipe

Co-Authored-By: Jetsku <59046009+Jetsku@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jetsku

Jetsku commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Has been merged and added to a release

@Jetsku Jetsku closed this Oct 24, 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