nir/tests: Add tests for opt_if_simplification
[mesa.git] / src / compiler / nir / meson.build
index d4203e34ac931a2a0c3129ad9d852aaf83184b3e..5d34376ceac692efb61dcfe14bc33fff0dc6602a 100644 (file)
@@ -381,4 +381,17 @@ if with_tests
     ),
     suite : ['compiler', 'nir'],
   )
+
+  test(
+    'nir_opt_if',
+    executable(
+      'nir_opt_if_tests',
+      files('tests/opt_if_tests.cpp'),
+      cpp_args : [cpp_msvc_compat_args],
+      gnu_symbol_visibility : 'hidden',
+      include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
+      dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
+    ),
+    suite : ['compiler', 'nir'],
+  )
 endif