-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3211: fix popcnt for aarch64 r=ptitSeb a=grishasobol # Description Fix problem with infinite `popcnt` WASM instruction execution on M1 processor. See details in corresponded issue: #3210 # Review 1) Make fix for `i32.popcnt`. Use additional execution branch if `src` register equal to `1`: ``` if src == 0 => goto exit_label if src == 1 => goto src_is_one_label loop_label: ... // popcnt loop body goto exit_label src_is_one_label: mov dest, 1 exit_label: ``` Co-authored-by: Gregory Sobol <grishasobol@mail.ru>
- Loading branch information
Showing
2 changed files
with
63 additions
and
11 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