mirror of
https://github.com/supleed2/ELEC50010-IAC-CW.git
synced 2024-12-22 21:35:48 +00:00
Add second store halfword testcase
Checks that only half the word is written using load word after store halfword
This commit is contained in:
parent
5c29ec2be1
commit
1be11d6c19
1
inputs/sh/sh-2.ref.txt
Normal file
1
inputs/sh/sh-2.ref.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
22136
|
6
inputs/sh/sh-2.txt
Normal file
6
inputs/sh/sh-2.txt
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
3C041234
|
||||||
|
34045678
|
||||||
|
3405101C
|
||||||
|
A4A40000
|
||||||
|
8CA20000
|
||||||
|
00000008
|
|
@ -692,6 +692,22 @@ A4A40000
|
||||||
84A20000
|
84A20000
|
||||||
00000008
|
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
|
register_v0 = 0x00005678
|
||||||
|
|
||||||
==SLL Shift left logical==
|
==SLL Shift left logical==
|
||||||
|
|
Loading…
Reference in a new issue