You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch handles both signed and unsigned
builtin multiplication overflow.
Uses the "mpy.f" instruction to set the condition
codes based on the result. In the event of an
overflow, the V flag is set, triggering a
conditional move depending on the V flag status.
For example, set "1" to "r0" in case of overflow:
mov_s r0,1
mpy.f r0,r0,r1
j_s.d [blink]
mov.nv r0,0
Signed-off-by: Luis Silva <[email protected]>
0 commit comments