Repository navigation
simd(s390x): vector max/min on z14+ (VFMAXDB Java mode) - #39
Merged
Merged
Conversation
… a z17 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
maxVXE/minVXE, generated by go-asmgen, usingVFMAXDB/VFMINDBand the scalarWFMAXDB/WFMINDBin mode 1, Java's Math.max/min: a NaN operand gives NaN, and −0 orders below +0. That is NumPy's and Go's rule. Four two-lane accumulators from 8 elements up, then a fold and a scalar tail.Tests on the real IBM z17 (
ssh linuxone)TestMaxMinSIMDandTestMaxMinSIMDSpecialsInVectorLanes(±0, ±Inf in every lane) pass, withuseVXE = true.TestVXEDetectedre-runs both with the kernel forced off.n=16 NaN@0: maxSIMD=1421.09…, want NaN.-race;go veton 5 architectures.Measured (z17, one core,
hostload0.1% busy,benchstatover 8 interleaved runs, p = 0.000)Sum is untouched and serves as the control: ±0.6%.
Docs: README (max/min SIMD on s390x z14+), perf.md, plan, SECURITY.md.
Version: v0.9.1 (performance, no API change).
🤖 Generated with Claude Code