dawn-cmake/test/tint/builtins/gen/var/sign
dan sinclair 7092786f31 Fixup return of HLSL sign to match WGSL.
The HLSL `sign` method returns an `int` result (scalar or vector). The
WGSL `sign` expects the result to be the same type as the argument. This
CL injects a cast to the correct type after the `sign` call in the HLSL
generated source.

Bug: tint:1795
Change-Id: I51fed24b5b8b752b6b27fdfb5dd47eb803902793
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116692
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2023-01-11 13:18:29 +00:00
..
3a39ac.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3a39ac.wgsl.expected.dxc.hlsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3a39ac.wgsl.expected.fxc.hlsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3a39ac.wgsl.expected.glsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3a39ac.wgsl.expected.msl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3a39ac.wgsl.expected.spvasm tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3a39ac.wgsl.expected.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3bdab6.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3bdab6.wgsl.expected.dxc.hlsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3bdab6.wgsl.expected.fxc.hlsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3bdab6.wgsl.expected.glsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3bdab6.wgsl.expected.msl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3bdab6.wgsl.expected.spvasm tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3bdab6.wgsl.expected.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
5d283a.wgsl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
5d283a.wgsl.expected.dxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
5d283a.wgsl.expected.fxc.hlsl tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
5d283a.wgsl.expected.glsl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
5d283a.wgsl.expected.msl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
5d283a.wgsl.expected.spvasm Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
5d283a.wgsl.expected.wgsl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
7c85ea.wgsl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
7c85ea.wgsl.expected.dxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
7c85ea.wgsl.expected.fxc.hlsl tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
7c85ea.wgsl.expected.glsl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
7c85ea.wgsl.expected.msl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
7c85ea.wgsl.expected.spvasm Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
7c85ea.wgsl.expected.wgsl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
58d779.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
58d779.wgsl.expected.dxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
58d779.wgsl.expected.fxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
58d779.wgsl.expected.glsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
58d779.wgsl.expected.msl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
58d779.wgsl.expected.spvasm tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
58d779.wgsl.expected.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
0799fd.wgsl test/tint: Fix e2e test generation for abstract 2022-11-04 16:54:02 +00:00
0799fd.wgsl.expected.dxc.hlsl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
0799fd.wgsl.expected.fxc.hlsl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
0799fd.wgsl.expected.glsl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
0799fd.wgsl.expected.msl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
0799fd.wgsl.expected.spvasm Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
0799fd.wgsl.expected.wgsl test/tint: Fix e2e test generation for abstract 2022-11-04 16:54:02 +00:00
943b2e.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
943b2e.wgsl.expected.dxc.hlsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
943b2e.wgsl.expected.fxc.hlsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
943b2e.wgsl.expected.glsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
943b2e.wgsl.expected.msl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
943b2e.wgsl.expected.spvasm tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
943b2e.wgsl.expected.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3233fa.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3233fa.wgsl.expected.dxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
3233fa.wgsl.expected.fxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
3233fa.wgsl.expected.glsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3233fa.wgsl.expected.msl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3233fa.wgsl.expected.spvasm tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
3233fa.wgsl.expected.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
9603b1.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
9603b1.wgsl.expected.dxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
9603b1.wgsl.expected.fxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
9603b1.wgsl.expected.glsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
9603b1.wgsl.expected.msl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
9603b1.wgsl.expected.spvasm tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
9603b1.wgsl.expected.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
55339e.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
55339e.wgsl.expected.dxc.hlsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
55339e.wgsl.expected.fxc.hlsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
55339e.wgsl.expected.glsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
55339e.wgsl.expected.msl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
55339e.wgsl.expected.spvasm tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
55339e.wgsl.expected.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
159665.wgsl test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
159665.wgsl.expected.dxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
159665.wgsl.expected.fxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
159665.wgsl.expected.glsl test/tint/builtins: Generate abstract numeric tests 2022-07-26 14:27:25 +00:00
159665.wgsl.expected.msl test/tint/builtins: Generate abstract numeric tests 2022-07-26 14:27:25 +00:00
159665.wgsl.expected.spvasm test/tint/builtins: Generate abstract numeric tests 2022-07-26 14:27:25 +00:00
159665.wgsl.expected.wgsl test/tint/builtins: Generate abstract numeric tests 2022-07-26 14:27:25 +00:00
160933.wgsl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
160933.wgsl.expected.dxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
160933.wgsl.expected.fxc.hlsl tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
160933.wgsl.expected.glsl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
160933.wgsl.expected.msl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
160933.wgsl.expected.spvasm Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
160933.wgsl.expected.wgsl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
926015.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
926015.wgsl.expected.dxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
926015.wgsl.expected.fxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
926015.wgsl.expected.glsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
926015.wgsl.expected.msl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
926015.wgsl.expected.spvasm tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
926015.wgsl.expected.wgsl tint: Implement signed-int overloads of sign() 2022-12-07 19:52:49 +00:00
ab6301.wgsl test/tint: Fix e2e test generation for abstract 2022-11-04 16:54:02 +00:00
ab6301.wgsl.expected.dxc.hlsl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
ab6301.wgsl.expected.fxc.hlsl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
ab6301.wgsl.expected.glsl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
ab6301.wgsl.expected.msl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
ab6301.wgsl.expected.spvasm Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
ab6301.wgsl.expected.wgsl test/tint: Fix e2e test generation for abstract 2022-11-04 16:54:02 +00:00
b8f634.wgsl test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
b8f634.wgsl.expected.dxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
b8f634.wgsl.expected.fxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
b8f634.wgsl.expected.glsl test/tint/builtins: Generate abstract numeric tests 2022-07-26 14:27:25 +00:00
b8f634.wgsl.expected.msl test/tint/builtins: Generate abstract numeric tests 2022-07-26 14:27:25 +00:00
b8f634.wgsl.expected.spvasm test/tint/builtins: Generate abstract numeric tests 2022-07-26 14:27:25 +00:00
b8f634.wgsl.expected.wgsl test/tint/builtins: Generate abstract numeric tests 2022-07-26 14:27:25 +00:00
c8289c.wgsl test/tint: Fix e2e test generation for abstract 2022-11-04 16:54:02 +00:00
c8289c.wgsl.expected.dxc.hlsl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
c8289c.wgsl.expected.fxc.hlsl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
c8289c.wgsl.expected.glsl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
c8289c.wgsl.expected.msl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
c8289c.wgsl.expected.spvasm Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
c8289c.wgsl.expected.wgsl test/tint: Fix e2e test generation for abstract 2022-11-04 16:54:02 +00:00
ccdb3c.wgsl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
ccdb3c.wgsl.expected.dxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
ccdb3c.wgsl.expected.fxc.hlsl tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
ccdb3c.wgsl.expected.glsl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
ccdb3c.wgsl.expected.msl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
ccdb3c.wgsl.expected.spvasm Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
ccdb3c.wgsl.expected.wgsl Fix generation of f16 values. 2022-11-10 00:32:12 +00:00
d065d8.wgsl test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
d065d8.wgsl.expected.dxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
d065d8.wgsl.expected.fxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
d065d8.wgsl.expected.glsl test/tint/builtins: Generate abstract numeric tests 2022-07-26 14:27:25 +00:00
d065d8.wgsl.expected.msl test/tint/builtins: Generate abstract numeric tests 2022-07-26 14:27:25 +00:00
d065d8.wgsl.expected.spvasm test/tint/builtins: Generate abstract numeric tests 2022-07-26 14:27:25 +00:00
d065d8.wgsl.expected.wgsl test/tint/builtins: Generate abstract numeric tests 2022-07-26 14:27:25 +00:00
dd790e.wgsl test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dd790e.wgsl.expected.dxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
dd790e.wgsl.expected.fxc.hlsl Fixup return of HLSL sign to match WGSL. 2023-01-11 13:18:29 +00:00
dd790e.wgsl.expected.glsl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
dd790e.wgsl.expected.msl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
dd790e.wgsl.expected.spvasm tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
dd790e.wgsl.expected.wgsl test/tint/builtins: Generate abstract numeric tests 2022-07-26 14:27:25 +00:00
f5da6a.wgsl test/tint: Fix e2e test generation for abstract 2022-11-04 16:54:02 +00:00
f5da6a.wgsl.expected.dxc.hlsl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
f5da6a.wgsl.expected.fxc.hlsl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
f5da6a.wgsl.expected.glsl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
f5da6a.wgsl.expected.msl Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
f5da6a.wgsl.expected.spvasm Add const-eval for `sign`. 2022-10-28 14:56:50 +00:00
f5da6a.wgsl.expected.wgsl test/tint: Fix e2e test generation for abstract 2022-11-04 16:54:02 +00:00