Explorar o código

Fix Execution Test for atan(NaN) and Fabs

1. Update expected value of atan(NaN) to NaN (#240)
2. Update spec for Fabs for denorm
Young Kim %!s(int64=8) %!d(string=hai) anos
pai
achega
4f3355b8f1

+ 1 - 1
docs/DXIL.rst

@@ -2176,7 +2176,7 @@ Returns 2^exponent. Note that hlsl log intrinsic returns the base-e exponent. Ma
 FAbs
 ~~~~
 
-The FAbs instruction takes simply forces the sign of the number(s) on the source operand positive, including on INF values.
+The FAbs instruction takes simply forces the sign of the number(s) on the source operand positive, including on INF and denorm values.
 Applying FAbs on NaN preserves NaN, although the particular NaN bit pattern that results is not defined.
 
 FMad

+ 1 - 1
tools/clang/unittests/HLSL/ShaderOpArithTable.xml

@@ -390,7 +390,7 @@
           <Value>-1</Value>
         </Parameter>
         <Parameter Name="Validation.Expected">
-          <Value>0.785410</Value>
+          <Value>NaN</Value>
           <Value>-1.570796</Value>
           <Value>0.0</Value>
           <Value>0.0</Value>

+ 1 - 1
utils/hct/hctdb_inst_docs.txt

@@ -129,7 +129,7 @@ Returns 2^exponent. Note that hlsl log intrinsic returns the base-e exponent. Ma
 
 * Inst: FAbs - returns the absolute value of the input value.
 
-The FAbs instruction takes simply forces the sign of the number(s) on the source operand positive, including on INF values.
+The FAbs instruction takes simply forces the sign of the number(s) on the source operand positive, including on INF and denorm values.
 Applying FAbs on NaN preserves NaN, although the particular NaN bit pattern that results is not defined.
 
 * Inst: FirstbitHi - Returns the location of the first set bit starting from the highest order bit and working downward.