public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/100966] New: [AArch64] __builtin_roundeven[f] is not inlined
@ 2021-06-08 12:28 wilco at gcc dot gnu.org
  2021-10-20 12:38 ` [Bug target/100966] " cvs-commit at gcc dot gnu.org
  2021-10-20 12:41 ` wilco at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: wilco at gcc dot gnu.org @ 2021-06-08 12:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100966
           Summary: [AArch64] __builtin_roundeven[f] is not inlined
           Product: gcc
           Version: 10.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wilco at gcc dot gnu.org
  Target Milestone: ---

The new roundeven builtins are not inlined on AArch64:

double f1 (double x)
{
  return __builtin_roundeven (x);
}

float f2 (float x)
{
  return __builtin_roundevenf (x);
}

f1:
        b       roundeven
f2:
        b       roundevenf

These should use the frintn instructions instead of calling the GLIBC
functions.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/100966] [AArch64] __builtin_roundeven[f] is not inlined
  2021-06-08 12:28 [Bug target/100966] New: [AArch64] __builtin_roundeven[f] is not inlined wilco at gcc dot gnu.org
@ 2021-10-20 12:38 ` cvs-commit at gcc dot gnu.org
  2021-10-20 12:41 ` wilco at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-20 12:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Wilco Dijkstra <wilco@gcc.gnu.org>:

https://gcc.gnu.org/g:16ce822ed14e6635ee2ffcba394bba8e934bc6dd

commit r12-4567-g16ce822ed14e6635ee2ffcba394bba8e934bc6dd
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date:   Wed Oct 20 13:09:30 2021 +0100

    AArch64: Add support for __builtin_roundeven[f] (PR100966)

    Enable __builtin_roundeven[f] by changing existing frintn to roundeven.

    2021-10-20  Wilco Dijkstra  <wdijkstr@arm.com>

    gcc/
            PR target/100966
            * config/aarch64/aarch64.md (frint_pattern): Update comment.
            * config/aarch64/aarch64-simd-builtins.def: Change frintn to
roundeven.
            * config/aarch64/arm_fp16.h: Change frintn to roundeven.
            * config/aarch64/arm_neon.h: Likewise.
            * config/aarch64/iterators.md (frint_pattern): Use roundeven for
FRINTN.

    gcc/testsuite/
            PR target/100966
            * gcc.target/aarch64/frint.x: Add roundeven tests.
            * gcc.target/aarch64/frint_double.c: Likewise.
            * gcc.target/aarch64/frint_float.c: Likewise.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/100966] [AArch64] __builtin_roundeven[f] is not inlined
  2021-06-08 12:28 [Bug target/100966] New: [AArch64] __builtin_roundeven[f] is not inlined wilco at gcc dot gnu.org
  2021-10-20 12:38 ` [Bug target/100966] " cvs-commit at gcc dot gnu.org
@ 2021-10-20 12:41 ` wilco at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: wilco at gcc dot gnu.org @ 2021-10-20 12:41 UTC (permalink / raw)
  To: gcc-bugs

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

Wilco <wilco at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |12.0

--- Comment #2 from Wilco <wilco at gcc dot gnu.org> ---
Fixed

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-20 12:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08 12:28 [Bug target/100966] New: [AArch64] __builtin_roundeven[f] is not inlined wilco at gcc dot gnu.org
2021-10-20 12:38 ` [Bug target/100966] " cvs-commit at gcc dot gnu.org
2021-10-20 12:41 ` wilco at gcc dot gnu.org

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).