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 middle-end/114907] __trunchfbf2 should be renamed to __extendhfbf2
Date: Tue, 07 May 2024 19:30:54 +0000	[thread overview]
Message-ID: <bug-114907-4-WFeFtukqBr@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-114907-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:28ee13db2e9d995bd3728c4ff3a3545e24b39cd2

commit r15-303-g28ee13db2e9d995bd3728c4ff3a3545e24b39cd2
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue May 7 21:30:21 2024 +0200

    expansion: Use __trunchfbf2 calls rather than __extendhfbf2 [PR114907]

    The HF and BF modes have the same size/precision and neither is
    a subset nor superset of the other.
    So, using either __extendhfbf2 or __trunchfbf2 is weird.
    The expansion apparently emits __extendhfbf2, but on the libgcc side
    we apparently have __trunchfbf2 implemented.

    I think it is easier to switch to using what is available rather than
    adding new entrypoints to libgcc, even alias, because this is backportable.

    2024-05-07  Jakub Jelinek  <jakub@redhat.com>

            PR middle-end/114907
            * expr.cc (convert_mode_scalar): Use trunc_optab rather than
            sext_optab for HF->BF conversions.
            * optabs-libfuncs.cc (gen_trunc_conv_libfunc): Likewise.

            * gcc.dg/pr114907.c: New test.

  parent reply	other threads:[~2024-05-07 19:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-01 14:16 [Bug libgcc/114907] New: Missing __extendhfbf2 in libgcc hjl.tools at gmail dot com
2024-05-01 14:29 ` [Bug libgcc/114907] " hjl.tools at gmail dot com
2024-05-01 14:29 ` hjl.tools at gmail dot com
2024-05-01 14:34 ` hjl.tools at gmail dot com
2024-05-01 14:49 ` [Bug libgcc/114907] __trunchfbf2 should be renamed to __extendhfbf2 hjl.tools at gmail dot com
2024-05-01 16:50 ` hjl.tools at gmail dot com
2024-05-01 16:58 ` hjl.tools at gmail dot com
2024-05-01 18:17 ` jakub at gcc dot gnu.org
2024-05-05  8:31 ` liuhongt at gcc dot gnu.org
2024-05-06 14:08 ` [Bug middle-end/114907] " jakub at gcc dot gnu.org
2024-05-07 19:30 ` cvs-commit at gcc dot gnu.org [this message]
2024-05-07 19:31 ` cvs-commit at gcc dot gnu.org
2024-05-07 19:33 ` jakub at gcc dot gnu.org
2024-05-09  4:26 ` cvs-commit at gcc dot gnu.org
2024-05-09  8:18 ` jakub 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-114907-4-WFeFtukqBr@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).