]> git.ipfire.org Git - thirdparty/gcc.git/commit
gimple: Switch bit-test lowering testcases for the more powerful alg
authorFilip Kastl <fkastl@suse.cz>
Thu, 1 May 2025 13:32:36 +0000 (15:32 +0200)
committerFilip Kastl <fkastl@suse.cz>
Fri, 2 May 2025 09:51:22 +0000 (11:51 +0200)
commit8444c4cc7648f4396e2a3726677f909438e92c80
treef1d1d35e790a140127cd3451b9396ad09fd74f0a
parentc14560907a9586ad405f26ab937881eb08f39497
gimple: Switch bit-test lowering testcases for the more powerful alg

This patch adds 2 testcases.  One tests that GCC is able to create
bit-test clusters of size 64.  The other one contains two switches which
GCC wouldn't completely cover with bit-test clusters before the changes
from this patch set.

gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/switch-5.c: New test.
* gcc.dg/tree-ssa/switch-6.c: New test.

Signed-off-by: Filip Kastl <fkastl@suse.cz>
gcc/testsuite/gcc.dg/tree-ssa/switch-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/switch-6.c [new file with mode: 0644]