public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/111058] New: __builtin_nans (and its friends) compiles to an external call to __builtin_nans for unsupported tag
@ 2023-08-18  7:18 xry111 at gcc dot gnu.org
  2023-08-18  7:24 ` [Bug c/111058] __builtin_nans (and its friends for other floating-point types) " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: xry111 at gcc dot gnu.org @ 2023-08-18  7:18 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111058
           Summary: __builtin_nans (and its friends) compiles to an
                    external call to __builtin_nans for unsupported tag
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xry111 at gcc dot gnu.org
  Target Milestone: ---

double test(void)
{
        return __builtin_nans("xxx");
}

compiles to:

test:
.LFB0:
        .cfi_startproc
        leaq    .LC0(%rip), %rdi
        jmp     __builtin_nans@PLT
        .cfi_endproc

We should refer to "nans" instead of "__builtin_nans" in the generated code. 
Though nans does not exist in libm for now, it may be added into a future libm
version or the user can provide their own nans implementation.

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

end of thread, other threads:[~2023-08-18 18:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-18  7:18 [Bug c/111058] New: __builtin_nans (and its friends) compiles to an external call to __builtin_nans for unsupported tag xry111 at gcc dot gnu.org
2023-08-18  7:24 ` [Bug c/111058] __builtin_nans (and its friends for other floating-point types) " pinskia at gcc dot gnu.org
2023-08-18  8:18 ` pinskia at gcc dot gnu.org
2023-08-18  8:34 ` chenxiaolong at loongson dot cn
2023-08-18  8:44 ` chenxiaolong at loongson dot cn
2023-08-18 13:29 ` joseph at codesourcery dot com
2023-08-18 13:34 ` xry111 at gcc dot gnu.org
2023-08-18 18:19 ` joseph at codesourcery dot com

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