DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

DxilConfTest::UnaryHalfOpTest#HtanHalf is failing on recent 24H2 build

Open SevenIsSeven opened this issue 2 years ago • 0 comments

Description DxilConfTest::UnaryHalfOpTest#HtanHalf is failing on recent 24H2 build

Steps to Reproduce it used to pass with 22621 and we notice 24H2 slightly changed the expected values of tanh(1.0), tanh(-1.0) from '0x3a17, 0xba17' to current '0x3a18, 0xba18'. It looks we also need to enlarge the tolerance for the test, like https://github.com/microsoft/DirectXShaderCompiler/issues/6179

Actual Behavior element #7, input = 1.00000000(0x3c00), output = 0.76074219(0x3a16), expected = 0.76171875(0x3a18) Error: Verify: IsTrue(CompareOutputWithExpectedValueHalf(output, ref, type, tolerance)) [File: OSS\dxil\test\hlk\dxilconf.cpp, Function: VerifyOutputWithExpectedValueHalf, Line: 7098] element #8, input = -1.00000000(0xbc00), output = -0.76074219(0xba16), expected = -0.76171875(0xba18) Error: Verify: IsTrue(CompareOutputWithExpectedValueHalf(output, ref, type, tolerance)) [File: OSS\dxil\test\hlk\dxilconf.cpp, Function: VerifyOutputWithExpectedValueHalf, Line: 7098]

Environment

  • DXC version dxc_2024_05_24
  • Host Operating System win11 24h2

SevenIsSeven avatar Jul 04 '24 00:07 SevenIsSeven