Skip to content

Conversation

@Lukasdoe
Copy link
Contributor

@Lukasdoe Lukasdoe commented Jun 9, 2025

fixes #2616

@keithw
Copy link
Member

keithw commented Jun 9, 2025

Thank you! wasm-tools seems to have some tests for metadata annotations (e.g. https://github.com/bytecodealliance/wasm-tools/tree/main/tests/cli/branch-hinting) -- is it possible to port over some of those tests? That would give some more assurance that we are parsing this as intended (or at least as other consumers do).

@Lukasdoe
Copy link
Contributor Author

About the tests: sure! I'll see what I can do :)

@Lukasdoe
Copy link
Contributor Author

Since their case mostly validates proper parsing of the hints, I combined their test cases into a wat2wasm + objdump test case.

@Lukasdoe
Copy link
Contributor Author

Alright. Now that all tests are passing, this should be ready for merging :)

@sbc100 sbc100 merged commit fde4ca3 into WebAssembly:main Jul 21, 2025
18 checks passed
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.

Wrong parsing of function index in code metadata for branch hinting

3 participants