mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +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.
58 lines
783 B
Plaintext
58 lines
783 B
Plaintext
# mach: crisv0 crisv3 crisv8 crisv10 crisv32
|
|
# output: 0\n1\n2\n4\nbe02460f\n69d035a6\nc16c14d4\n
|
|
|
|
.include "testutils.inc"
|
|
start
|
|
moveq 0,r3
|
|
moveq 0,r4
|
|
clearf zcvn
|
|
addi r4.b,r3
|
|
test_cc 0 0 0 0
|
|
dumpr3 ; 0
|
|
|
|
moveq 0,r3
|
|
moveq 1,r4
|
|
setf zcvn
|
|
addi r4.b,r3
|
|
test_cc 1 1 1 1
|
|
dumpr3 ; 1
|
|
|
|
moveq 0,r3
|
|
moveq 1,r4
|
|
setf cv
|
|
clearf zn
|
|
addi r4.w,r3
|
|
test_cc 0 0 1 1
|
|
dumpr3 ; 2
|
|
|
|
moveq 0,r3
|
|
moveq 1,r4
|
|
clearf cv
|
|
setf zn
|
|
addi r4.d,r3
|
|
test_cc 1 1 0 0
|
|
dumpr3 ; 4
|
|
|
|
move.d 0x12345678,r3
|
|
move.d 0xabcdef97,r4
|
|
clearf cn
|
|
setf zv
|
|
addi r4.b,r3
|
|
test_cc 0 1 1 0
|
|
dumpr3 ; be02460f
|
|
|
|
move.d 0x12345678,r3
|
|
move.d 0xabcdef97,r4
|
|
setf cn
|
|
clearf zv
|
|
addi r4.w,r3
|
|
test_cc 1 0 0 1
|
|
dumpr3 ; 69d035a6
|
|
|
|
move.d 0x12345678,r3
|
|
move.d 0xabcdef97,r4
|
|
addi r4.d,r3
|
|
dumpr3 ; c16c14d4
|
|
|
|
quit
|