From 560c33e0ba4501cbf2d60465ee70773cd7e1affd Mon Sep 17 00:00:00 2001 From: Georg-Johann Lay Date: Wed, 6 Jun 2012 16:39:52 +0000 Subject: [PATCH] Fix comments From-SVN: r188269 --- gcc/config/avr/builtins.def | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/config/avr/builtins.def b/gcc/config/avr/builtins.def index 4b04ff1b367..b3aa0c82d62 100644 --- a/gcc/config/avr/builtins.def +++ b/gcc/config/avr/builtins.def @@ -23,15 +23,16 @@ DEF_BUILTIN(NAME, N_ARGS, ID, TYPE, ICODE) NAME: The name as visible by the user as a C string. - ID: An integer to identify the built-in. N_ARGS: Number of input arguments. If special treatment is needed, set to -1 and handle it by hand, see avr.c:avr_expand_builtin(). + ID: An integer to identify the built-in. TYPE: A tree node describing the prototype of the built-in. ICODE: Insn code number for the insn attached to the built-in. If special treatment is needed to expand the built-in, set to -1. */ /* Mapped to respective instruction. */ + DEF_BUILTIN ("__builtin_avr_nop", -1, AVR_BUILTIN_NOP, void_ftype_void, -1) DEF_BUILTIN ("__builtin_avr_sei", 0, AVR_BUILTIN_SEI, void_ftype_void, CODE_FOR_enable_interrupt) DEF_BUILTIN ("__builtin_avr_cli", 0, AVR_BUILTIN_CLI, void_ftype_void, CODE_FOR_disable_interrupt) @@ -40,12 +41,14 @@ DEF_BUILTIN ("__builtin_avr_sleep", 0, AVR_BUILTIN_SLEEP, void_ftype_void, CODE_ /* Mapped to respective instruction but might also be folded away or emit as libgcc call if ISA does not provide the instruction. */ + DEF_BUILTIN ("__builtin_avr_swap", 1, AVR_BUILTIN_SWAP, uchar_ftype_uchar, CODE_FOR_rotlqi3_4) DEF_BUILTIN ("__builtin_avr_fmul", 2, AVR_BUILTIN_FMUL, uint_ftype_uchar_uchar, CODE_FOR_fmul) DEF_BUILTIN ("__builtin_avr_fmuls", 2, AVR_BUILTIN_FMULS, int_ftype_char_char, CODE_FOR_fmuls) DEF_BUILTIN ("__builtin_avr_fmulsu", 2, AVR_BUILTIN_FMULSU, int_ftype_char_uchar, CODE_FOR_fmulsu) /* More complex stuff that cannot be mapped 1:1 to an instruction. */ + DEF_BUILTIN ("__builtin_avr_delay_cycles", -1, AVR_BUILTIN_DELAY_CYCLES, void_ftype_ulong, -1) DEF_BUILTIN ("__builtin_avr_insert_bits", 3, AVR_BUILTIN_INSERT_BITS, uchar_ftype_ulong_uchar_uchar, CODE_FOR_insert_bits) DEF_BUILTIN ("__builtin_avr_flash_segment", 1, AVR_BUILTIN_FLASH_SEGMENT, char_ftype_const_memx_ptr, CODE_FOR_flash_segment) -- 2.30.2