public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/106117] New: Use of option -fexcess-precision for operation-by-operation emulation for _Float16 arithmetics.
@ 2022-06-28 13:17 Zahira.Ammarguellat at intel dot com
  2022-06-28 15:04 ` [Bug c/106117] " rjmccall at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Zahira.Ammarguellat at intel dot com @ 2022-06-28 13:17 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106117
           Summary: Use of option -fexcess-precision for
                    operation-by-operation emulation for _Float16
                    arithmetics.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Zahira.Ammarguellat at intel dot com
  Target Milestone: ---

We are adding in Clang the support of '_Float16' on X86 targets with SSE2
enabled. 
When the target supports AVX512-FP16, Clang performs '_Float16' arithmetic
using native support. Otherwise, '_Float16' arithmetic is performed by
promoting to 'float', then performing the operation, and finally truncating to
'_Float16'. 

This operation-by-operation emulation is the default in Clang, and is in line
with the C standard's rules for excess precision arithmetic. We would like to
adopt the option '-fexcess-precision' to request this operation-by-operation
emulation by setting '-fexcess-precision=none'. 
First are there any objections in using this option to request
operation-by-operation emulation for '_Float16' arithmetic? 
Second is 'none' the right value to use?
Thanks.

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

end of thread, other threads:[~2022-06-29 21:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28 13:17 [Bug c/106117] New: Use of option -fexcess-precision for operation-by-operation emulation for _Float16 arithmetics Zahira.Ammarguellat at intel dot com
2022-06-28 15:04 ` [Bug c/106117] " rjmccall at gmail dot com
2022-06-28 21:14 ` joseph at codesourcery dot com
2022-06-28 23:44 ` crazylht at gmail dot com
2022-06-29 15:47 ` rjmccall at gmail dot com
2022-06-29 17:34 ` joseph at codesourcery dot com
2022-06-29 17:58 ` rjmccall at gmail dot com
2022-06-29 20:16 ` joseph at codesourcery dot com
2022-06-29 21:31 ` rjmccall at gmail 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).