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 157 |
Rev 223 |
# sh testcase for ori $rm, $imm10, $rd -*- Asm -*-
|
# sh testcase for ori $rm, $imm10, $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
|
init:
|
init:
|
pta wrong, tr0
|
pta wrong, tr0
|
|
|
or1:
|
or1:
|
movi 0, r0
|
movi 0, r0
|
ori r0, 0, r1
|
ori r0, 0, r1
|
bnei r1, 0, tr0
|
bnei r1, 0, tr0
|
|
|
or2:
|
or2:
|
movi 0, r0
|
movi 0, r0
|
ori r0, 1, r2
|
ori r0, 1, r2
|
bnei r2, 1, tr0
|
bnei r2, 1, tr0
|
|
|
or3:
|
or3:
|
movi 1, r0
|
movi 1, r0
|
ori r0, 0, r2
|
ori r0, 0, r2
|
bnei r2, 1, tr0
|
bnei r2, 1, tr0
|
|
|
or4:
|
or4:
|
movi 1, r0
|
movi 1, r0
|
ori r0, 1, r1
|
ori r0, 1, r1
|
bnei r1, 1, tr0
|
bnei r1, 1, tr0
|
|
|
or5:
|
or5:
|
movi 1, r0
|
movi 1, r0
|
shlli r0, 63, r0
|
shlli r0, 63, r0
|
ori r0, 1, r2
|
ori r0, 1, r2
|
|
|
okay:
|
okay:
|
pass
|
pass
|
|
|
wrong:
|
wrong:
|
fail
|
fail
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.