URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 33 |
# sh testcase for beqi$likely $rm, $imm6, $tra -*- Asm -*-
|
# sh testcase for beqi$likely $rm, $imm6, $tra -*- 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 beqi
|
.global beqi
|
init:
|
init:
|
# Load up the branch target registers.
|
# Load up the branch target registers.
|
pta beqi2, tr0
|
pta beqi2, tr0
|
pta beqi3, tr1
|
pta beqi3, tr1
|
pta wrong, tr2
|
pta wrong, tr2
|
|
|
beqi1:
|
beqi1:
|
# Always true, so branch likely.
|
# Always true, so branch likely.
|
movi 1, r0
|
movi 1, r0
|
beqi/l r0, 1, tr0
|
beqi/l r0, 1, tr0
|
# We should branch over this.
|
# We should branch over this.
|
fail
|
fail
|
|
|
beqi2:
|
beqi2:
|
movi 22, r3
|
movi 22, r3
|
beqi r3, 22, tr1
|
beqi r3, 22, tr1
|
# We should branch over this.
|
# We should branch over this.
|
fail
|
fail
|
|
|
beqi3:
|
beqi3:
|
movi 27, r7
|
movi 27, r7
|
# We shouldn't branch here.
|
# We shouldn't branch here.
|
beqi/u r7, 23, tr2
|
beqi/u r7, 23, tr2
|
# We should proceed to pass here.
|
# We should proceed to pass here.
|
|
|
okay:
|
okay:
|
pass
|
pass
|
|
|
wrong:
|
wrong:
|
fail
|
fail
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.