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.
39 lines
787 B
PHP
39 lines
787 B
PHP
|
|
;; Print "pass\n" and 'exit 0'
|
|
.macro pass
|
|
.data
|
|
mpass:
|
|
.string "pass\n"
|
|
.text
|
|
_pass:
|
|
mov %r1, mpass ; point to "pass\n" string
|
|
mov %r2, 5 ; strlen mpass
|
|
call 7 ; printk
|
|
mov %r0, 0 ;
|
|
exit ; exit 0
|
|
.endm
|
|
|
|
;;; MACRO fail
|
|
;;; Exit with status 1
|
|
.macro fail
|
|
mov %r0, 1
|
|
exit
|
|
.endm
|
|
|
|
;;; MACRO fail_ne32
|
|
;;; Exit with status 1 if \reg32 != \val
|
|
.macro fail_ne32 reg val
|
|
jeq32 \reg, \val, 2
|
|
mov %r0, 1
|
|
exit
|
|
.endm
|
|
|
|
;;; MACRO fail_ne
|
|
;;; Exit with status1 if \reg ne \val
|
|
.macro fail_ne reg val
|
|
lddw %r0, \val
|
|
jeq \reg, %r0, 2
|
|
mov %r0, 1
|
|
exit
|
|
.endm
|