binutils-gdb/sim/testsuite/frv/dcf.cgs
Mike Frysinger 1368b914e9 sim: testsuite: flatten tree
Now that all port tests live under testsuite/sim/*/, and none live
in testsuite/ directly, flatten the structure by moving all of the
dirs under testsuite/sim/ to testsuite/ directly.

We need to stop passing --tool to dejagnu so that it searches all
dirs and not just ones that start with "sim".  Since we have no
other dirs in this tree, and no plans to add any, should be fine.
2021-01-15 19:18:34 -05:00

40 lines
752 B
Plaintext

# FRV testcase for dcf @(GRi,GRj)
# mach: all
.include "testutils.inc"
start
.global dcf
dcf:
and_spr_immed 0x7fffffff,hsr0 ; data cache only: copy-back mode
set_gr_addr doit,gr10
set_gr_immed 0,gr11
set_gr_immed 1,gr12
set_gr_immed 2,gr13
set_spr_addr ok1,lr
bra doit
ok1: test_gr_immed 1,gr11
set_mem_immed 0x9600b00d,gr10 ; change to add gr11,gr13,gr11 in cache
set_spr_addr ok2,lr
bra doit
ok2: test_gr_immed 2,gr11 ; still only added 1
set_gr_addr doit1,gr10
set_mem_immed 0x9600b00d,gr10 ; change to add gr11,gr13,gr11 in cache
dcf @(gr10,gr0) ; flush data cache
set_spr_addr ok3,lr
bra doit1
ok3: test_gr_immed 4,gr11 ; added 2 this time
pass
doit: add gr11,gr12,gr11
bralr
doit1: add gr11,gr12,gr11
bralr