summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2014-11-12 17:19:02 -0500
committerAustin Clements <austin@google.com>2014-11-12 17:19:02 -0500
commit0dbc281709dfcda2314d25579ea09a2cdf8f31d4 (patch)
tree8c0992d2cefae365a295f856178635332cba38ad /include
parent8120faa2a9401f93d29ef69e1ca5180dad6c88d3 (diff)
downloadgo-0dbc281709dfcda2314d25579ea09a2cdf8f31d4.tar.gz
[dev.power64] liblink: improve documentation of struct Prog
LGTM=dave, rsc R=rsc, dave CC=golang-codereviews https://codereview.appspot.com/169460043
Diffstat (limited to 'include')
-rw-r--r--include/link.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/link.h b/include/link.h
index c80f46758..06f3ebb48 100644
--- a/include/link.h
+++ b/include/link.h
@@ -54,7 +54,7 @@ struct Addr
{
char sval[8];
float64 dval;
- Prog* branch; // for 5g, 6g, 8g
+ Prog* branch; // for 5g, 6g, 8g, 9g
} u;
LSym* sym;
@@ -89,10 +89,13 @@ struct Prog
int32 lineno;
Prog* link;
short as;
- uchar reg; // arm, power64 only
- uchar scond; // arm only
+ uchar scond; // arm only; condition codes
+
+ // operands
Addr from;
- Addr from3; // power64 only, fma and rlwm
+ uchar reg; // arm, power64 only (e.g., ADD from, reg, to);
+ // also used for ADATA width on arm, power64
+ Addr from3; // power64 only (e.g., RLWM/FMADD from, reg, from3, to)
Addr to;
// for 5g, 6g, 8g internal use