Skip to content

Commit 82be029

Browse files
more compat tests
1 parent 57e60e6 commit 82be029

File tree

5 files changed

+53
-0
lines changed

5 files changed

+53
-0
lines changed

tests/compat/alu.S

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,16 @@
1818
sub r3, r0, -1
1919
sub r2, r1, 1
2020

21+
lsh r0, r1, r2
22+
lsh r2, r3, 1
23+
24+
rsh r3, r2, r1
25+
rsh r3, r2, 31
26+
27+
move r0, r1
28+
move r0, 42
29+
30+
stage_rst
31+
stage_inc 42
32+
stage_dec 23
2133

tests/compat/io.S

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.text
2+
3+
reg_rd 0x3ff48000, 7, 0
4+
reg_wr 0x3ff48000, 7, 0, 42
5+
6+
i2c_rd 0x10, 7, 0, 0
7+
i2c_wr 0x23, 0x42, 7, 0, 1
8+
9+
adc r0, 0, 1

tests/compat/memory.S

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.text
2+
3+
ld r0, r1, 0
4+
ld r2, r3, 4
5+
6+
st r0, r1, 0
7+
st r3, r2, 8
8+

tests/compat/sections.S

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.text
2+
3+
nop
4+
nop
5+
nop
6+
7+
.data
8+
9+
.space 4
10+
.space 8, 0xFF
11+
12+
.bss
13+
14+
.space 10
15+

tests/compat/sleep.S

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.text
2+
3+
nop
4+
wait 1000
5+
6+
wake
7+
sleep 1
8+
9+
halt

0 commit comments

Comments
 (0)