git: 9front

Download patch

ref: 273d03ba4dca87851ca55c7b040a5ba50bfcdcfe
parent: f5fd3ab0d6e3fa3c2b7a6a0bc20c5444c7ba8ab9
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed May 10 17:02:27 EDT 2023

7l: rewrite Rl→REGTMP in the comment (thanks cinap)

--- a/sys/src/cmd/7l/asmout.c
+++ b/sys/src/cmd/7l/asmout.c
@@ -817,7 +817,7 @@
 		o1 = ADR(0, d, p->to.reg);
 		break;
 
-	case 62:	/* case Rv, Rt -> adr tab, Rl; movw Rl[R<<2], Rt; add Rt, Rl; br (Rl) */
+	case 62:	/* case Rv, Rt -> adr tab, REGTMP; movw REGTMP[R<<2], Rt; add Rt, REGTMP; br (REGTMP) */
 		o1 = ADR(0, 4*4, REGTMP);	/* adr 4(pc), REGTMP */
 		o2 = (2<<30)|(7<<27)|(2<<22)|(1<<21)|(3<<13)|(1<<12)|(2<<10)|(p->from.reg<<16)|(REGTMP<<5)|p->to.reg;	/* movw REGTMP[Rv<<2], Rt */
 		o3 = oprrr(AADD) | (p->to.reg<<16) | (REGTMP<<5) | REGTMP;	/* add Rt, REGTMP */
--