shithub: riscv

Download patch

ref: 275fbc93fdb2a60a98065fe5438bd8518c28ad76
parent: 14c7edf96e287b10285069bc0ab7b9569ca7b4c3
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Apr 8 09:50:11 EDT 2019

7a: fix post increment operands

--- a/sys/src/cmd/7a/a.y
+++ b/sys/src/cmd/7a/a.y
@@ -542,8 +542,10 @@
 	}
 |	'(' sreg ')' con '!'
 	{
+		$$ = nullgen;
 		$$.type = D_XPOST;
-		$$.offset = $2;
+		$$.reg = $2;
+		$$.offset = $4;
 	}
 |	'(' sreg ')' '(' indexreg ')'
 	{