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 cmp/pl $rn -*- Asm -*-
|
# sh testcase for cmp/pl $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
|
|
|
zero:
|
zero:
|
mov #0, r0
|
mov #0, r0
|
cmp/pl r0
|
cmp/pl r0
|
bt wrong
|
bt wrong
|
|
|
plus:
|
plus:
|
mov #10, r0
|
mov #10, r0
|
cmp/pl r0
|
cmp/pl r0
|
bf wrong
|
bf wrong
|
|
|
minus:
|
minus:
|
mov #10, r0
|
mov #10, r0
|
neg r0, r0
|
neg r0, r0
|
cmp/pl r0
|
cmp/pl r0
|
bt wrong
|
bt wrong
|
|
|
large:
|
large:
|
mov #10, r0
|
mov #10, r0
|
shll8 r0
|
shll8 r0
|
add #123, r0
|
add #123, r0
|
cmp/pl r0
|
cmp/pl r0
|
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.