We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f626d65 commit 8b75db9Copy full SHA for 8b75db9
test/Feature/HLSLLib/distance.fp16.denorm.test
@@ -23,10 +23,10 @@ void main() {
23
// distance({inf, NaN, -inf, inf}, {1.0, 1.0, 1.0, NaN}) = NaN
24
Result[4] = distance(X[0].xyzw, Y[0].xyzw);
25
26
- // distance({denorm}, {1.0}) = denorm
+ // distance({denorm}, {1.0}) = 1.0
27
Result[5] = distance(Y[0].z, Y[0].x);
28
29
- // distance({-denorm}, {1.0}) = denorm
+ // distance({-denorm}, {1.0}) = 1.0
30
Result[6] = distance(Y[0].y, Y[0].x);
31
}
32
@@ -45,15 +45,15 @@ Buffers:
45
- Name: Y
46
Format: Float16
47
Stride: 8
48
- Data: [ 0x003C, 0x8001, 0x0001, 0x7E00 ]
+ Data: [ 0x3C00, 0x8001, 0x0001, 0x7E00 ]
49
- Name: Result
50
51
Stride: 2
52
ZeroInitSize: 16
53
- Name: ExpectedResult
54
55
56
- Data: [ 0x7C00, 0x7E00, 0x7C00, 0x7E00, 0x7E00, 0x3B, 0x3D, 0x0 ]
+ Data: [ 0x7C00, 0x7E00, 0x7C00, 0xFE00, 0xFE00, 0x3C00, 0x3C00, 0x0 ]
57
Results:
58
- Result: CheckResult
59
Rule: BufferFloatULP
0 commit comments