summaryrefslogtreecommitdiff
path: root/tests/tcg/lm32/test_sw.S
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2014-04-22 20:18:41 +0200
committerMichael Walle <michael@walle.cc>2014-05-24 19:42:29 +0200
commita946ce802002fe6233adbf1a6222d0837d44fc33 (patch)
tree8fe532801ec883260159131e6af1ad39f9da4376 /tests/tcg/lm32/test_sw.S
parent178ac111bca16c08a79b2609ebdc75197bea976a (diff)
downloadqemu-a946ce802002fe6233adbf1a6222d0837d44fc33.tar.gz
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>
Diffstat (limited to 'tests/tcg/lm32/test_sw.S')
-rw-r--r--tests/tcg/lm32/test_sw.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tcg/lm32/test_sw.S b/tests/tcg/lm32/test_sw.S
index d1fdadce61..2b1c017e7b 100644
--- a/tests/tcg/lm32/test_sw.S
+++ b/tests/tcg/lm32/test_sw.S
@@ -9,16 +9,19 @@ sw (r1+0), r2
check_mem data 0xaabbccdd
test_name SW_2
+load r1 data
load r2 0x00112233
sw (r1+4), r2
check_mem data1 0x00112233
test_name SW_3
+load r1 data
load r2 0x44556677
sw (r1+-4), r2
check_mem data0 0x44556677
test_name SW_4
+load r1 data
sw (r1+0), r1
lw r3, (r1+0)
check_r3 data