mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
test: lm32: make test cases independent
Make test cases independent from from each other. Eg. if a test case needs a specific value in register A, don't rely on the fact that it is already set by the preceding test case. Signed-off-by: Michael Walle <michael@walle.cc>
This commit is contained in:
parent
178ac111bc
commit
a946ce8020
8 changed files with 25 additions and 0 deletions
|
@ -8,10 +8,12 @@ lb r3, (r1+0)
|
|||
check_r3 0x7e
|
||||
|
||||
test_name LB_2
|
||||
load r1 data
|
||||
lb r3, (r1+1)
|
||||
check_r3 0x7f
|
||||
|
||||
test_name LB_3
|
||||
load r1 data
|
||||
lb r3, (r1+-1)
|
||||
check_r3 0x7d
|
||||
|
||||
|
@ -21,10 +23,12 @@ lb r3, (r1+0)
|
|||
check_r3 0xfffffffe
|
||||
|
||||
test_name LB_5
|
||||
load r1 data_msb
|
||||
lb r3, (r1+1)
|
||||
check_r3 0xffffffff
|
||||
|
||||
test_name LB_6
|
||||
load r1 data_msb
|
||||
lb r3, (r1+-1)
|
||||
check_r3 0xfffffffd
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue