alyssa@blossom ~/mesa (nir/reassociate2)> python3 bin/nir-test-runner.py -Bbuild INFO: autodetecting backend as ninja INFO: calculating backend command to run: /usr/bin/ninja -C /home/alyssa/mesa/build ninja: Entering directory `/home/alyssa/mesa/build' [29/29] Linking target src/mesa/state_tracker/tests/st_format_test diff --git a/src/compiler/nir/tests/opt_reassociate_tests.cpp b/src/compiler/nir/tests/opt_reassociate_tests.cpp index 1b28646e57d..275da4279ac 100644 --- a/src/compiler/nir/tests/opt_reassociate_tests.cpp +++ b/src/compiler/nir/tests/opt_reassociate_tests.cpp @@ -53,4 +53,21 @@ TEST_F(nir_opt_reassociate_test, constants) block b1: } )")); -} + shader: MESA_SHADER_FRAGMENT + name: nir_opt_reassociate_test + subgroup_size: 0 + decl_function main () (entrypoint) + + impl main { + block b0: // preds: + 32 %0 = @div (base=0) + 32 %1 = @div (base=1) + 32 %2 = @div (base=2) + 32 %3 = load_const (0x00000003) + 32 %4 = iadd %0, %3 (0x3) + 32 %5 = load_const (0x00000005) + 32 %6 = iadd %5 (0x5), %3 (0x3) + 32 %7 = iadd %0, %6 + // succs: b1 + block b1: + } Apply the changes listed above? [Y/n]^C