[llvm-dev] Default FPENV state
Dinar Temirbulatov via llvm-dev
llvm-dev at lists.llvm.org
Wed Jun 14 03:06:13 PDT 2017
Hi,
We are interesting in expanding some vector operations directly in the
IR form as constants https://reviews.llvm.org/D33406,
for example: _mm256_cmp_ps("any input", "any input", _CMP_TRUE_UQ)
should produce -1, -1, -1, ... vector, but for some values for example
"1.00 -nan" if FPU exceptions were enabled this operation triggers the
exception. Here is the question: Should we assume that FPENV was
initialized with FE_ALL_EXCEPT by default or we could rely for example
on "-fno-trapping-math" flag or we could completely ignore the FPU
exception issue(see https://bugs.llvm.org/show_bug.cgi?id=6050)?
Thanks, Dinar.
More information about the llvm-dev
mailing list