akraievoy / elw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SLTU works the same as SLT

divijan opened this issue · comments

commented

As far as I know, SLTU treats its two sources as unsigned numbers, therefore any negative should appear greater than any non-negative. I tried to compare FFFFFFFA with 00000000 using both instructions and result was the same: 1 (i.e., first argument was LESS than second argument). I have a reason to suspect SLTIU has the same problem. It actually DOES