6.59.25 RX Built-in Functions
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:
- Built-in Function: void __builtin_rx_brk (void)
Generates the
brkmachine instruction.
- Built-in Function: void __builtin_rx_clrpsw (int)
Generates the
clrpswmachine instruction to clear the specified bit in the processor status word.
- Built-in Function: void __builtin_rx_int (int)
Generates the
intmachine instruction to generate an interrupt with the specified value.
- Built-in Function: void __builtin_rx_machi (int, int)
Generates the
machimachine instruction to add the result of multiplying the top 16 bits of the two arguments into the accumulator.
- Built-in Function: void __builtin_rx_maclo (int, int)
Generates the
maclomachine instruction to add the result of multiplying the bottom 16 bits of the two arguments into the accumulator.
- Built-in Function: void __builtin_rx_mulhi (int, int)
Generates the
mulhimachine instruction to place the result of multiplying the top 16 bits of the two arguments into the accumulator.
- Built-in Function: void __builtin_rx_mullo (int, int)
Generates the
mullomachine instruction to place the result of multiplying the bottom 16 bits of the two arguments into the accumulator.
- Built-in Function: int __builtin_rx_mvfachi (void)
Generates the
mvfachimachine instruction to read the top 32 bits of the accumulator.
- Built-in Function: int __builtin_rx_mvfacmi (void)
Generates the
mvfacmimachine instruction to read the middle 32 bits of the accumulator.
- Built-in Function: int __builtin_rx_mvfc (int)
Generates the
mvfcmachine instruction which reads the control register specified in its argument and returns its value.
- Built-in Function: void __builtin_rx_mvtachi (int)
Generates the
mvtachimachine instruction to set the top 32 bits of the accumulator.
- Built-in Function: void __builtin_rx_mvtaclo (int)
Generates the
mvtaclomachine instruction to set the bottom 32 bits of the accumulator.
- Built-in Function: void __builtin_rx_mvtc (int reg, int val)
Generates the
mvtcmachine instruction which sets control register numberregtoval.
- Built-in Function: void __builtin_rx_mvtipl (int)
Generates the
mvtiplmachine instruction set the interrupt priority level.
- Built-in Function: void __builtin_rx_racw (int)
Generates the
racwmachine instruction to round the accumulator according to the specified mode.
- Built-in Function: int __builtin_rx_revw (int)
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.
- Built-in Function: void __builtin_rx_rmpa (void)
Generates the
rmpamachine instruction which initiates a repeated multiply and accumulate sequence.
- Built-in Function: void __builtin_rx_round (float)
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.
- Built-in Function: int __builtin_rx_sat (int)
Generates the
satmachine instruction which returns the saturated value of the argument.
- Built-in Function: void __builtin_rx_setpsw (int)
Generates the
setpswmachine instruction to set the specified bit in the processor status word.
- Built-in Function: void __builtin_rx_wait (void)
Generates the
waitmachine instruction.
Next: S/390 System z Built-in Functions, Previous: PowerPC Atomic Memory Operation Functions, Up: Target Builtins [Contents][Index]
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-8.3.0/gcc/RX-Built_002din-Functions.html