public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "chenxiaolong at loongson dot cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/111058] __builtin_nans (and its friends for other floating-point types) compiles to an external call to __builtin_nans for unsupported tag
Date: Fri, 18 Aug 2023 08:44:40 +0000	[thread overview]
Message-ID: <bug-111058-4-VsoeiooJ6x@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-111058-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #4 from chenxiaolong <chenxiaolong at loongson dot cn> ---
(In reply to chenxiaolong from comment #3)
> //test.c
> #include<stdio.h>
> 
> int main(void)
> {
> 	_Float128 ret=__builtin_nansf128("NAN");
> 	printf("ret=%Lf\n",ret);
> 	
> 	return 0;	
> }	
> Compile command: gcc test.c -s -o -
> result:
> 
> x86_64:
>         ...
>      	movl	$.LC0, %edi
> 	call	__builtin_nansf128
>         ... 
> LoongArch:
>  
>        la.local	$r4,.LC0
> 	bl	%plt(__builtin_nansf128)

Compile command: gcc test.c -S -o -

  parent reply	other threads:[~2023-08-18  8:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-18  7:18 [Bug c/111058] New: __builtin_nans (and its friends) " 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 [this message]
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

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-111058-4-VsoeiooJ6x@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).