Browse Source

Fix saturate test to tolerate preserving denorm. (#549)

Young Kim 8 years ago
parent
commit
56b7aaf0d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/clang/unittests/HLSL/ExecutionTest.cpp

+ 1 - 1
tools/clang/unittests/HLSL/ExecutionTest.cpp

@@ -2307,7 +2307,7 @@ TEST_F(ExecutionTest, SaturateTest) {
     0.0f                    // nan
     0.0f                    // nan
   };
   };
   for (size_t i = 0; i < _countof(ExpectedCases); ++i) {
   for (size_t i = 0; i < _countof(ExpectedCases); ++i) {
-    VERIFY_ARE_EQUAL(*pValues, ExpectedCases[i]);
+    VERIFY_IS_TRUE(ifdenorm_flushf_eq(*pValues, ExpectedCases[i]));
     ++pValues;
     ++pValues;
   }
   }
 }
 }