mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31: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.
24 lines
261 B
Plaintext
24 lines
261 B
Plaintext
# cr16 testcase for cmp $imm, reg
|
|
# mach(): cr16
|
|
|
|
.include "testutils.inc"
|
|
|
|
start
|
|
|
|
.global cmp
|
|
cmp:
|
|
mvi_h_condbit 0
|
|
movw $0x1234, r4
|
|
movw $0x1234, r5
|
|
cmpb r4,r5
|
|
beq ok
|
|
not_ok:
|
|
fail
|
|
ok:
|
|
mvi_h_condbit 1
|
|
movw $0x2222, r5
|
|
cmpw r4,r5
|
|
beq not_ok
|
|
|
|
pass
|