OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [tests/] [or1200/] [sim/] [or1200-ov.S] - Diff between revs 502 and 803

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 502 Rev 803
Line 263... Line 263...
        CHECK_OV_SET
        CHECK_OV_SET
 
 
        l.add   r3, r0, r0      ;// Should clear overflow
        l.add   r3, r0, r0      ;// Should clear overflow
        l.nop   0x2
        l.nop   0x2
        CHECK_OV_CLEAR
        CHECK_OV_CLEAR
 
 
 
        // Subtract the biggest negative number from the
 
        // biggest positive number.
 
        l.movhi r4,0x7fff
 
        l.ori   r4,r4,0xffff
 
        l.movhi r5,0x8000
 
        l.sub   r3,r4,r5
 
        l.nop   2
 
        CHECK_OV_SET
 
 
#endif
#endif
 
 
        l.movhi r4, 0x8000
        l.movhi r4, 0x8000
        l.ori   r4, r4, 0x0437
        l.ori   r4, r4, 0x0437
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.