You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[DO NOT MERGE]
Until the 'Zicfilp' 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 (instead of possible 1.0
after ratification).
This commit adds RISC-V Landing Pads extension (Zicfilp) based on
the document version 0.1 (latest git revision):
<riscv/riscv-cfi@c6a8311>
**Important Note**
The "lpad" instruction requires 4-byte alignment to complete without
exceptions but this is not currently enforced by the assembler.
bfd/ChangeLog:
* elfxx-riscv.c (riscv_supported_std_z_ext): Add 'Zicfilp' extension
to valid 'Z' extension list.
(riscv_multi_subset_supports): Support new instruction class.
(riscv_multi_subset_supports_ext): Likewise.
gas/ChangeLog:
* testsuite/gas/riscv/zicfilp.s: New test.
* testsuite/gas/riscv/zicfilp.d: Likewise.
include/ChangeLog:
* opcode/riscv-opc.h (MATCH_LPAD, MASK_LPAD): New.
* opcode/riscv.h (enum riscv_insn_class): Add new instruction
class INSN_CLASS_ZICFILP.
opcodes/ChangeLog:
* riscv-opc.c (riscv_opcodes): Although not strictly a hint, add
"lpad" to the list of standard hints because of its encoding.
0 commit comments