summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2014-11-21 15:58:29 -0500
committerAustin Clements <austin@google.com>2014-11-21 15:58:29 -0500
commit30a059b1995ae87bf08ecc00704a1bd041f1a9c6 (patch)
tree5b2e85cbf41259ac9e36fd2f10cbcfca77badea6
parent5454e9564f4af36e346075d667bd39a5aae2e5a8 (diff)
downloadgo-30a059b1995ae87bf08ecc00704a1bd041f1a9c6.tar.gz
[dev.cc] liblink: more docs on Prog and Addr fields
LGTM=rsc R=rsc, dave CC=golang-codereviews https://codereview.appspot.com/174530043
-rw-r--r--include/link.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/link.h b/include/link.h
index 33a66e93c..2b1d02102 100644
--- a/include/link.h
+++ b/include/link.h
@@ -62,7 +62,7 @@ struct Addr
short type;
uint8 index;
int8 scale;
- int8 reg; // for 5l, 9l
+ int8 reg; // for 5l, 9l; GPRs and FPRs both start at 0
int8 name; // for 5l, 9l
int8 class; // for 5l, 9l
uint8 etype; // for 5g, 6g, 8g
@@ -94,6 +94,7 @@ struct Prog
// operands
Addr from;
uchar reg; // arm, power64 only (e.g., ADD from, reg, to);
+ // starts at 0 for both GPRs and FPRs;
// also used for ADATA width on arm, power64
Addr from3; // power64 only (e.g., RLWM/FMADD from, reg, from3, to)
Addr to;