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 rotr $rn -*- Asm -*-
|
# sh testcase for rotr $rn -*- Asm -*-
|
# 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 rotr
|
.global rotr
|
rotr:
|
rotr:
|
mov #1, r1
|
mov #1, r1
|
rotr r1
|
rotr r1
|
bf wrong
|
bf wrong
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
assert r1, #1
|
assert r1, #1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
rotr r1
|
|
|
okay:
|
okay:
|
pass
|
pass
|
|
|
wrong:
|
wrong:
|
fail
|
fail
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.