public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Denis Chertykov <chertykov@gmail.com>
To: Georg-Johann Lay <avr@gjlay.de>
Cc: gcc-patches@gcc.gnu.org,
	Eric Weddington <eric.weddington@atmel.com>,
		Anatoly Sokolov <aesok@post.ru>
Subject: Re: Ping: [Patch][AVR]: Initial builtins support
Date: Tue, 12 Apr 2011 05:38:00 -0000	[thread overview]
Message-ID: <BANLkTimRH=Z1HrDRFJ9Qz-PhEh9H5XgR8Q@mail.gmail.com> (raw)
In-Reply-To: <4DA2E37B.6090804@gjlay.de>

2011/4/11 Georg-Johann Lay <avr@gjlay.de>:
> Georg-Johann Lay schrieb:
>> This patch adds builtin support for some RTL builtins to avr backend.
>> One builtin implements loop for delay of specific number of ticks
>> (under the assumption IRQs are off), others simply map to machine
>> instructions like SEI, CLI, NOP, SLEEP, WDR, FMUL, FMAULS, FMULSU.
>>
>> In addition, builtin macros are introduced so that use can easily
>> query if or if not a specific builtin is available. This might be
>> useful as builtin support evolves, because #ifdef is easier then to
>> twiddle out which version brings what builtin.
>>
>> 2011-04-06  Georg-Johann Lay  <avr@gjlay.de>
>>
>>       * config/avr/avr.c: ("insn-codes.h", "optabs.h", "langhooks.h"):
>>       New Includes
>>       (avr_init_builtins, avr_expand_builtin,
>>       avr_expand_delay_cycles, avr_expand_unop_builtin,
>>       avr_expand_binop_builtin ): New functions.
>>       (avr_builtin_id): New enum
>>       (struct avr_builtin_description): New struct
>>       (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
>>       (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
>>       * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
>>       UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
>>       UNSPECV_DELAY_CYCLES): new enumeration values
>>       (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
>>       ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
>>       ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
>>       ("*rotlqi3_4"): rename insn to "rotlqi3_4"
>>       ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
>>       "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
>>       "fmulsu"): New insns
>>       * config/avr/avr-c.c: fix line endings
>>       (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
>>       __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
>>       __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
>>       __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
>>       __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
>>

Approved.

Denis.

      reply	other threads:[~2011-04-12  5:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-06 14:11 Georg-Johann Lay
2011-04-06 15:16 ` Georg-Johann Lay
2011-04-06 18:55 ` Georg-Johann Lay
2011-04-11 11:18 ` Georg-Johann Lay
2011-04-12  5:38   ` Denis Chertykov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTimRH=Z1HrDRFJ9Qz-PhEh9H5XgR8Q@mail.gmail.com' \
    --to=chertykov@gmail.com \
    --cc=aesok@post.ru \
    --cc=avr@gjlay.de \
    --cc=eric.weddington@atmel.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).