Browse Source
This reverts commit bf5406d4df625678bc6ec20ce1d48541541dba54. We found a clever way to efficiently implement slti/sltiu despite the reversed operands. The trick is because of the following fact: (a < b) === !(b <= a) === !(b-1 < a) So just turn off the carry-in when doing the subtraction for the comparison.cs250
5 changed files with 4 additions and 4 deletions
@ -1 +0,0 @@ |
|||
RA = !(sreg_t(cmp_trunc(SIMM)) < sreg_t(cmp_trunc(RB))); |
|||
@ -1 +0,0 @@ |
|||
RA = !(cmp_trunc(SIMM) < cmp_trunc(RB)); |
|||
@ -0,0 +1 @@ |
|||
RA = sreg_t(cmp_trunc(RB)) < sreg_t(cmp_trunc(SIMM)); |
|||
@ -0,0 +1 @@ |
|||
RA = cmp_trunc(RB) < cmp_trunc(SIMM); |
|||
Loading…
Reference in new issue