From d653dc6e5f7e50030a9baf70b5fda067a6b57de0 Mon Sep 17 00:00:00 2001 From: Hiroo HAYASHI <24754036+hirooih@users.noreply.github.com> Date: Mon, 8 Jan 2024 15:26:48 +0900 Subject: [PATCH] Add .rv32 on rv32_zbs instructions to be consistent with slli, srli, and srai. Signed-off-by: Hiroo HAYASHI <24754036+hirooih@users.noreply.github.com> --- constants.py | 4 ++++ rv32_zbs | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/constants.py b/constants.py index 0f4e7771..ab61105d 100644 --- a/constants.py +++ b/constants.py @@ -220,4 +220,8 @@ 'mop_rr_7', 'sspush_x1', 'sspush_x5', + 'bclri.rv32', + 'bexti.rv32', + 'binvi.rv32', + 'bseti.rv32', ] diff --git a/rv32_zbs b/rv32_zbs index 14ac441f..a7ff752a 100644 --- a/rv32_zbs +++ b/rv32_zbs @@ -1,5 +1,5 @@ -$pseudo_op rv64_zbs::bclri bclri rd rs1 31..25=0x24 shamtw 14..12=1 6..2=0x04 1..0=3 -$pseudo_op rv64_zbs::bexti bexti rd rs1 31..25=0x24 shamtw 14..12=5 6..2=0x04 1..0=3 -$pseudo_op rv64_zbs::binvi binvi rd rs1 31..25=0x34 shamtw 14..12=1 6..2=0x04 1..0=3 -$pseudo_op rv64_zbs::bseti bseti rd rs1 31..25=0x14 shamtw 14..12=1 6..2=0x04 1..0=3 +$pseudo_op rv64_zbs::bclri bclri.rv32 rd rs1 31..25=0x24 shamtw 14..12=1 6..2=0x04 1..0=3 +$pseudo_op rv64_zbs::bexti bexti.rv32 rd rs1 31..25=0x24 shamtw 14..12=5 6..2=0x04 1..0=3 +$pseudo_op rv64_zbs::binvi binvi.rv32 rd rs1 31..25=0x34 shamtw 14..12=1 6..2=0x04 1..0=3 +$pseudo_op rv64_zbs::bseti bseti.rv32 rd rs1 31..25=0x14 shamtw 14..12=1 6..2=0x04 1..0=3