Skip to content

Fix block label printing in precise-output tests#5798

Merged
elliottt merged 4 commits intobytecodealliance:mainfrom
elliottt:trevor/fix-block-printing
Feb 16, 2023
Merged

Fix block label printing in precise-output tests#5798
elliottt merged 4 commits intobytecodealliance:mainfrom
elliottt:trevor/fix-block-printing

Conversation

@elliottt
Copy link
Member

As a follow-up to #5780, disassemble the regions identified by bb_starts, falling back on disassembling the whole buffer. This ensures that instructions like br_table that introduce a lot of constants don't throw off capstone for the remainder of the function.

Copy link
Contributor

@jameysharp jameysharp left a comment

Choose a reason for hiding this comment

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

I have a couple of suggestions that I think make the code more clear but I believe this PR is correct as-is.

elliottt and others added 2 commits February 15, 2023 17:44
Co-authored-by: Jamey Sharp <jamey@minilop.net>
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:area:machinst Issues related to instruction selection and the new MachInst backend. labels Feb 16, 2023
@elliottt elliottt enabled auto-merge (squash) February 16, 2023 01:51
@elliottt elliottt merged commit cc07359 into bytecodealliance:main Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift:area:machinst Issues related to instruction selection and the new MachInst backend. cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants