https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111058
chenxiaolong <chenxiaolong at loongson dot cn> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chenxiaolong at loongson dot cn
--- Comment #3 from chenxiaolong <chenxiaolong at loongson dot cn> ---
//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)