URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 33 |
# fr30 testcase for ldm1 ($reglist_low)
|
# fr30 testcase for ldm1 ($reglist_low)
|
# mach(): fr30
|
# mach(): fr30
|
|
|
.include "testutils.inc"
|
.include "testutils.inc"
|
|
|
START
|
START
|
|
|
.text
|
.text
|
.global ldm1
|
.global ldm1
|
ldm1:
|
ldm1:
|
; Test ldm1 ($reglist_low)
|
; Test ldm1 ($reglist_low)
|
mvr_h_gr sp,r1 ; save stack pointer permanently
|
mvr_h_gr sp,r1 ; save stack pointer permanently
|
inci_h_gr -4,sp
|
inci_h_gr -4,sp
|
mvi_h_mem 3,sp
|
mvi_h_mem 3,sp
|
inci_h_gr -4,sp
|
inci_h_gr -4,sp
|
mvi_h_mem 2,sp
|
mvi_h_mem 2,sp
|
inci_h_gr -4,sp
|
inci_h_gr -4,sp
|
mvi_h_mem 1,sp
|
mvi_h_mem 1,sp
|
inci_h_gr -4,sp
|
inci_h_gr -4,sp
|
mvi_h_mem 0,sp
|
mvi_h_mem 0,sp
|
|
|
set_cc 0x0f ; Condition codes should not change
|
set_cc 0x0f ; Condition codes should not change
|
ldm1 (r8,r10,r12,r14)
|
ldm1 (r8,r10,r12,r14)
|
test_cc 1 1 1 1
|
test_cc 1 1 1 1
|
testr_h_gr sp,r1
|
testr_h_gr sp,r1
|
test_h_gr 0,r8
|
test_h_gr 0,r8
|
test_h_gr 1,r10
|
test_h_gr 1,r10
|
test_h_gr 2,r12
|
test_h_gr 2,r12
|
test_h_gr 3,r14
|
test_h_gr 3,r14
|
|
|
inci_h_gr -16,sp
|
inci_h_gr -16,sp
|
set_cc 0x0f ; Condition codes should not change
|
set_cc 0x0f ; Condition codes should not change
|
ldm1 (r9,r11,r13,r15)
|
ldm1 (r9,r11,r13,r15)
|
test_cc 1 1 1 1
|
test_cc 1 1 1 1
|
test_h_gr 0,r9
|
test_h_gr 0,r9
|
test_h_gr 1,r11
|
test_h_gr 1,r11
|
test_h_gr 2,r13
|
test_h_gr 2,r13
|
test_h_gr 3,r15
|
test_h_gr 3,r15
|
|
|
mvr_h_gr r1,sp ; restore stack pointer
|
mvr_h_gr r1,sp ; restore stack pointer
|
inci_h_gr -16,sp
|
inci_h_gr -16,sp
|
set_cc 0x0f ; Condition codes should not change
|
set_cc 0x0f ; Condition codes should not change
|
ldm1 (r9,r13,r15,r11); Order speficied should not matter
|
ldm1 (r9,r13,r15,r11); Order speficied should not matter
|
test_cc 1 1 1 1
|
test_cc 1 1 1 1
|
test_h_gr 0,r9
|
test_h_gr 0,r9
|
test_h_gr 1,r11
|
test_h_gr 1,r11
|
test_h_gr 2,r13
|
test_h_gr 2,r13
|
test_h_gr 3,r15
|
test_h_gr 3,r15
|
|
|
mvr_h_gr r1,sp ; restore stack pointer
|
mvr_h_gr r1,sp ; restore stack pointer
|
set_cc 0x0f ; Condition codes should not change
|
set_cc 0x0f ; Condition codes should not change
|
ldm1 () ; Nothing should happen
|
ldm1 () ; Nothing should happen
|
test_cc 1 1 1 1
|
test_cc 1 1 1 1
|
testr_h_gr sp,r1
|
testr_h_gr sp,r1
|
test_h_gr 0,r9
|
test_h_gr 0,r9
|
test_h_gr 1,r11
|
test_h_gr 1,r11
|
test_h_gr 2,r13
|
test_h_gr 2,r13
|
|
|
pass
|
pass
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.