Rationale was that since we have the datapath for rc = (ra < rb),
it's straightforward to also add rc = !(imm < rb) = (rb <= imm).
}
case 0x2:
{
- #include "insns/slti.h"
+ #include "insns/slei.h"
break;
}
case 0x3:
{
- #include "insns/sltiu.h"
+ #include "insns/sleiu.h"
break;
}
case 0x4:
--- /dev/null
+RA = !(sreg_t(cmp_trunc(SIMM)) < sreg_t(cmp_trunc(RB)));
--- /dev/null
+RA = !(cmp_trunc(SIMM) < cmp_trunc(RB));
+++ /dev/null
-RA = sreg_t(cmp_trunc(RB)) < sreg_t(cmp_trunc(SIMM));
+++ /dev/null
-RA = cmp_trunc(RB) < cmp_trunc(SIMM);