diff options
Diffstat (limited to 'src/cmd/9g/opt.h')
-rw-r--r-- | src/cmd/9g/opt.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cmd/9g/opt.h b/src/cmd/9g/opt.h index 7f15b5a69..6a07b268f 100644 --- a/src/cmd/9g/opt.h +++ b/src/cmd/9g/opt.h @@ -225,6 +225,16 @@ enum void proginfo(ProgInfo*, Prog*); +// Many Power ISA arithmetic and logical instructions come in four +// standard variants. These bits let us map between variants. +enum { + V_CC = 1<<0, // xCC (affect CR field 0 flags) + V_V = 1<<1, // xV (affect SO and OV flags) +}; + +int as2variant(int); +int variant2as(int, int); + // To allow use of AJMP, ACALL, ARET in ../gc/popt.c. enum { |