Open fvogels opened 10 months ago
Yes, it should indeed be sign-extended. These (and maybe other uncovered) bugs are remnants of the "bi-translation" of MinimalCaps (which was initially written directly in microSail). Note that these bugs are only part of the Sail spec of MinimalCaps. The microSail implementation doesn't use bitvectors yet (nor has it any kind of alignment restrictions).
imm
gets zero-extended, but shouldn't this be sign-extended? From the corresponding CHERI RISC-V Sail code:Also note that the lsb is set to 0.