public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/114981] [avr] Improve powi implementation
Date: Thu, 09 May 2024 08:31:54 +0000	[thread overview]
Message-ID: <bug-114981-4-LireQhnrgn@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-114981-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114981

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Georg-Johann Lay
<gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:a9e313ed38775b3ffee650d5396419ce3e6ea389

commit r14-10186-ga9e313ed38775b3ffee650d5396419ce3e6ea389
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Wed May 8 17:56:05 2024 +0200

    AVR: target/114981 - Support __builtin_powi[l] / __powidf2.

    This supports __powidf2 by means of a double wrapper for already
    existing f7_powi (renamed to __f7_powi by f7-renames.h).
    It tweaks the implementation so that it does not perform trivial
    multiplications with 1.0 any more, but instead uses a move.
    It also fixes the last statement of f7_powi, which was wrong.
    Notice that f7_powi was unused until now.

            PR target/114981
    libgcc/config/avr/libf7/
            * libf7-common.mk (F7_ASM_PARTS): Add D_powi
            * libf7-asm.sx (F7MOD_D_powi_, __powidf2): New module and function.
            * libf7.c (f7_powi): Fix last (wrong) statement.
            Tweak trivial multiplications with 1.0.

    gcc/testsuite/
            * gcc.target/avr/pr114981-powil.c: New test.

    (cherry picked from commit de4eea7d7ea86e54843507c68d6672eca9d8c7bb)

  parent reply	other threads:[~2024-05-09  8:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-08  6:33 [Bug target/114981] New: " gjl at gcc dot gnu.org
2024-05-08  6:34 ` [Bug target/114981] " gjl at gcc dot gnu.org
2024-05-08 17:04 ` cvs-commit at gcc dot gnu.org
2024-05-09  8:10 ` cvs-commit at gcc dot gnu.org
2024-05-09  8:31 ` cvs-commit at gcc dot gnu.org [this message]
2024-05-10  9:59 ` cvs-commit at gcc dot gnu.org
2024-05-10 10:02 ` cvs-commit at gcc dot gnu.org
2024-05-10 10:06 ` gjl at gcc dot gnu.org

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=bug-114981-4-LireQhnrgn@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).