Next: SPARC VIS Built-in Functions, Previous: PowerPC AltiVec/VSX Built-in Functions, Up: Target Builtins
GCC supports some of the RX instructions which cannot be expressed in the C programming language via the use of built-in functions. The following functions are supported:
Generates the
clrpswmachine instruction to clear the specified bit in the processor status word.
Generates the
intmachine instruction to generate an interrupt with the specified value.
Generates the
machimachine instruction to add the result of multiplying the top 16-bits of the two arguments into the accumulator.
Generates the
maclomachine instruction to add the result of multiplying the bottom 16-bits of the two arguments into the accumulator.
Generates the
mulhimachine instruction to place the result of multiplying the top 16-bits of the two arguments into the accumulator.
Generates the
mullomachine instruction to place the result of multiplying the bottom 16-bits of the two arguments into the accumulator.
Generates the
mvfachimachine instruction to read the top 32-bits of the accumulator.
Generates the
mvfacmimachine instruction to read the middle 32-bits of the accumulator.
Generates the
mvfcmachine instruction which reads the control register specified in its argument and returns its value.
Generates the
mvtachimachine instruction to set the top 32-bits of the accumulator.
Generates the
mvtaclomachine instruction to set the bottom 32-bits of the accumulator.
Generates the
mvtcmachine instruction which sets control register numberregtoval.
Generates the
mvtiplmachine instruction set the interrupt priority level.
Generates the
racwmachine instruction to round the accumulator according to the specified mode.
Generates the
revwmachine instruction which swaps the bytes in the argument so that bits 0–7 now occupy bits 8–15 and vice versa, and also bits 16–23 occupy bits 24–31 and vice versa.
Generates the
rmpamachine instruction which initiates a repeated multiply and accumulate sequence.
Generates the
roundmachine instruction which returns the floating point argument rounded according to the current rounding mode set in the floating point status word register.
Generates the
satmachine instruction which returns the saturated value of the argument.