According to riscv.spec v2.2, AUIPC and JALR are combined to enable 32-bit absolute relative jump.But you could only add unsigned immediate to pc using AUIPC, how could this enable 32-bit negative jump?
--
You received this message because you are subscribed to the Google Groups "RISC-V ISA Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isa-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to isa...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/isa-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/045e8d8a-e87a-483b-93bb-2de9a6524e1f%40groups.riscv.org.
If the MSB of the 20b immediate in AUIPC is 1, it represents a negative number.In RV32, that bit becomes bit [31] of the offset, which is the sign bit.In RV64, that bit is sign-extended to bit [63] (see line 1, p31, user ISA spec v2.2).Nikhil
On Tue, Aug 7, 2018 at 5:45 AM, b little <ror...@gmail.com> wrote:
According to riscv.spec v2.2, AUIPC and JALR are combined to enable 32-bit absolute relative jump.But you could only add unsigned immediate to pc using AUIPC, how could this enable 32-bit negative jump?
--
You received this message because you are subscribed to the Google Groups "RISC-V ISA Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isa-dev+u...@groups.riscv.org.
According to riscv.spec v2.2, AUIPC and JALR are combined to enable 32-bit absolute relative jump.But you could only add unsigned immediate to pc using AUIPC, how could this enable 32-bit negative jump?