mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
1368b914e9
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.
52 lines
744 B
Plaintext
52 lines
744 B
Plaintext
# frv parallel testcase for lr branching
|
|
# mach: fr500 fr550 frv
|
|
|
|
.include "testutils.inc"
|
|
|
|
start
|
|
|
|
.global lrbranch
|
|
lrbranch:
|
|
; Both conditions true
|
|
set_spr_immed 128,lcr
|
|
set_spr_addr ok1,lr
|
|
set_icc 0x4 0
|
|
bcgelr.p icc0,0,0
|
|
bra ok4
|
|
fail
|
|
ok1:
|
|
test_spr_immed 127,LCR
|
|
|
|
; Only first condition true
|
|
set_spr_immed 128,lcr
|
|
set_spr_addr ok2,lr
|
|
set_icc 0x0 0
|
|
bcgelr.p icc0,0,0
|
|
bno
|
|
fail
|
|
ok2:
|
|
test_spr_immed 127,LCR
|
|
|
|
; Only second condition true
|
|
set_spr_immed 128,lcr
|
|
set_spr_addr ok3,lr
|
|
set_icc 0x8 0
|
|
bcgelr.p icc0,0,0
|
|
bra ok3
|
|
fail
|
|
ok3:
|
|
test_spr_immed 127,LCR
|
|
|
|
; Both conditions false
|
|
set_spr_immed 128,lcr
|
|
set_spr_addr ok4,lr
|
|
set_icc 0x0 0
|
|
bceqlr.p icc0,0,0
|
|
bno
|
|
test_spr_immed 127,LCR
|
|
|
|
pass
|
|
|
|
ok4:
|
|
fail
|