__mfspr, __builtin_ppc_mfspr

Purpose

Move from Special-Purpose Register

Returns the value of given special purpose register.

Syntax

unsigned long __builtin_ppc_mfspr (const int registerNumber)
unsigned long __mfspr (const int registerNumber)
Note:
  • The built-in function in the form of __name is a synonym of the built-in function in the form of __builtin_ppc_name.
  • The built-in function in the form of __name is provided for compatibility with IBM® XL C/C++ for AIX® 16.1.0 or earlier releases. This built-in function form might be deprecated in the future.

Parameters

registerNumber
The number of the special purpose register whose value is to be returned. The registerNumber must be known at compile time.