From: Chris Duncan Date: Tue, 14 Jan 2025 21:27:27 +0000 (-0800) Subject: Remove last usage of v5-7 scalars. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=01ce22250373a0f541262dc73c7e4cd3233b8b7f;p=nano-pow.git Remove last usage of v5-7 scalars. --- diff --git a/src/shaders/compute.wgsl b/src/shaders/compute.wgsl index 33002a6..bf58d5d 100644 --- a/src/shaders/compute.wgsl +++ b/src/shaders/compute.wgsl @@ -78,9 +78,9 @@ fn main(@builtin(global_invocation_id) id: vec3) { - var v5: u32 = 0x3C6EF372u; - var v6: u32 = 0x5F1D36F1u; - var v7: u32 = 0xA54FF53Au; + + + var v20: u32 = 0xFE94F82Bu; var v21: u32 = 0x3C6EF372u; @@ -309,25 +309,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+0]] - v_45.y = v5; + v_45 = v_45 + vec2(m8, m9) + select(vec2(0u), vec2(0u, 1u), v_45.x + m8 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_45; @@ -357,12 +357,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -371,7 +371,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_45; @@ -409,13 +409,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -423,8 +423,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; v_3031 = v_3031 ^ v_67; @@ -453,13 +453,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -467,8 +467,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; xor = v_3031 ^ v_67; @@ -697,12 +697,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -711,7 +711,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; v_2627 = v_2627 ^ v_45; @@ -741,12 +741,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -755,7 +755,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; xor = v_2627 ^ v_45; @@ -793,13 +793,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -807,8 +807,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_67; @@ -837,13 +837,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -851,8 +851,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_67; @@ -1087,12 +1087,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -1101,7 +1101,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_45; @@ -1131,12 +1131,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -1145,7 +1145,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_45; @@ -1183,13 +1183,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -1197,8 +1197,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; v_3031 = v_3031 ^ v_67; @@ -1227,13 +1227,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -1241,8 +1241,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; xor = v_3031 ^ v_67; @@ -1482,12 +1482,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -1496,7 +1496,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; v_2627 = v_2627 ^ v_45; @@ -1526,12 +1526,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -1540,7 +1540,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; xor = v_2627 ^ v_45; @@ -1578,13 +1578,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -1592,8 +1592,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_67; @@ -1622,27 +1622,27 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // a = a + m[sigma[r][2*i+1]] - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + vec2(m6, m7) + select(vec2(0u), vec2(0u, 1u), v_67.x + m6 < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_67; @@ -1877,12 +1877,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -1891,7 +1891,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_45; @@ -1921,25 +1921,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+1]] - v_45.y = v5; + v_45 = v_45 + vec2(m4, m5) + select(vec2(0u), vec2(0u, 1u), v_45.x + m4 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_45; @@ -1977,13 +1977,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -1991,8 +1991,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; v_3031 = v_3031 ^ v_67; @@ -2021,13 +2021,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -2035,8 +2035,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; xor = v_3031 ^ v_67; @@ -2269,12 +2269,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -2283,7 +2283,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; v_2627 = v_2627 ^ v_45; @@ -2313,25 +2313,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+1]] - v_45.y = v5; + v_45 = v_45 + vec2(m2, m3) + select(vec2(0u), vec2(0u, 1u), v_45.x + m2 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; xor = v_2627 ^ v_45; @@ -2369,13 +2369,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -2383,8 +2383,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_67; @@ -2413,26 +2413,26 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // a = a + m[sigma[r][2*i+1]] - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + vec2(m8, m9) + select(vec2(0u), vec2(0u, 1u), v_67.x + m8 < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_67; @@ -2671,12 +2671,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -2685,7 +2685,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_45; @@ -2715,12 +2715,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -2729,7 +2729,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_45; @@ -2767,13 +2767,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -2781,8 +2781,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; v_3031 = v_3031 ^ v_67; @@ -2811,13 +2811,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -2825,8 +2825,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; xor = v_3031 ^ v_67; @@ -3058,25 +3058,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+0]] - v_45.y = v5; + v_45 = v_45 + vec2(m8, m9) + select(vec2(0u), vec2(0u, 1u), v_45.x + m8 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; v_2627 = v_2627 ^ v_45; @@ -3106,25 +3106,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+1]] - v_45.y = v5; + v_45 = v_45 + vec2(m0, m1) + select(vec2(0u), vec2(0u, 1u), v_45.x + m0 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; xor = v_2627 ^ v_45; @@ -3162,13 +3162,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -3176,8 +3176,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_67; @@ -3206,13 +3206,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -3220,8 +3220,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_67; @@ -3455,25 +3455,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+0]] - v_45.y = v5; + v_45 = v_45 + vec2(m4, m5) + select(vec2(0u), vec2(0u, 1u), v_45.x + m4 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_45; @@ -3503,25 +3503,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+1]] - v_45.y = v5; + v_45 = v_45 + vec2(m8, m9) + select(vec2(0u), vec2(0u, 1u), v_45.x + m8 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_45; @@ -3559,13 +3559,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -3573,8 +3573,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; v_3031 = v_3031 ^ v_67; @@ -3603,13 +3603,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -3617,8 +3617,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; xor = v_3031 ^ v_67; @@ -3849,12 +3849,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -3863,7 +3863,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; v_2627 = v_2627 ^ v_45; @@ -3893,12 +3893,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -3907,7 +3907,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; xor = v_2627 ^ v_45; @@ -3945,26 +3945,26 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // a = a + m[sigma[r][2*i+0]] - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + vec2(m6, m7) + select(vec2(0u), vec2(0u, 1u), v_67.x + m6 < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_67; @@ -3993,13 +3993,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -4007,8 +4007,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_67; @@ -4241,25 +4241,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+0]] - v_45.y = v5; + v_45 = v_45 + vec2(m0, m1) + select(vec2(0u), vec2(0u, 1u), v_45.x + m0 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_45; @@ -4289,12 +4289,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -4303,7 +4303,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_45; @@ -4341,13 +4341,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -4355,8 +4355,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; v_3031 = v_3031 ^ v_67; @@ -4385,26 +4385,26 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // a = a + m[sigma[r][2*i+1]] - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + vec2(m6, m7) + select(vec2(0u), vec2(0u, 1u), v_67.x + m6 < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; xor = v_3031 ^ v_67; @@ -4636,12 +4636,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -4650,7 +4650,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; v_2627 = v_2627 ^ v_45; @@ -4680,12 +4680,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -4694,7 +4694,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; xor = v_2627 ^ v_45; @@ -4732,26 +4732,26 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // a = a + m[sigma[r][2*i+0]] - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + vec2(m2, m3) + select(vec2(0u), vec2(0u, 1u), v_67.x + m2 < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_67; @@ -4780,13 +4780,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -4794,8 +4794,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_67; @@ -5030,12 +5030,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -5044,7 +5044,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_45; @@ -5074,12 +5074,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -5088,7 +5088,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_45; @@ -5126,26 +5126,26 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // a = a + m[sigma[r][2*i+0]] - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + vec2(m8, m9) + select(vec2(0u), vec2(0u, 1u), v_67.x + m8 < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; v_3031 = v_3031 ^ v_67; @@ -5174,13 +5174,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -5188,8 +5188,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; xor = v_3031 ^ v_67; @@ -5424,12 +5424,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -5438,7 +5438,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; v_2627 = v_2627 ^ v_45; @@ -5468,25 +5468,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+1]] - v_45.y = v5; + v_45 = v_45 + vec2(m4, m5) + select(vec2(0u), vec2(0u, 1u), v_45.x + m4 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; xor = v_2627 ^ v_45; @@ -5524,13 +5524,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -5538,8 +5538,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_67; @@ -5568,13 +5568,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -5582,8 +5582,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_67; @@ -5814,12 +5814,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -5828,7 +5828,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_45; @@ -5858,25 +5858,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+1]] - v_45.y = v5; + v_45 = v_45 + vec2(m2, m3) + select(vec2(0u), vec2(0u, 1u), v_45.x + m2 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_45; @@ -5914,26 +5914,26 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // a = a + m[sigma[r][2*i+0]] - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + vec2(m6, m7) + select(vec2(0u), vec2(0u, 1u), v_67.x + m6 < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; v_3031 = v_3031 ^ v_67; @@ -5962,13 +5962,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -5976,8 +5976,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; xor = v_3031 ^ v_67; @@ -6212,12 +6212,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -6226,7 +6226,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; v_2627 = v_2627 ^ v_45; @@ -6256,12 +6256,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -6270,7 +6270,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; xor = v_2627 ^ v_45; @@ -6308,26 +6308,26 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // a = a + m[sigma[r][2*i+0]] - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + vec2(m4, m5) + select(vec2(0u), vec2(0u, 1u), v_67.x + m4 < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_67; @@ -6356,13 +6356,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -6370,8 +6370,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_67; @@ -6602,12 +6602,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -6616,7 +6616,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_45; @@ -6646,25 +6646,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+1]] - v_45.y = v5; + v_45 = v_45 + vec2(m6, m7) + select(vec2(0u), vec2(0u, 1u), v_45.x + m6 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_45; @@ -6702,26 +6702,26 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // a = a + m[sigma[r][2*i+0]] - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + vec2(m0, m1) + select(vec2(0u), vec2(0u, 1u), v_67.x + m0 < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; v_3031 = v_3031 ^ v_67; @@ -6750,13 +6750,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -6764,8 +6764,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; xor = v_3031 ^ v_67; @@ -6996,25 +6996,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+0]] - v_45.y = v5; + v_45 = v_45 + vec2(m2, m3) + select(vec2(0u), vec2(0u, 1u), v_45.x + m2 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; v_2627 = v_2627 ^ v_45; @@ -7044,25 +7044,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+1]] - v_45.y = v5; + v_45 = v_45 + vec2(m8, m9) + select(vec2(0u), vec2(0u, 1u), v_45.x + m8 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; xor = v_2627 ^ v_45; @@ -7100,13 +7100,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -7114,8 +7114,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_67; @@ -7144,13 +7144,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -7158,8 +7158,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_67; @@ -7396,12 +7396,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -7410,7 +7410,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_45; @@ -7440,12 +7440,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -7454,7 +7454,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_45; @@ -7492,26 +7492,26 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // a = a + m[sigma[r][2*i+0]] - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + vec2(m2, m3) + select(vec2(0u), vec2(0u, 1u), v_67.x + m2 < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; v_3031 = v_3031 ^ v_67; @@ -7540,13 +7540,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -7554,8 +7554,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; xor = v_3031 ^ v_67; @@ -7784,25 +7784,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+0]] - v_45.y = v5; + v_45 = v_45 + vec2(m6, m7) + select(vec2(0u), vec2(0u, 1u), v_45.x + m6 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; v_2627 = v_2627 ^ v_45; @@ -7832,12 +7832,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -7846,7 +7846,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; xor = v_2627 ^ v_45; @@ -7884,13 +7884,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -7898,8 +7898,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_67; @@ -7928,26 +7928,26 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // a = a + m[sigma[r][2*i+1]] - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + vec2(m0, m1) + select(vec2(0u), vec2(0u, 1u), v_67.x + m0 < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_67; @@ -8190,25 +8190,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + // a = a + m[sigma[r][2*i+0]] - v_45.y = v5; + v_45 = v_45 + vec2(m8, m9) + select(vec2(0u), vec2(0u, 1u), v_45.x + m8 < v_45.x); - v5 = v_45.y; + // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_45; @@ -8238,12 +8238,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -8252,7 +8252,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_45; @@ -8290,13 +8290,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -8304,8 +8304,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; v_3031 = v_3031 ^ v_67; @@ -8334,13 +8334,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -8348,8 +8348,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; xor = v_3031 ^ v_67; @@ -8578,12 +8578,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -8592,7 +8592,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; v_2627 = v_2627 ^ v_45; @@ -8622,12 +8622,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -8636,7 +8636,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; xor = v_2627 ^ v_45; @@ -8674,13 +8674,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -8688,8 +8688,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_67; @@ -8718,13 +8718,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -8732,8 +8732,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_67; @@ -8968,12 +8968,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -8982,7 +8982,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_45; @@ -9012,12 +9012,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1213 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1213.x < v_45.x); - v5 = v_45.y; + @@ -9026,7 +9026,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_45; @@ -9064,13 +9064,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -9078,8 +9078,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; v_3031 = v_3031 ^ v_67; @@ -9108,13 +9108,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_1415.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -9122,8 +9122,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_3031.x = v30; v_3031.y = v31; xor = v_3031 ^ v_67; @@ -9362,12 +9362,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -9376,7 +9376,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 32) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; v_2627 = v_2627 ^ v_45; @@ -9406,12 +9406,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.y = v5; + v_45 = v_45 + v_1415 + select(vec2(0u), vec2(0u, 1u), v_45.x + v_1415.x < v_45.x); - v5 = v_45.y; + @@ -9420,7 +9420,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // d = rotr64(d ^ a, 16) - v_45.y = v5; + v_2627.x = v26; v_2627.y = v27; xor = v_2627 ^ v_45; @@ -9458,13 +9458,13 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + @@ -9472,8 +9472,8 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; v_2829 = v_2829 ^ v_67; @@ -9502,26 +9502,26 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + v_89 + select(vec2(0u), vec2(0u, 1u), v_67.x + v_89.x < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // a = a + m[sigma[r][2*i+1]] - v_67.x = v6; - v_67.y = v7; + + v_67 = v_67 + vec2(m6, m7) + select(vec2(0u), vec2(0u, 1u), v_67.x + m6 < v_67.x); - v6 = v_67.x; - v7 = v_67.y; + + // d = rotr64(d ^ a, 16) - v_67.x = v6; - v_67.y = v7; + + v_2829.x = v28; v_2829.y = v29; xor = v_2829 ^ v_67;