diff options
author | Tim Newsome <tim@sifive.com> | 2016-06-16 13:03:19 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2016-07-18 18:51:54 -0700 |
commit | 34341c9500c0a0a2520826b6eaf0095c3f9ce9fc (patch) | |
tree | 94a2d1dfd66bf5ff921f3b7f30dc6d6aada9d539 /debug/programs/step.S | |
parent | d3db738f442df95dd0c074a3e90c62c22e0f9a58 (diff) | |
download | riscv-tests-34341c9500c0a0a2520826b6eaf0095c3f9ce9fc.zip riscv-tests-34341c9500c0a0a2520826b6eaf0095c3f9ce9fc.tar.gz riscv-tests-34341c9500c0a0a2520826b6eaf0095c3f9ce9fc.tar.bz2 |
Add explicit test for stepping over branches/jumps.
Diffstat (limited to 'debug/programs/step.S')
-rw-r--r-- | debug/programs/step.S | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debug/programs/step.S b/debug/programs/step.S new file mode 100644 index 0000000..49f82d6 --- /dev/null +++ b/debug/programs/step.S @@ -0,0 +1,17 @@ +// Test stepping over a variety of instructions. + + .global main + +main: + li t0, 5 // 0 + beq zero, zero, one // 0x4 + nop // 0x8 +one: + beq zero, t0, one // 0xc + jal two // 0x10 + +three: + j three // 0x14 + +two: + ret // 0x18 |