shader: return the first source when both 64-bit min/max inputs are NaN

This commit is contained in:
nmzik
2026-10-22 00:28:43 +02:00
parent 2d00e13bf3
commit ce54aa8d14
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -28735,7 +28735,7 @@ TestCase VectorFractF64CapturedAndEdges() {
TestCase VectorMinMaxF64CapturedAndEdges() {
using O = ShaderOpcode;
// MODE.IEEE=0: select the numeric operand, or the second NaN unchanged.
// MODE.IEEE=0: select the numeric operand, or the first NaN unchanged.
constexpr uint64_t positive_zero = 0, negative_zero = 0x8000000000000000ull;
constexpr uint64_t one = 0x3ff0000000000000ull, minus_two = 0xc000000000000000ull;
constexpr uint64_t qnan = 0x7ff8123456789abcull, snan = 0xfff0000000000042ull;
@@ -28749,7 +28749,7 @@ TestCase VectorMinMaxF64CapturedAndEdges() {
{positive_zero, positive_zero, positive_zero, positive_zero},
{qnan, one, one, one}, {one, qnan, one, one},
{snan, minus_two, minus_two, minus_two}, {minus_two, snan, minus_two, minus_two},
{qnan, snan, snan, snan}, {snan, qnan, qnan, qnan},
{qnan, snan, qnan, qnan}, {snan, qnan, snan, snan},
{infinity, one, one, infinity},
{infinity | negative_zero, one, infinity | negative_zero, one},
{0x3fe0000000000000ull, one, 0x3fe0000000000000ull, one},