URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 157 |
Rev 223 |
# fr30 testcase for xchb @$Rj,Ri
|
# fr30 testcase for xchb @$Rj,Ri
|
# mach(): fr30
|
# mach(): fr30
|
|
|
.include "testutils.inc"
|
.include "testutils.inc"
|
|
|
START
|
START
|
|
|
.text
|
.text
|
.global xchb
|
.global xchb
|
xchb:
|
xchb:
|
; Test xchb @$Rj,Ri
|
; Test xchb @$Rj,Ri
|
mvi_h_mem 0xdeadbeef,sp
|
mvi_h_mem 0xdeadbeef,sp
|
mvi_h_gr 0xbeefdead,r0
|
mvi_h_gr 0xbeefdead,r0
|
set_cc 0x0f ; Condition codes are irrelevent
|
set_cc 0x0f ; Condition codes are irrelevent
|
xchb @sp,r0
|
xchb @sp,r0
|
test_cc 1 1 1 1
|
test_cc 1 1 1 1
|
test_h_gr 0xde,r0
|
test_h_gr 0xde,r0
|
test_h_mem 0xadadbeef,sp
|
test_h_mem 0xadadbeef,sp
|
|
|
pass
|
pass
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.