Conversation
[DO NOT MERGE] Until this extension is frozen/ratified and final version number is determined, this patch should not be merged upstream. This commit uses unratified version 0.1 as in the documentation file name (instead of possible 1.0 after ratification). The 'Zalasr' extension provides atomic load-acquire / store-release instructions. This commit adds instruction and extension support for this extension. This is based on the draft specification: <riscv/riscv-zalasr@f250625> bfd/ChangeLog: * elfxx-riscv.c (riscv_supported_std_z_ext): Add 'Zalasr' to the supported list. (riscv_multi_subset_supports, riscv_multi_subset_supports_ext): Add handling for new instruction class. gas/ChangeLog: * testsuite/gas/riscv/zalasr.s: New test. * testsuite/gas/riscv/zalasr.d: Likewise. * testsuite/gas/riscv/zalasr-64.s: New test. * testsuite/gas/riscv/zalasr-64.d: Likewise. include/ChangeLog: * opcode/riscv-opc.h (MATCH_LB_AQ, MASK_LB_AQ, MATCH_LD_AQ, MASK_LD_AQ, MATCH_LH_AQ, MASK_LH_AQ, MATCH_LW_AQ, MASK_LW_AQ, MATCH_SB_RL, MASK_SB_RL, MATCH_SD_RL, MASK_SD_RL, MATCH_SH_RL, MASK_SH_RL, MATCH_SW_RL, MASK_SW_RL): New. * opcode/riscv.h (enum riscv_insn_class): Add new instruction class INSN_CLASS_ZALASR. opcodes/ChangeLog: * riscv-opc.c (riscv_opcodes): Add instructions from the 'Zalasr' extension.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wiki Page (details): https://github.com/a4lg/binutils-gdb/wiki/riscv_zalasr