-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#1569 AArch64: Implement move (immediate) to zero register. (#2423)
Moving a value to the zero register is a no-op but we have seen ADR XZR,... used by Node.js (libv8). Having these API functions, instrlist_insert_mov_{immed_ptrsz,instr_addr}, create no instructions potentially adds a case for the caller to handle but most uses of those functions set the last two arguments to NULL in any case. If it were a problem we could create a NOP instruction instead. Creating actual moves to XZR seems less good and would be awkward if in generating a constant value we ever used instructions that cannot target XZR.
- Loading branch information
1 parent
a77808f
commit 42d0ebc
Showing
2 changed files
with
21 additions
and
7 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