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 157 |
Rev 223 |
# sh testcase for sthi.q $rm, $disp6, $rd -*- Asm -*-
|
# sh testcase for sthi.q $rm, $disp6, $rd -*- Asm -*-
|
# mach: all
|
# mach: all
|
# as: -isa=shmedia
|
# as: -isa=shmedia
|
# ld: -m shelf64
|
# ld: -m shelf64
|
|
|
.include "media/testutils.inc"
|
.include "media/testutils.inc"
|
|
|
start
|
start
|
|
|
init:
|
init:
|
pta wrong, tr0
|
pta wrong, tr0
|
|
|
movi 40, r0
|
movi 40, r0
|
shlli r0, 8, r0
|
shlli r0, 8, r0
|
|
|
movi 0x1020, r1
|
movi 0x1020, r1
|
shlli r1, 8, r1
|
shlli r1, 8, r1
|
addi r1, 0x30, r1
|
addi r1, 0x30, r1
|
shlli r1, 8, r1
|
shlli r1, 8, r1
|
addi r1, 0x40, r1
|
addi r1, 0x40, r1
|
shlli r1, 8, r1
|
shlli r1, 8, r1
|
addi r1, 0x50, r1
|
addi r1, 0x50, r1
|
shlli r1, 8, r1
|
shlli r1, 8, r1
|
addi r1, 0x60, r1
|
addi r1, 0x60, r1
|
shlli r1, 8, r1
|
shlli r1, 8, r1
|
addi r1, 0x70, r1
|
addi r1, 0x70, r1
|
shlli r1, 8, r1
|
shlli r1, 8, r1
|
addi r1, 0x80, r1
|
addi r1, 0x80, r1
|
|
|
sthiq1:
|
sthiq1:
|
sthi.q r0, 0, r1
|
sthi.q r0, 0, r1
|
|
|
sthiq2:
|
sthiq2:
|
sthi.q r0, 1, r1
|
sthi.q r0, 1, r1
|
|
|
sthiq3:
|
sthiq3:
|
sthi.q r0, 2, r1
|
sthi.q r0, 2, r1
|
|
|
sthiq4:
|
sthiq4:
|
sthi.q r0, 3, r1
|
sthi.q r0, 3, r1
|
|
|
sthiq5:
|
sthiq5:
|
sthi.q r0, 4, r1
|
sthi.q r0, 4, r1
|
|
|
sthiq6:
|
sthiq6:
|
sthi.q r0, 5, r1
|
sthi.q r0, 5, r1
|
|
|
sthiq7:
|
sthiq7:
|
sthi.q r0, 6, r1
|
sthi.q r0, 6, r1
|
|
|
sthiq8:
|
sthiq8:
|
sthi.q r0, 7, r1
|
sthi.q r0, 7, r1
|
|
|
sthiq9:
|
sthiq9:
|
sthi.q r0, -1, r1
|
sthi.q r0, -1, r1
|
|
|
sthiq10:
|
sthiq10:
|
sthi.q r0, -2, r1
|
sthi.q r0, -2, r1
|
|
|
sthiq11:
|
sthiq11:
|
sthi.q r0, -3, r1
|
sthi.q r0, -3, r1
|
|
|
sthiq12:
|
sthiq12:
|
sthi.q r0, -4, r1
|
sthi.q r0, -4, r1
|
|
|
sthiq13:
|
sthiq13:
|
sthi.q r0, -5, r1
|
sthi.q r0, -5, r1
|
|
|
sthiq14:
|
sthiq14:
|
sthi.q r0, -6, r1
|
sthi.q r0, -6, r1
|
|
|
sthiq15:
|
sthiq15:
|
sthi.q r0, -7, r1
|
sthi.q r0, -7, r1
|
|
|
okay:
|
okay:
|
pass
|
pass
|
|
|
wrong:
|
wrong:
|
fail
|
fail
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.