about summary refs log tree commit diff stats
path: root/mu_summary
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-03-07 19:55:03 -0800
committerKartik Agaram <vc@akkartik.com>2020-03-07 19:55:03 -0800
commit44798a2e2cff818dda287d7d1232fa9b55b3f36d (patch)
tree370fc6f760c8e67804c1f1c956c8a3e2753aaf62 /mu_summary
parent39aea1792666b062665afe4819ed904aa02a32b8 (diff)
downloadmu-44798a2e2cff818dda287d7d1232fa9b55b3f36d.tar.gz
6097
I thought I needed to support compute-offset with literal index, but in
that case might as well just use an index literal directly. The 'index'
instruction with literals already supports non-power-of-2 sizes.
Diffstat (limited to 'mu_summary')
-rw-r--r--mu_summary3
1 files changed, 1 insertions, 2 deletions
diff --git a/mu_summary b/mu_summary
index e4e82905..f15b6bd1 100644
--- a/mu_summary
+++ b/mu_summary
@@ -202,8 +202,7 @@ Similarly, conditional loops:
   var/reg: (addr T) <- index arr/reg: (addr array T), n
 
   var/reg: (offset T) <- compute-offset arr: (addr array T), idx/reg: int  # arr can be in reg or mem
-  var/reg: (offset T) <- compute-offset arr: (addr array T), n             # arr can be in reg or mem
-  var: (offset T) <- compute-offset arr: (addr array T), n                 # arr can be in reg or mem
+  var/reg: (offset T) <- compute-offset arr: (addr array T), idx: int  # arr can be in reg or mem
   var/reg: (addr T) <- index arr/reg: (addr array T), idx/reg: (offset T)
 
 ## User-defined types