https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89774
Bug ID: 89774
Summary: Add flag to force single precision
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: marius.messerschmidt at googlemail dot com
Target Milestone: ---
It would be helpful if there was a flag (e.g. -fsingle-precision-literals) that
would cause gcc to treat floating point literals (e.g. 0.5 or 0.25 ...) in the
source code as single precision (float) and not double precision (double).
This could help improve performance of single precision code as right now there
are many conversion instructions (see objdump) which use quite a lot of runtime
(see perf).