OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [avr/] [builtins.def] - Blame information for rev 767

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 709 jeremybenn
/* Copyright (C) 2012 Free Software Foundation, Inc.
2
 
3
   This file is part of GCC.
4
 
5
   GCC is free software; you can redistribute it and/or modify it under
6
   the terms of the GNU General Public License as published by the Free
7
   Software Foundation; either version 3, or (at your option) any later
8
   version.
9
 
10
   GCC is distributed in the hope that it will be useful, but WITHOUT ANY
11
   WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13
   for more details.
14
 
15
   You should have received a copy of the GNU General Public License
16
   along with GCC; see the file COPYING3.  If not see
17
   .  */
18
 
19
/* This file contains the definitions and documentation for the
20
   builtins defined in the AVR part of the GNU compiler.
21
   Befor including this file, define a macro
22
 
23
   DEF_BUILTIN(NAME, N_ARGS, ID, TYPE, ICODE)
24
 
25
   NAME:   The name as visible by the user as a C string.
26
   ID:     An integer to identify the built-in.
27
   N_ARGS: Number of input arguments.  If special treatment is needed,
28
           set to -1 and handle it by hand, see avr.c:avr_expand_builtin().
29
   TYPE:   A tree node describing the prototype of the built-in.
30
   ICODE:  Insn code number for the insn attached to the built-in.
31
           If special treatment is needed to expand the built-in, set to -1.
32
*/
33
 
34
/* Mapped to respective instruction.  */
35
DEF_BUILTIN ("__builtin_avr_nop",  -1, AVR_BUILTIN_NOP, void_ftype_void, -1)
36
DEF_BUILTIN ("__builtin_avr_sei",   0, AVR_BUILTIN_SEI, void_ftype_void, CODE_FOR_enable_interrupt)
37
DEF_BUILTIN ("__builtin_avr_cli",   0, AVR_BUILTIN_CLI, void_ftype_void, CODE_FOR_disable_interrupt)
38
DEF_BUILTIN ("__builtin_avr_wdr",   0, AVR_BUILTIN_WDR,   void_ftype_void, CODE_FOR_wdr)
39
DEF_BUILTIN ("__builtin_avr_sleep", 0, AVR_BUILTIN_SLEEP, void_ftype_void, CODE_FOR_sleep)
40
 
41
/* Mapped to respective instruction but might alse be folded away
42
   or emit as libgcc call if ISA does not provide the instruction.  */
43
DEF_BUILTIN ("__builtin_avr_swap",   1, AVR_BUILTIN_SWAP,   uchar_ftype_uchar,      CODE_FOR_rotlqi3_4)
44
DEF_BUILTIN ("__builtin_avr_fmul",   2, AVR_BUILTIN_FMUL,   uint_ftype_uchar_uchar, CODE_FOR_fmul)
45
DEF_BUILTIN ("__builtin_avr_fmuls",  2, AVR_BUILTIN_FMULS,  int_ftype_char_char,    CODE_FOR_fmuls)
46
DEF_BUILTIN ("__builtin_avr_fmulsu", 2, AVR_BUILTIN_FMULSU, int_ftype_char_uchar,   CODE_FOR_fmulsu)
47
 
48
/* More complex stuff that cannot be mapped 1:1 to an instruction.  */
49
DEF_BUILTIN ("__builtin_avr_delay_cycles", -1, AVR_BUILTIN_DELAY_CYCLES, void_ftype_ulong, -1)
50
DEF_BUILTIN ("__builtin_avr_insert_bits", 3, AVR_BUILTIN_INSERT_BITS, uchar_ftype_ulong_uchar_uchar, CODE_FOR_insert_bits)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.