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.
76 lines
1.1 KiB
ArmAsm
76 lines
1.1 KiB
ArmAsm
# mach: all
|
|
# output:
|
|
# sim: --environment operating
|
|
|
|
.include "t-macros.i"
|
|
|
|
start
|
|
|
|
;; clear FX
|
|
loadpsw2 0x8005
|
|
loadacc2 a1 0x7f 0xffff 0xffff
|
|
load r8 0xffff
|
|
load r9 0x8001
|
|
test_macu1:
|
|
MACU a1, r9, r8
|
|
checkacc2 1 a1 0x80 0x8000 0x7FFE
|
|
|
|
;; set FX
|
|
loadpsw2 0x8085
|
|
loadacc2 a1 0x7f 0xffff 0xffff
|
|
load r8 0xffff
|
|
load r9 0x8001
|
|
test_macu2:
|
|
MACU a1, r9, r8
|
|
checkacc2 2 a1 0x81 0x0000 0xfffd
|
|
|
|
|
|
|
|
|
|
;; clear FX
|
|
ldi r2, #0x8005
|
|
mvtc r2, cr0
|
|
|
|
loadacc2 a1 0x7f 0xffff 0xffff
|
|
ldi r8, #0xffff
|
|
ldi r9, #0x7FFF
|
|
test_macsu1:
|
|
MACSU a1, r9, r8
|
|
checkacc2 3 a1 0x80 0x7FFE 0x8000
|
|
|
|
;; set FX
|
|
ldi r2, #0x8085
|
|
mvtc r2, cr0
|
|
|
|
loadacc2 a1 0x7f 0xffff 0xffff
|
|
ldi r8, #0xffff
|
|
ldi r9, #0x7FFF
|
|
test_macsu2:
|
|
MACSU a1, r9, r8
|
|
checkacc2 4 a1 0x80 0xfffd 0x0001
|
|
|
|
;; clear FX
|
|
ldi r2, #0x8005
|
|
mvtc r2, cr0
|
|
|
|
loadacc2 a1 0x7f 0xffff 0xffff
|
|
ldi r8, 0xffff
|
|
ldi r9, 0x8001
|
|
test_macsu3:
|
|
MACSU a1, r9, r8
|
|
checkacc2 5 a1 0x7F 0x8001 0x7FFE
|
|
|
|
;; set FX
|
|
ldi r2, #0x8085
|
|
mvtc r2, cr0
|
|
|
|
loadacc2 a1 0x7f 0xffff 0xffff
|
|
ldi r8, #0xffff
|
|
ldi r9, #0x8001
|
|
test_macsu4:
|
|
MACSU a1, r9, r8
|
|
checkacc2 6 a1 0x7f 0x0002 0xFFFD
|
|
|
|
exit0
|
|
|