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 |
# m32r testcase for subx $dr,$sr
|
# m32r testcase for subx $dr,$sr
|
# mach(): m32r m32rx
|
# mach(): m32r m32rx
|
|
|
.include "testutils.inc"
|
.include "testutils.inc"
|
|
|
start
|
start
|
|
|
.global subx
|
.global subx
|
subx:
|
subx:
|
mvi_h_condbit 1
|
mvi_h_condbit 1
|
mvi_h_gr r4, 6
|
mvi_h_gr r4, 6
|
mvi_h_gr r5, 4
|
mvi_h_gr r5, 4
|
subx r4, r5
|
subx r4, r5
|
bc not_ok
|
bc not_ok
|
test_h_gr r4, 1
|
test_h_gr r4, 1
|
|
|
mvi_h_condbit 1
|
mvi_h_condbit 1
|
mvi_h_gr r4, 4
|
mvi_h_gr r4, 4
|
mvi_h_gr r5, 4
|
mvi_h_gr r5, 4
|
subx r4, r5
|
subx r4, r5
|
bnc not_ok
|
bnc not_ok
|
test_h_gr r4, 0xffffffff
|
test_h_gr r4, 0xffffffff
|
|
|
pass
|
pass
|
not_ok:
|
not_ok:
|
fail
|
fail
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.