From 37a0ce0f931ebae564a20878126b15530a3f2cc4 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 12 Jan 2023 13:20:38 -0800 Subject: Fix backwards incompatibility introduced by RV128 opcodes in #112 Adding RV128 shift opcodes changed what metadata we emit for SLLI, SRLI, and SRAI. Thus, downstream tooling that relies on these to connote the RV64 variants of these instructions is semantically affected. Fix by reverting SLLI etc. to being the RV64 variants. --- rv32_i | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rv32_i') diff --git a/rv32_i b/rv32_i index 61f6c2e..7e4da0f 100644 --- a/rv32_i +++ b/rv32_i @@ -1,3 +1,3 @@ -$pseudo_op rv128_i::slli slli rd rs1 shamtw 31..25=0 14..12=1 6..2=0x04 1..0=3 -$pseudo_op rv128_i::srli srli rd rs1 shamtw 31..25=0 14..12=5 6..2=0x04 1..0=3 -$pseudo_op rv128_i::srai srai rd rs1 shamtw 31..25=32 14..12=5 6..2=0x04 1..0=3 +$pseudo_op rv128_i::slli slli_rv32 rd rs1 shamtw 31..25=0 14..12=1 6..2=0x04 1..0=3 +$pseudo_op rv128_i::srli srli_rv32 rd rs1 shamtw 31..25=0 14..12=5 6..2=0x04 1..0=3 +$pseudo_op rv128_i::srai srai_rv32 rd rs1 shamtw 31..25=32 14..12=5 6..2=0x04 1..0=3 -- cgit v1.1