Skip to content

Commit

Permalink
Verif: Add load hazard instructions (#2354)
Browse files Browse the repository at this point in the history
  • Loading branch information
AyoubJalali authored Jul 15, 2024
1 parent 8aa0f63 commit 6c0e3f8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions verif/tests/custom/isacov/load_reg_hazard.S
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,27 @@ main:
c.lhu a4, 0(a4)
c.lhu a5, 0(a5)

li s0, 0x80000000
li s1, 0x80000000
li a0, 0x80000000
li a1, 0x80000000
li a2, 0x80000000
li a3, 0x80000000
li a4, 0x80000000
li a5, 0x80000000

c.lw s0, 0(s0)
c.lw s1, 0(s1)
c.lw a0, 0(a0)
c.lw a1, 0(a1)
c.lw a2, 0(a2)
c.lw a3, 0(a3)
c.lw a4, 0(a4)
c.lw a5, 0(a5)

li sp, 0x80000000
c.lwsp sp, 0(sp)

#End of test
j test_pass

Expand Down

0 comments on commit 6c0e3f8

Please sign in to comment.