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