Add lb/lbu/lh/lhu test (aligned).

This commit is contained in:
Hans-Kristian Arntzen 2020-01-31 14:15:33 +01:00
parent 71237ada02
commit 02dd79980c
5 changed files with 48 additions and 0 deletions

View File

@ -118,4 +118,8 @@ if (PARALLEL_RSP_TESTS)
rsp_add_test(ori)
rsp_add_test(xori)
rsp_add_test(lui)
rsp_add_test(lb)
rsp_add_test(lbu)
rsp_add_test(lh)
rsp_add_test(lhu)
endif()

11
debug-toolchain/lb.s Normal file
View File

@ -0,0 +1,11 @@
.data
.byte 0, 0, 0
foobar:
.byte 0x72, 0x91
.text
.global main
main:
la $t1, foobar
lb $t0, 1($t1)
break

11
debug-toolchain/lbu.s Normal file
View File

@ -0,0 +1,11 @@
.data
.byte 0, 0, 0
foobar:
.byte 0x72, 0x91
.text
.global main
main:
la $t1, foobar
lbu $t0, 1($t1)
break

11
debug-toolchain/lh.s Normal file
View File

@ -0,0 +1,11 @@
.data
.byte 0, 0, 0, 0
foobar:
.byte 0x92, 0x70
.text
.global main
main:
la $t1, foobar
lh $t0, 0($t1)
break

11
debug-toolchain/lhu.s Normal file
View File

@ -0,0 +1,11 @@
.data
.byte 0, 0, 0, 0
foobar:
.byte 0x92, 0x70
.text
.global main
main:
la $t1, foobar
lhu $t0, 0($t1)
break