nir: add load/store vectorizer tests

v7: run nir_opt_algebraic
v9: rework the callback function
v9: update alignment on all loads/stores, even if they're not vectorized
v10: add tests for 64-bit offsets
v10: add tests for signed offsets

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com> (v9)
This commit is contained in:
Rhys Perry
2019-09-02 16:09:24 +01:00
parent ce9205c03b
commit 0a759c3be6
2 changed files with 1763 additions and 0 deletions
+12
View File
@@ -336,4 +336,16 @@ if with_tests
),
suite : ['compiler', 'nir'],
)
test(
'load_store_vectorizer',
executable(
'load_store_vectorizer',
files('tests/load_store_vectorizer_tests.cpp'),
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
include_directories : [inc_common],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
suite : ['compiler', 'nir'],
)
endif
File diff suppressed because it is too large Load Diff