Re: multiply accumulator overflow detection



knguyen wrote:

I am writing a function that perform multiplication and accumulation
in MIPS, the results are stored into Hi and Lo registers. The overflow
might occur during the accumulation. How do I detect overflow when the
results are stored in two registers?

I'm not familiar with the MIPS architecture. As far as I remember in the
R2000/R3000 MIPS processors the add instruction generated an exception if
a overflow occurred. But you should find the answer to your question in
the processor manual.
.



Relevant Pages

  • Re: signed/unsigned ALU operations
    ... conditional branch on the overflow bit, ... Assuming that there is such a thing as an overflow bit. ... If you're mentioning MIPS, it's a good example of a feature I don't ... MIPS has ADD and ADDU on 32-bit registers. ...
    (comp.arch)
  • Re: signed/unsigned ALU operations
    ... processors have any condition flags such as an overflow bit. ... MIPS has ADD and ADDU on 32-bit registers. ...
    (comp.arch)
  • multiply accumulator overflow detection
    ... I am writing a function that perform multiplication and accumulation ... in MIPS, the results are stored into Hi and Lo registers. ... How do I detect overflow when the ...
    (alt.lang.asm)
  • Re: [PATCH v1 3/5] mips function graph tracer support
    ... was that we made a branch based off of linus's tree and did only ... pretty sure you can just save the return code registers of the function. ... But I don not remember the mips binary api. ... CPU 0 Unable to handle kernel paging request at virtual address ...
    (Linux-Kernel)
  • pointer one past malloc.ed memory
    ... The last byte of malloc.ed memory is written a magic. ... Sorry i had to give some platform specific details. ... Or is it just another case of overflow and we can not blame MIPS ...
    (comp.lang.c)