]> git.ipfire.org Git - thirdparty/gcc.git/commit
Improve coverage of ext-dce tests in risc-v testsuite
authorJeff Law <jlaw@ventanamicro.com>
Thu, 6 Mar 2025 05:24:05 +0000 (22:24 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Thu, 6 Mar 2025 05:28:33 +0000 (22:28 -0700)
commit316eaca17ee11f575fc72e139e8cc3f9f5ccb067
treeb212d7d641fe7b930e49c675763e9528c16b1485
parentda8aaa7784810e23123639c06c22eb6d37ec945c
Improve coverage of ext-dce tests in risc-v testsuite

Inspired by Liao Shihua, this adjusts two tests in the RISC-V testsuite
to get more coverage.  Drop the -O1 argument and replace it with -fext-dce.
That way the test gets run across the full set of flags.  We just need to
make sure to skip -O0.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/core_list_init.c: Use -fext-dce rather than
-O1.  Skip for -O0.
* gcc.target/riscv/pr111384.c: Ditto.
gcc/testsuite/gcc.target/riscv/core_list_init.c
gcc/testsuite/gcc.target/riscv/pr111384.c