[Bug c/92875] GCC ignores the floating-point 'f' suffix in C11 mode

2019-12-09 Thread anders at wahrzeichnen dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92875 --- Comment #6 from anders at wahrzeichnen dot de --- (In reply to jos...@codesourcery.com from comment #3) > This is as specified in the C standard. I guess you are referring to the C18 section 6.3.1.8 (2) "The values of floating

[Bug c/92875] GCC ignores the floating-point 'f' suffix in C11 mode

2019-12-09 Thread anders at wahrzeichnen dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92875 --- Comment #4 from anders at wahrzeichnen dot de --- I don't know about other archs, but on amd64, GCC emits comiss insns (SSE2 single-precision scalar compare) for f0, f1, and f2 and comisd insns (SSE2 double-precision scalar compare) for f3

[Bug c/92875] GCC ignores the floating-point 'f' suffix in C11 mode

2019-12-09 Thread anders at wahrzeichnen dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92875 --- Comment #2 from anders at wahrzeichnen dot de --- No, -ffloat-store does not help. And this has little if anything to do with 323, imho. The asm generated for f3 is instructive: There, GCC wants to load a double constant 0x3fba

[Bug c/92875] New: GCC ignores the floating-point 'f' suffix in C11 mode

2019-12-09 Thread anders at wahrzeichnen dot de
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anders at wahrzeichnen dot de Target Milestone: --- Created attachment 47454 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47454=edit test case with return value 0 or 8 expected, returns 12 GCC treats float