diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 8 | ||||
-rw-r--r-- | gas/config/tc-riscv.c | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/riscv/pause.d | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/riscv/pause.s | 2 |
4 files changed, 22 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index c99e1b3..48c21f7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,11 @@ +2021-01-07 Philipp Tomsich <prt@gnu.org> + + * config/tc-riscv.c (riscv_multi_subset_supports): Added + INSN_CLASS_ZIHINTPAUSE. + * testsuite/gas/riscv/pause.d: New testcase. Adding coverage for + the pause hint instruction. + * testsuite/gas/riscv/pause.s: Likewise. + 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com> Jim Wilson <jimw@sifive.com> Andrew Waterman <andrew@sifive.com> diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index 052199e..8dc84cb 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -250,6 +250,8 @@ riscv_multi_subset_supports (enum riscv_insn_class insn_class) return riscv_subset_supports ("zicsr"); case INSN_CLASS_ZIFENCEI: return riscv_subset_supports ("zifencei"); + case INSN_CLASS_ZIHINTPAUSE: + return riscv_subset_supports ("zihintpause"); case INSN_CLASS_ZBA: return riscv_subset_supports ("zba"); diff --git a/gas/testsuite/gas/riscv/pause.d b/gas/testsuite/gas/riscv/pause.d new file mode 100644 index 0000000..13e581d --- /dev/null +++ b/gas/testsuite/gas/riscv/pause.d @@ -0,0 +1,10 @@ +#as: -march=rv32i_zihintpause +#objdump: -dr + +.*:[ ]+file format .* + + +Disassembly of section .text: + +0+000 <target>: +[ ]+0:[ ]+0100000f[ ]+pause diff --git a/gas/testsuite/gas/riscv/pause.s b/gas/testsuite/gas/riscv/pause.s new file mode 100644 index 0000000..4cdf357 --- /dev/null +++ b/gas/testsuite/gas/riscv/pause.s @@ -0,0 +1,2 @@ +target: + pause |