Fix fp16_test compilation with f16c-enabled compilation flags.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 1 Aug 2017 15:41:17 +0000 (17:41 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 1 Aug 2017 15:41:17 +0000 (17:41 +0200)
fp16_test.cpp

index 058c912..d95e5c6 100644 (file)
@@ -45,6 +45,10 @@ union fp64 {
        double f;
        unsigned long long ll;
 };
+union fp32 {
+       float f;
+       unsigned int u;
+};
 
 TEST(FP16Test, NaN) {
        // Ignore the sign bit.