Browse Source

[xcc,sim] rv64 'w' instruction semantics changed

they no longer require their inputs to be canonicalized 32b values, so
this speeds up mixed int/long code sequences.
cs250
Andrew Waterman 16 years ago
parent
commit
c6b549289a
  1. 2
      riscv/insns/srai.h
  2. 2
      riscv/insns/sraiw.h

2
riscv/insns/srai.h

@ -4,5 +4,5 @@ else
{
if(SHAMT & 0x20)
throw trap_illegal_instruction;
RD = sext32(sreg_t(RS1) >> SHAMT);
RD = sext32(int32_t(RS1) >> SHAMT);
}

2
riscv/insns/sraiw.h

@ -1,2 +1,2 @@
require_xpr64;
RD = sext32(sreg_t(RS1) >> SHAMTW);
RD = sext32(int32_t(RS1) >> SHAMTW);

Loading…
Cancel
Save