From: Florian Krohm Date: Tue, 12 Aug 2025 21:27:14 +0000 (+0000) Subject: iropt-test tweak X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1597e1ef5ca0ca5748cd037a57831a1d7c35070;p=thirdparty%2Fvalgrind.git iropt-test tweak No need to run random tests for binary IROps with 1-bit wide operands. --- diff --git a/none/tests/iropt-test/binary.c b/none/tests/iropt-test/binary.c index 0d40a4da3..896d57630 100644 --- a/none/tests/iropt-test/binary.c +++ b/none/tests/iropt-test/binary.c @@ -72,6 +72,9 @@ run_random_tests(const irop_t *op, test_data_t *data) opnd_t *opnd_l = &data->opnds[0]; opnd_t *opnd_r = &data->opnds[1]; + /* 1-bit wide operands are tested exhaustively. Skip random tests. */ + if (opnd_l->type == Ity_I1 && opnd_r->type == Ity_I1) return; + for (unsigned i = 0; i < num_random_tests; ++i) { opnd_l->value = get_random_value(opnd_l->type); opnd_r->value = get_random_value(opnd_r->type);