Fix some differences with DXC's disassembly

* We also add an option to tweak our disassembly output to be more easily
  compared with dxc's
This commit is contained in:
baldurk
2021-09-09 12:35:19 +01:00
parent a42401c957
commit 44eee83aa2
5 changed files with 184 additions and 80 deletions
-5
View File
@@ -1281,11 +1281,6 @@ TEST_CASE("Check format conversion", "[format]")
float f2 = ConvertFromHalf(i2);
CHECK(!RDCISFINITE(f2));
}
else if(i == 0x8000)
{
// signed 0
CHECK(i2 == 0);
}
else
{
CHECK(i == i2);
+1 -1
View File
@@ -94,7 +94,7 @@ inline float ConvertFromHalf(uint16_t comp)
if(exponent == 0x00)
{
if(mantissa == 0)
return 0.0f;
return sign ? -0.0f : 0.0f;
// subnormal
float ret = (float)mantissa;