Fix fp16_test compilation _without_ f16c-enabled compilation flags.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 3 Aug 2017 13:36:30 +0000 (15:36 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 3 Aug 2017 13:36:30 +0000 (15:36 +0200)
Reported by Arthur Huillet.

fp16_test.cpp

index d95e5c6..7a9d566 100644 (file)
@@ -45,10 +45,13 @@ union fp64 {
        double f;
        unsigned long long ll;
 };
+
+#ifdef __F16C__
 union fp32 {
        float f;
        unsigned int u;
 };
+#endif
 
 TEST(FP16Test, NaN) {
        // Ignore the sign bit.