mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 20:14:06 +08:00
Generic tests for 5900.
This commit is contained in:
parent
e528bfeca8
commit
b31dd8eea2
14
sim/testsuite/mips64vr5900el-elf/exit47.s
Normal file
14
sim/testsuite/mips64vr5900el-elf/exit47.s
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# The main body of code loops on the variable FLAG, waiting
|
||||||
|
# for it to be set. When set, the message `Tick' is displayed
|
||||||
|
# and the flag cleared.
|
||||||
|
|
||||||
|
# The interrupt handler, sets the global FLAG variable and
|
||||||
|
# then resumes normal execution.
|
||||||
|
|
||||||
|
.globl _start
|
||||||
|
.set noreorder
|
||||||
|
_start:
|
||||||
|
|
||||||
|
li $4, 47
|
||||||
|
break 1023
|
||||||
|
nop
|
26
sim/testsuite/mips64vr5900el-elf/hello.s
Normal file
26
sim/testsuite/mips64vr5900el-elf/hello.s
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# The main body of code loops on the variable FLAG, waiting
|
||||||
|
# for it to be set. When set, the message `Tick' is displayed
|
||||||
|
# and the flag cleared.
|
||||||
|
|
||||||
|
# The interrupt handler, sets the global FLAG variable and
|
||||||
|
# then resumes normal execution.
|
||||||
|
|
||||||
|
.globl _start
|
||||||
|
.set noreorder
|
||||||
|
_start:
|
||||||
|
|
||||||
|
|
||||||
|
# write (1, Hello World!\r\n, 14)
|
||||||
|
li $4, 1
|
||||||
|
la $5, hello
|
||||||
|
li $6, 14
|
||||||
|
la $2,+0xffffffffbfc00504 # write address
|
||||||
|
lw $2, 0($2)
|
||||||
|
jal $2
|
||||||
|
nop
|
||||||
|
|
||||||
|
li $4, 0
|
||||||
|
break 1023
|
||||||
|
nop
|
||||||
|
|
||||||
|
hello: .asciiz "Hello World!\r\n"
|
Loading…
Reference in New Issue
Block a user