[Bug target/126933] FAIL: gcc.target/i386/truncsfbf-2.c execution test

"hjl.tools at gmail dot com via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126933

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |liuhongt at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2026-08-19
     Ever confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
Clang generates:

Dump of assembler code for function foo:
   0x0000000000401160 <+0>:     push   %rbp
   0x0000000000401161 <+1>:     mov    %rsp,%rbp
   0x0000000000401164 <+4>:     sub    $0x10,%rsp
   0x0000000000401168 <+8>:     movss  %xmm0,-0x4(%rbp)
   0x000000000040116d <+13>:    movss  -0x4(%rbp),%xmm0
   0x0000000000401172 <+18>:    call   0x401310 <__truncsfbf2>
   0x0000000000401177 <+23>:    add    $0x10,%rsp
   0x000000000040117b <+27>:    pop    %rbp
   0x000000000040117c <+28>:    ret
End of assembler dump.

which returns 1.001e-08.  The GCC inlined SSE2 emulation should
be improved.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.