URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [branches/] [oc/] [gdb-5.0/] [sim/] [testsuite/] [d30v-elf/] [ls-modaddr.S] - Rev 1765
Compare with Previous | Blame | View Log
; Modular address postincrement/postdecrement teststart:; program PSW for modular address modeadd r1,r0,0x81000000nop || nopmvtsys psw,r1 || nopnop || noptest1:; set modular address limits: 0x18 bytesadd r1,r0,0x20000070 ; [start, ...nop || nopmvtsys mod_s,r1 || nopnop || nopadd r1,r0,0x20000088 ; ..., end)nop || nopmvtsys mod_e,r1 || nop; modular autoincrement testadd r30,r0,0x20000070 ; base address = mod_sld2w r40,@(r30+,r0) || nop ; after: r30 = ...078ld2w r40,@(r30+,r0) || nop ; after: r30 = ...080ld2w r40,@(r30+,r0) || nop ; after: r30 = ...070add r29,r0,0x20000070 ; expected end address; wrapping aroundcmpeq f1,r30,r29bra/xf failtest2:; set modular address limits: 0x18 bytesadd r1,r0,0x20000088 ; [start, ...nop || nopmvtsys mod_s,r1 || nopnop || nopadd r1,r0,0x20000070 ; ..., end)nop || nopmvtsys mod_e,r1 || nop; modular autodecrement testadd r30,r0,0x20000088 ; base address = mod_sld2w r40,@(r30-,r0) || nop ; after: r30 = ...080ld2w r40,@(r30-,r0) || nop ; after: r30 = ...078ld2w r40,@(r30-,r0) || nop ; after: r30 = ...088add r29,r0,0x20000088 ; expected end address; wrapping aroundcmpeq f1,r30,r29bra/xf failok:add r2,r0,0.long 0x0e000004, 0x00f00000fail:add r2,r0,47.long 0x0e000004, 0x00f00000
