URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 157 |
Rev 223 |
# sh testcase for ldx.ub $rm, $rn, $rd -*- Asm -*-
|
# sh testcase for ldx.ub $rm, $rn, $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
|
ldxub1:
|
ldxub1:
|
movi 20, r3
|
movi 20, r3
|
shlli r3, 8, r3
|
shlli r3, 8, r3
|
movi 0, r4
|
movi 0, r4
|
ldx.ub r3, r4, r0
|
ldx.ub r3, r4, r0
|
|
|
ldxub2:
|
ldxub2:
|
movi 20, r3
|
movi 20, r3
|
shlli r3, 8, r3
|
shlli r3, 8, r3
|
movi 1, r4
|
movi 1, r4
|
ldx.ub r3, r4, r0
|
ldx.ub r3, r4, r0
|
|
|
ldxub3:
|
ldxub3:
|
movi 20, r3
|
movi 20, r3
|
shlli r3, 8, r3
|
shlli r3, 8, r3
|
movi -1, r4
|
movi -1, r4
|
ldx.ub r3, r4, r0
|
ldx.ub r3, r4, r0
|
|
|
okay:
|
okay:
|
pass
|
pass
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.