瀏覽代碼

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

Young Kim 8 年之前
父節點
當前提交
56b7aaf0d9
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
   };
   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;
   }
 }