summaryrefslogtreecommitdiff
path: root/sim/testsuite/d30v-elf/ls-sthh.S
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/d30v-elf/ls-sthh.S')
-rw-r--r--sim/testsuite/d30v-elf/ls-sthh.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/sim/testsuite/d30v-elf/ls-sthh.S b/sim/testsuite/d30v-elf/ls-sthh.S
new file mode 100644
index 00000000000..071f30960a6
--- /dev/null
+++ b/sim/testsuite/d30v-elf/ls-sthh.S
@@ -0,0 +1,12 @@
+ add r2, r0, hello
+ add r4, r0, ('H' << 24) + ('e' << 16)
+ sthh r4, @(r2,0) || nop
+ # putstr
+ .long 0x0e000001, 0x00f00000
+ # finished
+ add r2, r0, r0 || nop
+ .long 0x0e000004, 0x00f00000
+
+ .align 3
+hello:
+ .ascii "??llo World\n"