aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-09-09 02:22:07 +0000
committerAndrew Cagney <cagney@redhat.com>1997-09-09 02:22:07 +0000
commitdb511584c9ed185ed587a12329067c002ffadb70 (patch)
tree27086d743428e301347343d9053af98de4de6cb0
parent1e639cb27b45947703b2f8b4f50b816fad7b9caa (diff)
downloadgdb-db511584c9ed185ed587a12329067c002ffadb70.zip
gdb-db511584c9ed185ed587a12329067c002ffadb70.tar.gz
gdb-db511584c9ed185ed587a12329067c002ffadb70.tar.bz2
Add basic tests for d10v-elf simulator.
-rw-r--r--sim/testsuite/d10v-elf/exit47.s8
-rw-r--r--sim/testsuite/d10v-elf/loop.s6
2 files changed, 14 insertions, 0 deletions
diff --git a/sim/testsuite/d10v-elf/exit47.s b/sim/testsuite/d10v-elf/exit47.s
new file mode 100644
index 0000000..e37682f
--- /dev/null
+++ b/sim/testsuite/d10v-elf/exit47.s
@@ -0,0 +1,8 @@
+ .text
+ .align 2
+ .globl _start
+_start:
+ # exit (47)
+ ldi r6, 1
+ ldi r2, 47
+ trap 15
diff --git a/sim/testsuite/d10v-elf/loop.s b/sim/testsuite/d10v-elf/loop.s
new file mode 100644
index 0000000..e1371e4
--- /dev/null
+++ b/sim/testsuite/d10v-elf/loop.s
@@ -0,0 +1,6 @@
+ .text
+ .globl _start
+
+_start:
+ bra _start
+ nop