From 05d6b045bdde5a58b8a7b12889b2041c95860f13 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Sun, 21 Sep 2025 22:23:38 +0200 Subject: [PATCH] tests/hlsl: Explicitly specify the mantissa to be used for the frexp() test. frexp() apparently returns the same mantissa, so we need to know what it is. --- tests/hlsl/frexp.shader_test | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/hlsl/frexp.shader_test b/tests/hlsl/frexp.shader_test index 3d9b75b7f..f364bf038 100644 --- a/tests/hlsl/frexp.shader_test +++ b/tests/hlsl/frexp.shader_test @@ -45,10 +45,11 @@ todo(sm<4) draw quad if(sm<4) probe (0, 0) f32(-NAN, -NAN, 0, 0) if(sm>=4) probe (0, 0) f32(129, 0.5, 0, 0) -uniform 0 float4 NAN 0 0 0 +% NaN, with a well defined mantissa (pi / 4) +uniform 0 uint4 0x7fc90fdb 0 0 0 todo(sm<4) draw quad if(sm<4) probe (0, 0) f32(NAN, NAN, 0, 0) -if(sm>=4) probe (0, 0) f32(129, 0.75, 0, 0) +if(sm>=4) probe (0, 0) f32(129, 0.785398185, 0, 0) % Subnormals. uniform 0 uint4 0x0007ffff 0 0 0