Overflow flag substitute
For overflow detection issue, Andes use some instructions to judge overflow instead of overflow flag. 1) In case signed value overflow detection, you can use "sva" and "svs" instructions. For detail instruction description, please refer to AndeStar_ISA_UM025_V1.4.pdf. 2) In case unsigned value overflow detection, assume A and B are unsigned variable, overflow will happen A + B < A So, if you want to know if it is overflow of the result of A + B, you can use instructions like "slt" (Set on Less Than) to judge overflow.
|