mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +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.
48 lines
567 B
Plaintext
48 lines
567 B
Plaintext
# mach: crisv32
|
|
# output: fffffffe\n
|
|
# output: fffffffe\n
|
|
|
|
; Check basic integral-write semantics regarding flags.
|
|
|
|
.include "testutils.inc"
|
|
start
|
|
|
|
; A write that works. Check that flags are set correspondingly.
|
|
move.d d,r4
|
|
moveq -2,r5
|
|
setf c
|
|
clearf p
|
|
move.d [r4],r3
|
|
ax
|
|
move.d r5,[r4]
|
|
move.d [r4],r3
|
|
|
|
bcc 0f
|
|
nop
|
|
fail
|
|
|
|
0:
|
|
dumpr3 ; fffffffe
|
|
|
|
; A write that fails; check flags too.
|
|
move.d d,r4
|
|
moveq 23,r5
|
|
setf p
|
|
clearf c
|
|
move.d [r4],r3
|
|
ax
|
|
move.d r5,[r4]
|
|
move.d [r4],r3
|
|
|
|
bcs 0f
|
|
nop
|
|
fail
|
|
|
|
0:
|
|
dumpr3 ; fffffffe
|
|
quit
|
|
|
|
.data
|
|
d:
|
|
.dword 42424242
|