ref: 3bb5168c6f21b38e5b4415419f986b4fa466cbd9
parent: 873a7716e0652df14ecf881ba61767a2d78f3824
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Jun 18 09:28:15 EDT 2019
8c, 6c: fix INDEX node #reg calculation
--- a/sys/src/cmd/6c/sgen.c
+++ b/sys/src/cmd/6c/sgen.c
@@ -162,6 +162,8 @@
l->scale = idx.scale;
l->addable = 9;
l->complex = l->right->complex;
+ if(l->complex == 0)
+ l->complex++;
l->type = l->left->type;
n->op = OADDR;
n->left = l;
--- a/sys/src/cmd/8c/sgen.c
+++ b/sys/src/cmd/8c/sgen.c
@@ -169,6 +169,8 @@
l->scale = idx.scale;
l->addable = 9;
l->complex = l->right->complex;
+ if(l->complex == 0)
+ l->complex++;
l->type = l->left->type;
n->op = OADDR;
n->left = l;