URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 835 |
Rev 841 |
# cr16 testcase for cmpd (regp), (regp)
|
# cr16 testcase for cmpd (regp), (regp)
|
# mach(): cr16
|
# mach(): cr16
|
|
|
.include "testutils.inc"
|
.include "testutils.inc"
|
|
|
start
|
start
|
|
|
.global cmpd
|
.global cmpd
|
cmpd:
|
cmpd:
|
mvi_h_condbit 0
|
mvi_h_condbit 0
|
movd $0x12345678, (r4,r3)
|
movd $0x12345678, (r4,r3)
|
movd $0x12345678, (r6,r5)
|
movd $0x12345678, (r6,r5)
|
cmpd (r4,r3), (r6,r5)
|
cmpd (r4,r3), (r6,r5)
|
beq ok
|
beq ok
|
not_ok:
|
not_ok:
|
fail
|
fail
|
ok:
|
ok:
|
mvi_h_condbit 1
|
mvi_h_condbit 1
|
movd $0x12341234, (r6,r5)
|
movd $0x12341234, (r6,r5)
|
cmpd (r4,r3), (r6,r5)
|
cmpd (r4,r3), (r6,r5)
|
beq not_ok
|
beq not_ok
|
|
|
pass
|
pass
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.