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

103 lines
1.4 KiB
Plaintext

# mach: crisv0 crisv3 crisv8 crisv10 crisv32
# output: ffffffff\nffffffff\n0\n80000000\n1\nba987655\nffff\nffff\n0\n89ab8000\nffff0001\n45677655\nff\nff\n0\n89abae80\nffffff01\n45678955\n
.include "testutils.inc"
start
moveq 0,r3
moveq 1,r4
neg.d r4,r3
test_cc 1 0 0 1
dumpr3 ; ffffffff
moveq 1,r3
moveq 0,r4
neg.d r3,r3
test_cc 1 0 0 1
dumpr3 ; ffffffff
moveq 0,r3
neg.d r3,r3
test_cc 0 1 0 0
dumpr3 ; 0
move.d 0x80000000,r3
neg.d r3,r3
test_cc 1 0 1 1
dumpr3 ; 80000000
moveq -1,r3
neg.d r3,r3
test_cc 0 0 0 1
dumpr3 ; 1
move.d 0x456789ab,r3
neg.d r3,r3
test_cc 1 0 0 1
dumpr3 ; ba987655
moveq 0,r3
moveq 1,r4
neg.w r4,r3
test_cc 1 0 0 1
dumpr3 ; ffff
moveq 1,r3
moveq 0,r4
neg.w r3,r3
test_cc 1 0 0 1
dumpr3 ; ffff
moveq 0,r3
neg.w r3,r3
test_cc 0 1 0 0
dumpr3 ; 0
move.d 0x89ab8000,r3
neg.w r3,r3
test_cc 1 0 1 1
dumpr3 ; 89ab8000
moveq -1,r3
neg.w r3,r3
test_cc 0 0 0 1
dumpr3 ; ffff0001
move.d 0x456789ab,r3
neg.w r3,r3
test_cc 0 0 0 1
dumpr3 ; 45677655
moveq 0,r3
moveq 1,r4
neg.b r4,r3
test_cc 1 0 0 1
dumpr3 ; ff
moveq 1,r3
moveq 0,r4
neg.b r3,r3
test_cc 1 0 0 1
dumpr3 ; ff
moveq 0,r3
neg.b r3,r3
test_cc 0 1 0 0
dumpr3 ; 0
move.d 0x89abae80,r3
neg.b r3,r3
test_cc 1 0 1 1
dumpr3 ; 89abae80
moveq -1,r3
neg.b r3,r3
test_cc 0 0 0 1
dumpr3 ; ffffff01
move.d 0x456789ab,r3
neg.b r3,r3
test_cc 0 0 0 1
dumpr3 ; 45678955
quit