Remove the feenableexcept() call in main()
Clang's default floating-point exception behavior is
-ffp-exception-behavior=ignore, so code generated by Clang often raises
division-by-zero exceptions. The feenableexcept() call is only safe if
libaom is compiled with -ffp-exception-behavior=maytrap or
-ffp-exception-behavior=strict. Until we have a way to jointly control
the -ffp-exception-behavior flag and the feenableexcept() call, we need
to remove the feenableexcept() call.
Bug: aomedia:3399
Bug: aomedia:3414
Change-Id: Iad3a8e30dcc04c9d9d93c3eeaaf40db6c45f810b
diff --git a/test/test_libaom.cc b/test/test_libaom.cc
index aa1514e..462d877 100644
--- a/test/test_libaom.cc
+++ b/test/test_libaom.cc
@@ -20,9 +20,6 @@
#if ARCH_X86 || ARCH_X86_64
#include "aom_ports/x86.h"
#endif
-#if HAVE_FEXCEPT
-#include <fenv.h>
-#endif
extern "C" {
extern void av1_rtcd();
extern void aom_dsp_rtcd();
@@ -52,14 +49,6 @@
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
-#if HAVE_FEXCEPT
- const int excepts = FE_DIVBYZERO;
- if (feenableexcept(excepts) == -1) {
- fprintf(stderr, "feenableexcept(0x%x) not supported on the architecture\n",
- excepts);
- }
-#endif
-
#if ARCH_X86 || ARCH_X86_64
const int simd_caps = x86_simd_caps();
if (!(simd_caps & HAS_MMX)) append_negative_gtest_filter("MMX");