From 2925ef6f380bc4ad2d5ed0708631ea827ca297d1 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 14 Jan 2025 13:26:34 -0800 Subject: [PATCH] Remove last usage of v4 scalar. --- src/shaders/compute.wgsl | 350 +++++++++++++++++++-------------------- 1 file changed, 175 insertions(+), 175 deletions(-) diff --git a/src/shaders/compute.wgsl b/src/shaders/compute.wgsl index 62165f6..33002a6 100644 --- a/src/shaders/compute.wgsl +++ b/src/shaders/compute.wgsl @@ -77,7 +77,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { - var v4: u32 = 0xFE94F82Bu; + var v5: u32 = 0x3C6EF372u; var v6: u32 = 0x5F1D36F1u; var v7: u32 = 0xA54FF53Au; @@ -308,25 +308,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+0]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m8, m9) + select(vec2(0u), vec2(0u, 1u), v_45.x + m8 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -356,12 +356,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -370,7 +370,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -696,12 +696,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -710,7 +710,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -740,12 +740,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -754,7 +754,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -1086,12 +1086,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -1100,7 +1100,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -1130,12 +1130,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -1144,7 +1144,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -1481,12 +1481,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -1495,7 +1495,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -1525,12 +1525,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -1539,7 +1539,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -1876,12 +1876,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -1890,7 +1890,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -1920,25 +1920,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+1]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m4, m5) + select(vec2(0u), vec2(0u, 1u), v_45.x + m4 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -2268,12 +2268,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -2282,7 +2282,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -2312,25 +2312,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+1]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m2, m3) + select(vec2(0u), vec2(0u, 1u), v_45.x + m2 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -2670,12 +2670,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -2684,7 +2684,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -2714,12 +2714,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -2728,7 +2728,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -3057,25 +3057,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+0]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m8, m9) + select(vec2(0u), vec2(0u, 1u), v_45.x + m8 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -3105,25 +3105,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+1]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m0, m1) + select(vec2(0u), vec2(0u, 1u), v_45.x + m0 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -3454,25 +3454,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+0]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m4, m5) + select(vec2(0u), vec2(0u, 1u), v_45.x + m4 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -3502,25 +3502,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+1]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m8, m9) + select(vec2(0u), vec2(0u, 1u), v_45.x + m8 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -3848,12 +3848,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -3862,7 +3862,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -3892,12 +3892,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -3906,7 +3906,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -4240,25 +4240,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+0]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m0, m1) + select(vec2(0u), vec2(0u, 1u), v_45.x + m0 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -4288,12 +4288,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -4302,7 +4302,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -4635,12 +4635,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -4649,7 +4649,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -4679,12 +4679,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -4693,7 +4693,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -5029,12 +5029,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -5043,7 +5043,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -5073,12 +5073,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -5087,7 +5087,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -5423,12 +5423,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -5437,7 +5437,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -5467,25 +5467,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+1]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m4, m5) + select(vec2(0u), vec2(0u, 1u), v_45.x + m4 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -5813,12 +5813,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -5827,7 +5827,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -5857,25 +5857,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+1]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m2, m3) + select(vec2(0u), vec2(0u, 1u), v_45.x + m2 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -6211,12 +6211,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -6225,7 +6225,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -6255,12 +6255,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -6269,7 +6269,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -6601,12 +6601,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -6615,7 +6615,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -6645,25 +6645,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+1]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m6, m7) + select(vec2(0u), vec2(0u, 1u), v_45.x + m6 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -6995,25 +6995,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+0]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m2, m3) + select(vec2(0u), vec2(0u, 1u), v_45.x + m2 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -7043,25 +7043,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+1]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m8, m9) + select(vec2(0u), vec2(0u, 1u), v_45.x + m8 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -7395,12 +7395,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -7409,7 +7409,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -7439,12 +7439,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -7453,7 +7453,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -7783,25 +7783,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+0]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m6, m7) + select(vec2(0u), vec2(0u, 1u), v_45.x + m6 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -7831,12 +7831,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -7845,7 +7845,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -8189,25 +8189,25 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; // a = a + m[sigma[r][2*i+0]] - v_45.x = v4; + v_45.y = v5; v_45 = v_45 + vec2(m8, m9) + select(vec2(0u), vec2(0u, 1u), v_45.x + m8 < v_45.x); - v4 = v_45.x; + v5 = v_45.y; // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -8237,12 +8237,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -8251,7 +8251,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -8577,12 +8577,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -8591,7 +8591,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -8621,12 +8621,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -8635,7 +8635,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -8967,12 +8967,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -8981,7 +8981,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -9011,12 +9011,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -9025,7 +9025,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2829.x = v28; v_2829.y = v29; @@ -9361,12 +9361,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { */ // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -9375,7 +9375,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 32) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; @@ -9405,12 +9405,12 @@ fn main(@builtin(global_invocation_id) id: vec3) { // a = a + b - v_45.x = v4; + 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); - v4 = v_45.x; + v5 = v_45.y; @@ -9419,7 +9419,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { // skip since adding 0u does nothing // d = rotr64(d ^ a, 16) - v_45.x = v4; + v_45.y = v5; v_2627.x = v26; v_2627.y = v27; -- 2.34.1