nir/loop_analyze: Add basic unit test framework
This test comes from a comment in the loop analysis code. The ine_zero test checks that zero iteration loops involving ine are correctly identified. v2: Add ine_zero test. Suggested by Tim. v3: Rename test cases. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19732>
This commit is contained in:
@@ -398,6 +398,7 @@ if with_tests
|
||||
'tests/comparison_pre_tests.cpp',
|
||||
'tests/control_flow_tests.cpp',
|
||||
'tests/core_tests.cpp',
|
||||
'tests/loop_analyze_tests.cpp',
|
||||
'tests/lower_returns_tests.cpp',
|
||||
'tests/negative_equal_tests.cpp',
|
||||
'tests/opt_if_tests.cpp',
|
||||
|
Reference in New Issue
Block a user