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 madd.l $rm, $rn, $rd -*- Asm -*-
|
# sh testcase for madd.l $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
|
|
|
init:
|
init:
|
pta wrong, tr0
|
pta wrong, tr0
|
|
|
maddl:
|
maddl:
|
# Load { 1 2 } into r0.
|
# Load { 1 2 } into r0.
|
_packl 1, 2, r0
|
_packl 1, 2, r0
|
# Load { 3 4 } into r1.
|
# Load { 3 4 } into r1.
|
_packl 3, 4, r1
|
_packl 3, 4, r1
|
|
|
# Add slices to produce { 4 6 }.
|
# Add slices to produce { 4 6 }.
|
madd.l r0, r1, r2
|
madd.l r0, r1, r2
|
|
|
_packl 4, 6, r3
|
_packl 4, 6, r3
|
bne r2, r3, tr0
|
bne r2, r3, tr0
|
|
|
okay:
|
okay:
|
pass
|
pass
|
|
|
wrong:
|
wrong:
|
fail
|
fail
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.