summaryrefslogtreecommitdiff
path: root/tb/sim/strex.py
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-10-03 07:46:10 -0600
committerAlejandro Soto <alejandro@34project.org>2023-10-03 07:46:10 -0600
commitd9e89db78284fc1a9f0aa1ed86d076f50c58c1f2 (patch)
treee29cef947858a7a1791f3be3280bb43f9212da0a /tb/sim/strex.py
parentf422a5fd9e83c69d4158a165edc47f45bcf600c4 (diff)
tb/sim: add test: strex
Diffstat (limited to 'tb/sim/strex.py')
-rw-r--r--tb/sim/strex.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tb/sim/strex.py b/tb/sim/strex.py
new file mode 100644
index 0000000..d53c355
--- /dev/null
+++ b/tb/sim/strex.py
@@ -0,0 +1,9 @@
+mem_dumps = [range(0x1000, 0x1008)]
+
+def final():
+ assert_reg(r2, 1)
+ assert_reg(r5, 1)
+ assert_reg(r6, 0)
+
+ assert_mem(0x1000, 0xfedcba98)
+ assert_mem(0x1004, 0x01234567)