URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 157 |
# sh testcase for lds $rn, mach
|
# sh testcase for lds $rn, mach
|
# mach: all
|
# mach: all
|
# as: -isa=shcompact
|
# as: -isa=shcompact
|
# ld: -m shelf32
|
# ld: -m shelf32
|
|
|
.include "compact/testutils.inc"
|
.include "compact/testutils.inc"
|
|
|
start
|
start
|
|
|
.global lds_mach
|
.global lds_mach
|
lds_mach:
|
lds_mach:
|
mov #41, r0
|
mov #41, r0
|
shll8 r0
|
shll8 r0
|
lds r0, mach
|
lds r0, mach
|
readback:
|
readback:
|
sts mach, r1
|
sts mach, r1
|
cmp/eq r0, r1
|
cmp/eq r0, r1
|
bf wrong
|
bf wrong
|
|
|
okay:
|
okay:
|
pass
|
pass
|
wrong:
|
wrong:
|
fail
|
fail
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.