diff options
Diffstat (limited to 'tests/experimental')
| -rw-r--r-- | tests/experimental/liveness/liveness.slang.expected | 66 |
1 files changed, 46 insertions, 20 deletions
diff --git a/tests/experimental/liveness/liveness.slang.expected b/tests/experimental/liveness/liveness.slang.expected index 7cb39861c..ce0298799 100644 --- a/tests/experimental/liveness/liveness.slang.expected +++ b/tests/experimental/liveness/liveness.slang.expected @@ -10,13 +10,21 @@ layout(row_major) buffer; #line 24 0 int someSlowFunc_0(int a_0) { + uint _S1 = uint(a_0); + +#line 26 int i_0; + +#line 26 uint v_0; #line 26 - uint _S1 = uint(a_0); i_0 = 0; + +#line 26 v_0 = _S1; + +#line 26 for(;;) { @@ -33,13 +41,16 @@ int someSlowFunc_0(int a_0) uint _S2 = uint(int(bool(v_0 >> 1) || bool(v_0 << 31)) * i_0); #line 27 - int i_1 = i_0 + 1; + i_0 = i_0 + 1; #line 27 - i_0 = i_1; v_0 = _S2; + +#line 27 } + + return int(v_0); } @@ -103,22 +114,28 @@ void livenessEnd_0(spirv_by_reference SomeStruct_0 _0, int _1); layout(local_size_x = 4, local_size_y = 1, local_size_z = 1) in; void main() { - int i_2; - int res_0; - SomeStruct_0 u_0; #line 48 int index_0 = int(gl_GlobalInvocationID.x); +#line 48 + int i_1; +#line 48 + int res_0; - i_2 = 0; +#line 48 + i_1 = 0; + +#line 48 res_0 = index_0; + +#line 48 for(;;) { -#line 52 - if(i_2 < index_0) + + if(i_1 < index_0) { } else @@ -146,41 +163,49 @@ void main() const int _S7[100] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; #line 58 - SomeStruct_0 u_1 = { 0, 0, _S7 }; + SomeStruct_0 u_0 = { 0, 0, _S7 }; + +#line 58 + SomeStruct_0 u_1; if(bool(v_1 & 256)) { s_3.x_0 = ((anotherBuffer_0)._data[(uint(v_1 & 3))]); t_0.x_0 = ((anotherBuffer_0)._data[(uint(v_1 & 3))]); -#line 60 - u_0 = u_1; +#line 63 + u_1 = u_0; + +#line 63 } else { -#line 68 + SomeStruct_0 x_1; #line 68 livenessStart_0(x_1, 0); #line 68 - x_1 = u_1; + x_1 = u_0; x_1.x_0 = ((anotherBuffer_0)._data[(uint(v_1 & 3))]) + 1; SomeStruct_0 _S8 = x_1; #line 70 livenessEnd_0(x_1, 0); -#line 60 - u_0 = _S8; +#line 70 + u_1 = _S8; + +#line 70 } -#line 74 + + s_3.c_0[index_0 & 7] = s_3.c_0[index_0 & 7] + 1; - int _S9 = s_3.x_0 + t_0.x_0 + u_0.x_0; + int _S9 = s_3.x_0 + t_0.x_0 + u_1.x_0; #line 76 int _S10 = doThing_0(t_0); @@ -207,11 +232,12 @@ void main() int res_1 = res_0 + (_S13 + _S14); #line 52 - int i_3 = i_2 + 1; + i_1 = i_1 + 1; #line 52 - i_2 = i_3; res_0 = res_1; + +#line 52 } #line 79 |
