Add regvar_w() and regvar_d() for use with reglap.
authorGeorge Koehler <xkernigh@netscape.net>
Tue, 17 Oct 2017 16:05:41 +0000 (12:05 -0400)
committerGeorge Koehler <xkernigh@netscape.net>
Tue, 17 Oct 2017 16:05:41 +0000 (12:05 -0400)
commit307a8b996e22af1a6c677c5a3e1d1f3aef4aca18
tree421c85b42c6e6507688342fd87fed9a97bbe6467
parent5432bd03d694cd2a92bca4e1826323f0b83a5730
Add regvar_w() and regvar_d() for use with reglap.

If the ncg table uses reglap, then regvar($1, reg_float) would have
two sizes of registers.  An error from ncgg would happen if regvar()
was in a token that allows only one size.  Now one can pick a size
with regvar_w() for word size or regvar_d() for double-word size.

Add regvar_d and regvar_w as keywords in ncgg.  Modify EX_REGVAR to
include the register size.  In ncg, add some checks for the register
size.  In tables without reglap, regvar() works as before, and ncg
ignores the register size in EX_REGVAR.
mach/proto/ncg/compute.c
mach/proto/ncg/subr.c
util/ncgg/cgg.y
util/ncgg/expr.c
util/ncgg/instruct.c
util/ncgg/keywords