Next: , Previous: Sparc-Chars, Up: Sparc-Syntax



9.30.3.2 Register Names

The Sparc integer register file is broken down into global, outgoing, local, and incoming.

Floating point registers are simply referred to as %fn. When assembling for pre-V9, only 32 floating point registers are available. For V9 and later there are 64, but there are restrictions when referencing the upper 32 registers. They can only be accessed as double or quad, and thus only even or quad numbered accesses are allowed. For example, %f34 is a legal floating point register, but %f35 is not.

Certain V9 instructions allow access to ancillary state registers. Most simply they can be referred to as %asrn where n can be from 16 to 31. However, there are some aliases defined to reference ASR registers defined for various UltraSPARC processors:

Various V9 branch and conditional move instructions allow specification of which set of integer condition codes to test. These are referred to as %xcc and %icc.

In V9, there are 4 sets of floating point condition codes which are referred to as %fccn.

Several special privileged and non-privileged registers exist:

Several special register names exist for hypervisor mode code: