gcc: RX Built-in Functions
1
1 6.59.25 RX Built-in Functions
1 -----------------------------
1
1 GCC supports some of the RX instructions which cannot be expressed in
1 the C programming language via the use of built-in functions. The
1 following functions are supported:
1
1 -- Built-in Function: void __builtin_rx_brk (void)
1 Generates the 'brk' machine instruction.
1
1 -- Built-in Function: void __builtin_rx_clrpsw (int)
1 Generates the 'clrpsw' machine instruction to clear the specified
1 bit in the processor status word.
1
1 -- Built-in Function: void __builtin_rx_int (int)
1 Generates the 'int' machine instruction to generate an interrupt
1 with the specified value.
1
1 -- Built-in Function: void __builtin_rx_machi (int, int)
1 Generates the 'machi' machine instruction to add the result of
1 multiplying the top 16 bits of the two arguments into the
1 accumulator.
1
1 -- Built-in Function: void __builtin_rx_maclo (int, int)
1 Generates the 'maclo' machine instruction to add the result of
1 multiplying the bottom 16 bits of the two arguments into the
1 accumulator.
1
1 -- Built-in Function: void __builtin_rx_mulhi (int, int)
1 Generates the 'mulhi' machine instruction to place the result of
1 multiplying the top 16 bits of the two arguments into the
1 accumulator.
1
1 -- Built-in Function: void __builtin_rx_mullo (int, int)
1 Generates the 'mullo' machine instruction to place the result of
1 multiplying the bottom 16 bits of the two arguments into the
1 accumulator.
1
1 -- Built-in Function: int __builtin_rx_mvfachi (void)
1 Generates the 'mvfachi' machine instruction to read the top 32 bits
1 of the accumulator.
1
1 -- Built-in Function: int __builtin_rx_mvfacmi (void)
1 Generates the 'mvfacmi' machine instruction to read the middle 32
1 bits of the accumulator.
1
1 -- Built-in Function: int __builtin_rx_mvfc (int)
1 Generates the 'mvfc' machine instruction which reads the control
1 register specified in its argument and returns its value.
1
1 -- Built-in Function: void __builtin_rx_mvtachi (int)
1 Generates the 'mvtachi' machine instruction to set the top 32 bits
1 of the accumulator.
1
1 -- Built-in Function: void __builtin_rx_mvtaclo (int)
1 Generates the 'mvtaclo' machine instruction to set the bottom 32
1 bits of the accumulator.
1
1 -- Built-in Function: void __builtin_rx_mvtc (int reg, int val)
1 Generates the 'mvtc' machine instruction which sets control
1 register number 'reg' to 'val'.
1
1 -- Built-in Function: void __builtin_rx_mvtipl (int)
1 Generates the 'mvtipl' machine instruction set the interrupt
1 priority level.
1
1 -- Built-in Function: void __builtin_rx_racw (int)
1 Generates the 'racw' machine instruction to round the accumulator
1 according to the specified mode.
1
1 -- Built-in Function: int __builtin_rx_revw (int)
1 Generates the 'revw' machine instruction which swaps the bytes in
1 the argument so that bits 0-7 now occupy bits 8-15 and vice versa,
1 and also bits 16-23 occupy bits 24-31 and vice versa.
1
1 -- Built-in Function: void __builtin_rx_rmpa (void)
1 Generates the 'rmpa' machine instruction which initiates a repeated
1 multiply and accumulate sequence.
1
1 -- Built-in Function: void __builtin_rx_round (float)
1 Generates the 'round' machine instruction which returns the
1 floating-point argument rounded according to the current rounding
1 mode set in the floating-point status word register.
1
1 -- Built-in Function: int __builtin_rx_sat (int)
1 Generates the 'sat' machine instruction which returns the saturated
1 value of the argument.
1
1 -- Built-in Function: void __builtin_rx_setpsw (int)
1 Generates the 'setpsw' machine instruction to set the specified bit
1 in the processor status word.
1
1 -- Built-in Function: void __builtin_rx_wait (void)
1 Generates the 'wait' machine instruction.
1