LW unaligned in branch delay test.

This commit is contained in:
Hans-Kristian Arntzen 2020-01-31 21:11:19 +01:00
parent 6b2bac5326
commit 7573becbe1
2 changed files with 21 additions and 0 deletions

View File

@ -144,4 +144,5 @@ if (PARALLEL_RSP_TESTS)
rsp_add_test(j)
rsp_add_test(jal)
rsp_add_test(jr)
rsp_add_test(lw-unaligned-in-branch-delay)
endif()

View File

@ -0,0 +1,20 @@
.data
foo:
.byte 0
.byte 0xaa, 0xbb, 0xcc, 0xdd
.text
.set noreorder
.global main
main:
li $t0, 1
la $t1, foo
bgtz $t0, taken1
lw $t1, 1($t1)
taken0:
li $t5, 100
break
taken1:
break