binutils-gdb/sim/testsuite/frv/cjmpl.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

56 lines
864 B
Plaintext

# frv testcase for cjmpl @($GRi,$GRj),$CCi,$cond
# mach: all
.include "testutils.inc"
start
.global cjmpl
cjmpl:
set_spr_immed 0x1b1b,cccr
set_spr_immed 0,lr
set_gr_addr ok1,gr8
set_gr_immed 0,gr9
cjmpl @(gr8,gr9),cc0,1
fail
ok1:
test_spr_immed 0,lr
set_spr_immed 0,lr
set_gr_addr bad,gr8
set_gr_immed 0,gr9
cjmpl @(gr8,gr9),cc0,0
test_spr_immed 0,lr
set_spr_immed 0,lr
set_gr_addr ok4,gr8
set_gr_immed 3,gr9 ; target gets aligned down
cjmpl @(gr8,gr9),cc1,0
fail
ok4:
test_spr_immed 0,lr
set_spr_immed 0,lr
set_gr_addr bad,gr8
set_gr_immed 0,gr9
cjmpl @(gr8,gr9),cc1,1
test_spr_immed 0,lr
set_spr_immed 0,lr
set_gr_addr bad,gr8
set_gr_immed 0,gr9
cjmpl @(gr8,gr9),cc2,0
test_spr_immed 0,lr
set_spr_immed 0,lr
set_gr_addr bad,gr8
set_gr_immed 0,gr9
cjmpl @(gr8,gr9),cc3,1
test_spr_immed 0,lr
pass
bad:
fail