summaryrefslogtreecommitdiff
path: root/tb/sim/control_flow.py
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-10-18 08:51:37 -0600
committerAlejandro Soto <alejandro@34project.org>2022-10-18 08:51:37 -0600
commitaa7d075e6d9ba91d42265ff1b2530812dbc8129f (patch)
tree39294f2a8b82985209673e75c8488576cc61814b /tb/sim/control_flow.py
parent9162c76e3e6717b114190051e59eaf70205d9111 (diff)
Add sim test: control_flow
Diffstat (limited to 'tb/sim/control_flow.py')
-rw-r--r--tb/sim/control_flow.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tb/sim/control_flow.py b/tb/sim/control_flow.py
new file mode 100644
index 0000000..21aaac0
--- /dev/null
+++ b/tb/sim/control_flow.py
@@ -0,0 +1,6 @@
+def init():
+ init_reg(r0, 0xdeadc0de);
+ init_reg(r1, 0xbaaaaaad);
+
+def final():
+ assert_reg(r0, 0xae13ab83)