URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [gdb-5.3/] [sim/] [testsuite/] [sim/] [fr30/] [ldm1.cgs] - Rev 1765
Compare with Previous | Blame | View Log
# fr30 testcase for ldm1 ($reglist_low)# mach(): fr30.include "testutils.inc"START.text.global ldm1ldm1:; Test ldm1 ($reglist_low)mvr_h_gr sp,r1 ; save stack pointer permanentlyinci_h_gr -4,spmvi_h_mem 3,spinci_h_gr -4,spmvi_h_mem 2,spinci_h_gr -4,spmvi_h_mem 1,spinci_h_gr -4,spmvi_h_mem 0,spset_cc 0x0f ; Condition codes should not changeldm1 (r8,r10,r12,r14)test_cc 1 1 1 1testr_h_gr sp,r1test_h_gr 0,r8test_h_gr 1,r10test_h_gr 2,r12test_h_gr 3,r14inci_h_gr -16,spset_cc 0x0f ; Condition codes should not changeldm1 (r9,r11,r13,r15)test_cc 1 1 1 1test_h_gr 0,r9test_h_gr 1,r11test_h_gr 2,r13test_h_gr 3,r15mvr_h_gr r1,sp ; restore stack pointerinci_h_gr -16,spset_cc 0x0f ; Condition codes should not changeldm1 (r9,r13,r15,r11); Order speficied should not mattertest_cc 1 1 1 1test_h_gr 0,r9test_h_gr 1,r11test_h_gr 2,r13test_h_gr 3,r15mvr_h_gr r1,sp ; restore stack pointerset_cc 0x0f ; Condition codes should not changeldm1 () ; Nothing should happentest_cc 1 1 1 1testr_h_gr sp,r1test_h_gr 0,r9test_h_gr 1,r11test_h_gr 2,r13pass
