补 shift 随机对照测试与 scalar CI job - #4
Merged
Merged
Conversation
- shift_left/right 新增 256 位随机对照测试(64 组,count∈[0,Bits]),逐 bit 参考模型对照,覆盖手工用例未碰的中间 shift 值 - reference_model.hpp 新增 reference_shift_left/right 逐 bit 参考实现 - random_cases.hpp 新增 random_shift_case 生成器 - CI 新增 scalar build/test job(-mno-avx2 + BITCAL_NATIVE_ARCH=OFF),覆盖 BITCAL_HAS_AVX2==0 分支;此前 CI 两 job 均走 AVX2 路径 - README/AGENTS/CHANGELOG 同步描述
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更
补 shift 操作的随机对照测试,并新增 scalar CI job 覆盖
BITCAL_HAS_AVX2 == 0编译分支。测试
shift_left/shift_right新增 256 位随机对照测试(各 64 组,count ∈ [0, Bits]),对照逐 bit 参考模型reference_shift_left/reference_shift_rightrandom_cases.hpp新增random_shift_case生成器;reference_model.hpp新增逐 bit 参考实现CI
build-and-test-scalarjob(GCC +-mno-avx2+BITCAL_NATIVE_ARCH=OFF),覆盖 scalar 分支-march=native),scalar 分支从未被编译/测试文档
README/AGENTS §4.3/CHANGELOG同步描述验证
-march=native)+ scalar build(-mno-avx2):均 45 passed / 0 failedshift_left_array(丢跨 word carry),test_random_shift_left_256如预期失败;128 位手工用例在 mutation 下仍 PASS,印证随机测试覆盖了手工用例未碰的中间 shift 值