binutils-gdb/sim/testsuite/cris/asm/addcv32r.ms
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

58 lines
722 B
Plaintext

# mach: crisv32
# output: 0\n0\n1\n1\n2\n1ffff\nfffffffe\ncc463bdc\n
.include "testutils.inc"
start
clearf cz
moveq 0,r3
moveq 0,r4
addc r4,r3
test_cc 0 0 0 0
dumpr3 ; 0
setf z
moveq 0,r3
moveq 0,r4
addc r4,r3
test_cc 0 1 0 0
dumpr3 ; 0
setf cz
moveq 0,r3
moveq 0,r4
addc r4,r3
test_cc 0 0 0 0
dumpr3 ; 1
moveq -1,r3
moveq 2,r4
addc r4,r3
test_cc 0 0 0 1
dumpr3 ; 1+c
moveq 2,r3
moveq -1,r4
addc r4,r3
test_cc 0 0 0 1
dumpr3 ; 2+c
move.d 0xffff,r4
move.d r4,r3
addc r4,r3
test_cc 0 0 0 0
dumpr3 ; 1ffff
moveq -1,r4
move.d r4,r3
addc r4,r3
test_cc 1 0 0 1
dumpr3 ; fffffffe+c
move.d 0x5432f789,r4
move.d 0x78134452,r3
addc r4,r3
test_cc 1 0 1 0
dumpr3 ; cc463bdc
quit