Andes Workshop

It is currently Fri Mar 29, 2024 1:35 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Overflow flag substitute
PostPosted: Fri Jul 12, 2013 3:46 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
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.


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group