diff options
author | Tim Newsome <tim@sifive.com> | 2016-03-14 13:39:47 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2016-05-23 12:12:10 -0700 |
commit | 77a51e91f8a71b6d66304a0a134ac2af04adafc3 (patch) | |
tree | 010a0d8f4d2d7833323238e2c740f9bcb1e7cc84 /tests | |
parent | 0bf3e0b2bfea7234e61213bf0a7354b3f21d2119 (diff) | |
download | spike-77a51e91f8a71b6d66304a0a134ac2af04adafc3.zip spike-77a51e91f8a71b6d66304a0a134ac2af04adafc3.tar.gz spike-77a51e91f8a71b6d66304a0a134ac2af04adafc3.tar.bz2 |
Forgot to add this source.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/regs.s | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/regs.s b/tests/regs.s new file mode 100644 index 0000000..b0d641d --- /dev/null +++ b/tests/regs.s @@ -0,0 +1,42 @@ + .global main +main: + j main + +write_regs: + la a0, data + sd x1, 0(a0) + sd x2, 8(a0) + sd x3, 16(a0) + sd x4, 24(a0) + sd x5, 32(a0) + sd x6, 40(a0) + sd x7, 48(a0) + sd x8, 56(a0) + sd x9, 64(a0) + sd x11, 72(a0) + sd x12, 80(a0) + sd x13, 88(a0) + sd x14, 96(a0) + sd x15, 104(a0) + sd x16, 112(a0) + sd x17, 120(a0) + sd x18, 128(a0) + sd x19, 136(a0) + sd x20, 144(a0) + sd x21, 152(a0) + sd x22, 160(a0) + sd x23, 168(a0) + sd x24, 176(a0) + sd x25, 184(a0) + sd x26, 192(a0) + sd x27, 200(a0) + sd x28, 208(a0) + sd x29, 216(a0) + sd x30, 224(a0) + sd x31, 232(a0) + +all_done: + j all_done + +data: + .fill 64, 8, 0 |