aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/mips64vr5900el-elf
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-07-15 20:25:09 +0000
committerAndrew Cagney <cagney@redhat.com>1997-07-15 20:25:09 +0000
commitb31dd8eea20c40b664fb70fa919b377db12d69b3 (patch)
treef1bb8f8fefc7ed01df3f1fcc880146984e85bd9e /sim/testsuite/mips64vr5900el-elf
parente528bfeca8d8155d71a0ff57b33df968e48f9921 (diff)
downloadgdb-b31dd8eea20c40b664fb70fa919b377db12d69b3.zip
gdb-b31dd8eea20c40b664fb70fa919b377db12d69b3.tar.gz
gdb-b31dd8eea20c40b664fb70fa919b377db12d69b3.tar.bz2
Generic tests for 5900.
Diffstat (limited to 'sim/testsuite/mips64vr5900el-elf')
-rw-r--r--sim/testsuite/mips64vr5900el-elf/exit47.s14
-rw-r--r--sim/testsuite/mips64vr5900el-elf/hello.s26
2 files changed, 40 insertions, 0 deletions
diff --git a/sim/testsuite/mips64vr5900el-elf/exit47.s b/sim/testsuite/mips64vr5900el-elf/exit47.s
new file mode 100644
index 0000000..139a7ae
--- /dev/null
+++ b/sim/testsuite/mips64vr5900el-elf/exit47.s
@@ -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
diff --git a/sim/testsuite/mips64vr5900el-elf/hello.s b/sim/testsuite/mips64vr5900el-elf/hello.s
new file mode 100644
index 0000000..e67328d
--- /dev/null
+++ b/sim/testsuite/mips64vr5900el-elf/hello.s
@@ -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"