Skip to content

Commit a67ee10

Browse files
ZERICO2005mateoconlechuga
authored andcommitted
updated and added small result tests for mulhu/mulhs
1 parent d2aa93b commit a67ee10

3 files changed

Lines changed: 172 additions & 7 deletions

File tree

test/standalone/mulhu/autotest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
},
99
"sequence": [
1010
"action|launch",
11-
"delay|2000",
11+
"delay|6000",
1212
"hashWait|1",
1313
"key|enter",
14-
"delay|300",
14+
"delay|400",
1515
"hashWait|2"
1616
],
1717
"hashes": {
1818
"1": {
1919
"description": "All tests passed",
20-
"timeout": 5000,
20+
"timeout": 8000,
2121
"start": "vram_start",
2222
"size": "vram_16_size",
2323
"expected_CRCs": [

test/standalone/mulhu/src/crt_wrap.s

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
.section .data._prev_reg
44

55
.global _prev_reg
6+
.type _prev_reg, @function
67
_prev_reg:
78
; L H U E D U C B U A Y I U X I U
89
db 0,0,0, 0,0,0, 0,0,0, 0, 0,0,0, 0,0,0
910

1011
.section .data._next_reg
1112

1213
.global _next_reg
14+
.type _next_reg, @function
1315
_next_reg:
1416
; L H U E D U C B U A Y I U X I U
1517
db 0,0,0, 0,0,0, 0,0,0, 0, 0,0,0, 0,0,0
@@ -37,6 +39,7 @@ _set_next_reg:
3739
ret
3840

3941
.global _CRT_smulhu
42+
.type _CRT_smulhu, @function
4043
_CRT_smulhu:
4144
push iy
4245
ld iy, 0
@@ -51,6 +54,7 @@ _CRT_smulhu:
5154
jp _set_next_reg
5255

5356
.global _CRT_smulhs
57+
.type _CRT_smulhs, @function
5458
_CRT_smulhs:
5559
push iy
5660
ld iy, 0
@@ -65,6 +69,7 @@ _CRT_smulhs:
6569
jp _set_next_reg
6670

6771
.global _CRT_imulhu
72+
.type _CRT_imulhu, @function
6873
_CRT_imulhu:
6974
push iy
7075
ld iy, 0
@@ -77,6 +82,7 @@ _CRT_imulhu:
7782
jp _set_next_reg
7883

7984
.global _CRT_imulhs
85+
.type _CRT_imulhs, @function
8086
_CRT_imulhs:
8187
push iy
8288
ld iy, 0
@@ -89,6 +95,7 @@ _CRT_imulhs:
8995
jp _set_next_reg
9096

9197
.global _CRT_lmulhu
98+
.type _CRT_lmulhu, @function
9299
_CRT_lmulhu:
93100
push iy
94101
ld iy, 0
@@ -103,6 +110,7 @@ _CRT_lmulhu:
103110
jp _set_next_reg
104111

105112
.global _CRT_lmulhs
113+
.type _CRT_lmulhs, @function
106114
_CRT_lmulhs:
107115
push iy
108116
ld iy, 0
@@ -117,6 +125,7 @@ _CRT_lmulhs:
117125
jp _set_next_reg
118126

119127
.global _CRT_i48mulhu
128+
.type _CRT_i48mulhu, @function
120129
_CRT_i48mulhu:
121130
ld iy, 0
122131
add iy, sp
@@ -129,6 +138,7 @@ _CRT_i48mulhu:
129138
jp _set_next_reg
130139

131140
.global _CRT_i48mulhs
141+
.type _CRT_i48mulhs, @function
132142
_CRT_i48mulhs:
133143
ld iy, 0
134144
add iy, sp
@@ -141,6 +151,7 @@ _CRT_i48mulhs:
141151
jp _set_next_reg
142152

143153
.global _CRT_llmulhu
154+
.type _CRT_llmulhu, @function
144155
_CRT_llmulhu:
145156
ld iy, 0
146157
add iy, sp
@@ -159,6 +170,7 @@ _CRT_llmulhu:
159170
jp _set_next_reg
160171

161172
.global _CRT_llmulhs
173+
.type _CRT_llmulhs, @function
162174
_CRT_llmulhs:
163175
ld iy, 0
164176
add iy, sp

0 commit comments

Comments
 (0)