• Home
Name
Date
Size
#Lines
LOC

..--

.gitignoreD12-May-2024169 43

OpExtInst_in_dst_only_autogen.cppD12-May-20247.7 KiB243213

OpExtInst_in_dst_only_dst.spvasmD12-May-20241.2 KiB3432

OpExtInst_in_dst_only_src.spvasmD12-May-20241.3 KiB3432

OpExtInst_in_src_only_autogen.cppD12-May-20247.7 KiB243213

OpExtInst_in_src_only_dst.spvasmD12-May-20241.1 KiB3129

OpExtInst_in_src_only_src.spvasmD12-May-20241.4 KiB3735

OpTypeForwardPointer_basic_autogen.cppD12-May-20244.6 KiB137112

OpTypeForwardPointer_basic_dst.spvasmD12-May-2024697 1615

OpTypeForwardPointer_basic_src.spvasmD12-May-2024595 1413

OpTypeForwardPointer_intertwined_autogen.cppD12-May-20244.6 KiB139113

OpTypeForwardPointer_intertwined_dst.spvasmD12-May-2024553 1413

OpTypeForwardPointer_intertwined_src.spvasmD12-May-2024635 1615

OpTypeForwardPointer_mismatching_class_autogen.cppD12-May-20243.5 KiB11791

OpTypeForwardPointer_mismatching_class_dst.spvasmD12-May-2024345 109

OpTypeForwardPointer_mismatching_class_src.spvasmD12-May-2024452 1211

OpTypeForwardPointer_mismatching_type_autogen.cppD12-May-20243.5 KiB11287

OpTypeForwardPointer_mismatching_type_dst.spvasmD12-May-2024322 98

OpTypeForwardPointer_mismatching_type_src.spvasmD12-May-2024439 1110

OpTypeForwardPointer_nested_autogen.cppD12-May-20244 KiB128102

OpTypeForwardPointer_nested_dst.spvasmD12-May-2024439 1211

OpTypeForwardPointer_nested_src.spvasmD12-May-2024583 1413

OpTypeForwardPointer_onesided_debug_autogen.cppD12-May-20244.2 KiB12599

OpTypeForwardPointer_onesided_debug_dst.spvasmD12-May-2024499 1211

OpTypeForwardPointer_onesided_debug_src.spvasmD12-May-2024632 1514

README.mdD12-May-2024989 1813

basic_autogen.cppD12-May-202410.5 KiB408382

basic_dst.spvasmD12-May-20241.2 KiB5049

basic_src.spvasmD12-May-20241.3 KiB5150

constant_array_size_autogen.cppD12-May-20247.9 KiB307281

constant_array_size_dst.spvasmD12-May-20241.2 KiB4847

constant_array_size_src.spvasmD12-May-20241.3 KiB4948

diff_test_files_autogen.cmakeD12-May-20242 KiB4846

different_decorations_fragment_autogen.cppD12-May-202445.5 KiB1,6271,598

different_decorations_fragment_dst.spvasmD12-May-20245.5 KiB200199

different_decorations_fragment_src.spvasmD12-May-20245.5 KiB199197

different_decorations_vertex_autogen.cppD12-May-202435.5 KiB1,3231,294

different_decorations_vertex_dst.spvasmD12-May-20244.1 KiB160159

different_decorations_vertex_src.spvasmD12-May-20244.1 KiB156154

different_function_parameter_count_autogen.cppD12-May-202410 KiB340313

different_function_parameter_count_dst.spvasmD12-May-20241.7 KiB5351

different_function_parameter_count_src.spvasmD12-May-20241.6 KiB4746

extra_if_block_autogen.cppD12-May-202428.3 KiB868839

extra_if_block_dst.spvasmD12-May-20245 KiB137135

extra_if_block_src.spvasmD12-May-20245.1 KiB138136

generate_tests.pyD12-May-20249.7 KiB305213

index_signedness_autogen.cppD12-May-202424.1 KiB734706

index_signedness_dst.spvasmD12-May-20244 KiB111109

index_signedness_src.spvasmD12-May-20244.1 KiB112110

int_vs_uint_constants_autogen.cppD12-May-202410.3 KiB397369

int_vs_uint_constants_dst.spvasmD12-May-20241.2 KiB4746

int_vs_uint_constants_src.spvasmD12-May-20241.4 KiB5049

large_functions_large_diffs_autogen.cppD12-May-202447.5 KiB1,5351,507

large_functions_large_diffs_dst.spvasmD12-May-20247.5 KiB214212

large_functions_large_diffs_src.spvasmD12-May-20248.1 KiB231229

large_functions_small_diffs_autogen.cppD12-May-202443 KiB1,3651,337

large_functions_small_diffs_dst.spvasmD12-May-20248 KiB230228

large_functions_small_diffs_src.spvasmD12-May-20247.9 KiB227225

multiple_different_entry_points_autogen.cppD12-May-202410.4 KiB331289

multiple_different_entry_points_dst.spvasmD12-May-20241.7 KiB5045

multiple_different_entry_points_src.spvasmD12-May-20241.9 KiB5247

multiple_same_entry_points_autogen.cppD12-May-202410.3 KiB376338

multiple_same_entry_points_dst.spvasmD12-May-20241.4 KiB4642

multiple_same_entry_points_src.spvasmD12-May-20241.5 KiB4743

reordered_if_blocks_autogen.cppD12-May-202419 KiB569542

reordered_if_blocks_dst.spvasmD12-May-20243.3 KiB8886

reordered_if_blocks_src.spvasmD12-May-20243.3 KiB8887

reordered_switch_blocks_autogen.cppD12-May-202417.3 KiB583558

reordered_switch_blocks_dst.spvasmD12-May-20243 KiB9291

reordered_switch_blocks_src.spvasmD12-May-20243.1 KiB9392

small_functions_small_diffs_autogen.cppD12-May-202420.8 KiB748719

small_functions_small_diffs_dst.spvasmD12-May-20243 KiB9391

small_functions_small_diffs_src.spvasmD12-May-20243.1 KiB9492

spec_constant_array_size_autogen.cppD12-May-20248 KiB311285

spec_constant_array_size_dst.spvasmD12-May-20241.2 KiB4847

spec_constant_array_size_src.spvasmD12-May-20241.3 KiB4948

spec_constant_composite_autogen.cppD12-May-20245.9 KiB187162

spec_constant_composite_dst.spvasmD12-May-2024863 2322

spec_constant_composite_src.spvasmD12-May-2024903 2423

spec_constant_op_autogen.cppD12-May-20245.2 KiB163138

spec_constant_op_dst.spvasmD12-May-2024655 1817

spec_constant_op_src.spvasmD12-May-2024701 1818

spec_constant_specid_autogen.cppD12-May-20244.1 KiB142117

spec_constant_specid_dst.spvasmD12-May-2024467 1413

spec_constant_specid_src.spvasmD12-May-2024549 1615

unrelated_shaders_autogen.cppD12-May-20246.9 KiB231203

unrelated_shaders_dst.spvasmD12-May-20241.1 KiB3230

unrelated_shaders_src.spvasmD12-May-2024863 2624

README.md

1# Diff tests
2
3This directory contains files used to ensure correctness of the `spirv-diff` implementation.  The
4`generate_tests.py` script takes `name_src.spvasm` and `name_dst.spvasm` (for each `name`) and
5produces unit test files in the form of `name_autogen.cpp`.
6
7The unit test files test the diff between the src and dst inputs, as well as between debug-stripped
8versions of those.  Additionally, based on the `{variant}_TESTS` lists defined in
9`generate_tests.py`, extra unit tests are added to exercise different options of spirv-diff.
10
11New tests are added simply by placing a new `name_src.spvasm` and `name_dst.spvasm` pair in this
12directory and running `generate_tests.py`.  Note that this script needs the path to the spirv-diff
13executable that is built.
14
15The `generate_tests.py` script additionally expects `name_src.spvasm` to include a heading where the
16purpose of the test is explained.  This heading is parsed as a block of lines starting with `;;` at
17the top of the file.
18