Add second store halfword testcase

Checks that only half the word is written using load word after store halfword
This commit is contained in:
Aadi Desai 2020-12-17 09:52:51 -08:00
parent 5c29ec2be1
commit 1be11d6c19
3 changed files with 23 additions and 0 deletions

1
inputs/sh/sh-2.ref.txt Normal file
View file

@ -0,0 +1 @@
22136

6
inputs/sh/sh-2.txt Normal file
View file

@ -0,0 +1,6 @@
3C041234
34045678
3405101C
A4A40000
8CA20000
00000008

View file

@ -692,6 +692,22 @@ A4A40000
84A20000
00000008
-Load Entire Word Version
lui $4, 0x1234
ori $4, $0, 0x5678
ori $5, $0, 0x101C
sh $4, 0($5)
lw $2, 0($5)
jr $0
3C041234
34045678
3405101C
A4A40000
8CA20000
00000008
register_v0 = 0x00005678
==SLL Shift left logical==