nir/tests: Add more loop analysis tests for induction vars updated by shifts
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 2 Feb 2023 20:44:52 +0000 (12:44 -0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Apr 2023 23:50:27 +0000 (23:50 +0000)
commita210fcd9c706a91e9bd6a45e85e64c8db4040bbd
treef805ef2d5a59232ace2d54f770840afe22eaf390
parent45518d2ebaf63a0aa30ae2f920334b398d78a8b7
nir/tests: Add more loop analysis tests for induction vars updated by shifts

These reverse the order of the comparison (e.g., -2 >= i vs i >= -2). I
split this into a separate commit because the previous commit was so
large.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3445>
src/compiler/nir/tests/loop_analyze_tests.cpp