aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/d30v-elf/ls-st2w.S
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/d30v-elf/ls-st2w.S')
-rw-r--r--sim/testsuite/d30v-elf/ls-st2w.S13
1 files changed, 13 insertions, 0 deletions
diff --git a/sim/testsuite/d30v-elf/ls-st2w.S b/sim/testsuite/d30v-elf/ls-st2w.S
new file mode 100644
index 0000000..0cd8b66
--- /dev/null
+++ b/sim/testsuite/d30v-elf/ls-st2w.S
@@ -0,0 +1,13 @@
+ add r2, r0, hello
+ add r4, r0, ('H' << 24) + ('e' << 16) + ('l' << 8) + ('l' << 0)
+ add r5, r0, ('o' << 24) + (' ' << 16) + ('W' << 8) + ('o' << 0)
+ st2w r4, @(r2,0) || nop
+ # putstr
+ .long 0x0e000001, 0x00f00000
+ # finished
+ add r2, r0, r0 || nop
+ .long 0x0e000004, 0x00f00000
+
+ .align 3
+hello:
+ .ascii "????....rld\n"