aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/d30v-elf/em-pchr.S
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/d30v-elf/em-pchr.S')
-rw-r--r--sim/testsuite/d30v-elf/em-pchr.S28
1 files changed, 28 insertions, 0 deletions
diff --git a/sim/testsuite/d30v-elf/em-pchr.S b/sim/testsuite/d30v-elf/em-pchr.S
new file mode 100644
index 0000000..6b38b0b
--- /dev/null
+++ b/sim/testsuite/d30v-elf/em-pchr.S
@@ -0,0 +1,28 @@
+
+ add r2, r0, 'H'
+ .long 0x0e000003, 0x00f00000
+ add r2, r0, 'e'
+ .long 0x0e000003, 0x00f00000
+ add r2, r0, 'l'
+ .long 0x0e000003, 0x00f00000
+ add r2, r0, 'l'
+ .long 0x0e000003, 0x00f00000
+ add r2, r0, 'o'
+ .long 0x0e000003, 0x00f00000
+ add r2, r0, ' '
+ .long 0x0e000003, 0x00f00000
+ add r2, r0, 'W'
+ .long 0x0e000003, 0x00f00000
+ add r2, r0, 'o'
+ .long 0x0e000003, 0x00f00000
+ add r2, r0, 'r'
+ .long 0x0e000003, 0x00f00000
+ add r2, r0, 'l'
+ .long 0x0e000003, 0x00f00000
+ add r2, r0, 'd'
+ .long 0x0e000003, 0x00f00000
+ add r2, r0, '\n' || nop
+ .long 0x0e000003, 0x00f00000
+ # finished
+ add r2, r0, r0 || nop
+ .long 0x0e000004, 0x00f00000