-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relaxed branch+cmp offset encoding (#860)
* add BranchCmpFallback instruction Translation does not yet actually emit the new instruction. Needs to be implemented in another commit. * exchange Err with unreachable! in offset init * apply rustfmt * remove BranchOffset16::new Superseeded by TryFrom impl. * refactor BranchOffset::from_src_to_dst * add Error section to docs * apply rustfmt * remove superseeded replacements These are no longer needed since the BranchI32Eqz and BranchI32Nez instruction have been removed some time ago. * encode fallback branch+cmp for 32-bit offsets This is encoding only for forward branches. * add #Error doc section to init method * reduce line noise * implement branch+cmp fallback encoding for forward jumps * disable std feature of num-traits dependency
- Loading branch information
Showing
10 changed files
with
686 additions
and
378 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.