Skip to content

Always use LaneResults for SIMD values in spec tests - #8434

Merged
stevenfontanella merged 4 commits into
mainfrom
lanes
Mar 12, 2026
Merged

stevenfontanella merged 4 commits into
mainfrom
lanes

Conversation

@stevenfontanella

@stevenfontanella stevenfontanella commented Mar 9, 2026 •

Copy link
Copy Markdown
Member

For use in #8421. Previously LaneResults was only used if the expected v128 constant contained NaN patterns, which meant that we lose the shape information (otherwise they were stored/matched as a normal v128 Literal). Change the parser to always use LaneResult so that we keep the shape information and can output exactly which lane doesn't match during test failures.

Error message before:

expected i32x4 0x56485649 0x56485648 0x56485648 0x56485648, got i32x4 0x56485648 0x56485648 0x56485648 0x56485648

Error message after:

expected 22089, got 22088 at lane 0

Part of #8261 and #8315.

@stevenfontanella stevenfontanella changed the title Fix handling for SIMD lanes in tests Always use LaneResults for SIMD values in spec tests Mar 9, 2026
@stevenfontanella
stevenfontanella force-pushed the lanes branch 3 times, most recently from f1137b9 to bed56b7 Compare March 9, 2026 21:37
@stevenfontanella stevenfontanella changed the title Always use LaneResults for SIMD values in spec tests [NFC] Always use LaneResults for SIMD values in spec tests Mar 9, 2026
@stevenfontanella stevenfontanella changed the title [NFC] Always use LaneResults for SIMD values in spec tests Always use LaneResults for SIMD values in spec tests Mar 9, 2026
@stevenfontanella
stevenfontanella marked this pull request as ready for review March 9, 2026 22:14
@stevenfontanella
stevenfontanella requested a review from tlively March 9, 2026 22:14
Comment thread src/parser/wast-parser.cpp Outdated
Comment thread src/parser/wat-parser.h Outdated
Comment thread src/tools/wasm-shell.cpp Outdated

@tlively tlively left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@stevenfontanella
stevenfontanella merged commit 6a64cbc into main Mar 12, 2026
17 checks passed
@stevenfontanella
stevenfontanella deleted the lanes branch March 12, 2026 18:31
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