URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 157 |
# sh testcase for add $rm, $rn, $rd -*- Asm -*-
|
# sh testcase for add $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
|
|
|
.global add
|
.global add
|
init:
|
init:
|
pta wrong, tr0
|
pta wrong, tr0
|
add:
|
add:
|
movi 10, r0
|
movi 10, r0
|
movi 0, r1
|
movi 0, r1
|
add r0, r1, r3
|
add r0, r1, r3
|
movi 10, r4
|
movi 10, r4
|
bne r3, r4, tr0
|
bne r3, r4, tr0
|
|
|
add0:
|
add0:
|
movi 1, r63
|
movi 1, r63
|
add r63, r63, r1
|
add r63, r63, r1
|
bnei r1, 0, tr0
|
bnei r1, 0, tr0
|
|
|
add2:
|
add2:
|
movi 0, r0
|
movi 0, r0
|
movi 10, r1
|
movi 10, r1
|
add r0, r1, r3
|
add r0, r1, r3
|
movi 10, r4
|
movi 10, r4
|
bne r3, r4, tr0
|
bne r3, r4, tr0
|
|
|
add3:
|
add3:
|
movi 10, r1
|
movi 10, r1
|
add r63, r1, r3
|
add r63, r1, r3
|
movi 10, r4
|
movi 10, r4
|
bne r3, r4, tr0
|
bne r3, r4, tr0
|
|
|
add4:
|
add4:
|
movi 10, r1
|
movi 10, r1
|
add r1, r63, r3
|
add r1, r63, r3
|
movi 10, r4
|
movi 10, r4
|
bne r3, r4, tr0
|
bne r3, r4, tr0
|
|
|
okay:
|
okay:
|
pass
|
pass
|
wrong:
|
wrong:
|
fail
|
fail
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.