As I read on Intel's website:
Intel compiler uses /fp-model fast=1 as defaults. This optimization favors speed over standards compliance. You may use compiler option -mieee-fp to get compliant code.
My understanding of the fp-model option in ICC is that (correct me if I'm wrong):
precise
corresponds to default settings in GCC and Clang,fast=2
is similar to-ffast-math
,fast=1
is somewhere between.
What options in GCC or Clang would make floating point math most similar to Intel's default -fp-model fast=1
?