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 6bdd56e commit 1d63f7bCopy full SHA for 1d63f7b
test/Feature/HLSLLib/dot4add.test
@@ -7,14 +7,16 @@ RWStructuredBuffer<uint32_t> Result : register(u2);
7
[numthreads(1,1,1)]
8
void main() {
9
// dot4add({1, 1, 1, 1}, {1, 2, -128, -86}, 0) = -211 = 0xFF2D
10
- Result[0] = dot4add_i8packed(X[0], Y[0], 0u);
+ uint32_t R0 = dot4add_i8packed(X[0], Y[0], 0u);
11
+ Result[0] = R0;
12
// dot4add({2, 4, 8, -1}, {2, 2, 2, 1}, -211) = -184 = 0xFF48
- Result[1] = dot4add_i8packed(X[1], Y[1], Result[0]);
13
+ Result[1] = dot4add_i8packed(X[1], Y[1], R0);
14
15
// dot4add({1, 1, 1, 1}, {1, 2, 128, 170}, 0) = 301 = 0x012D
- Result[2] = dot4add_u8packed(X[0], Y[0], 0u);
16
+ uint32_t R1 = dot4add_u8packed(X[0], Y[0], 0u);
17
+ Result[2] = R1;
18
// dot4add({2, 4, 8, 255}, {2, 2, 2, 1}, 301) = 584 = 0x0248
- Result[3] = dot4add_u8packed(X[1], Y[1], Result[2]);
19
+ Result[3] = dot4add_u8packed(X[1], Y[1], R1);
20
}
21
22
//--- pipeline.yaml
0 commit comments