From 7c15234ff9670247767fb4662849b2090d9894f3 Mon Sep 17 00:00:00 2001 From: Charlie Jenkins Date: Fri, 15 Sep 2023 22:30:56 -0400 Subject: [PATCH] Generate compressed shift instructions for rv32 The non-compressed shift instructions have _rv32 versions. Do the same for the compressed shift instructions. Signed-off-by: Charlie Jenkins --- rv32_c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rv32_c b/rv32_c index d9a90722..a9c05cd5 100644 --- a/rv32_c +++ b/rv32_c @@ -1,5 +1,5 @@ # quadrant 1 c.jal c_imm12 1..0=1 15..13=1 -$pseudo_op rv64_c::c.srli c.srli rd_rs1_p c_nzuimm5 1..0=1 15..13=4 12..10=0 -$pseudo_op rv64_c::c.srai c.srai rd_rs1_p c_nzuimm5 1..0=1 15..13=4 12..10=1 -$pseudo_op rv64_c::c.slli c.slli rd_rs1_n0 c_nzuimm6lo 1..0=2 15..12=0 +$pseudo_op rv64_c::c.srli c.srli_rv32 rd_rs1_p c_nzuimm5 1..0=1 15..13=4 12..10=0 +$pseudo_op rv64_c::c.srai c.srai_rv32 rd_rs1_p c_nzuimm5 1..0=1 15..13=4 12..10=1 +$pseudo_op rv64_c::c.slli c.slli_rv32 rd_rs1_n0 c_nzuimm6lo 1..0=2 15..12=0