On 10/27/25 1:46 AM, Monk Chiang wrote:
gcc/testsuite/ChangeLog:
* gcc.target/riscv/pr113095.c: Adjust testcase.
The usual way to handle this would be to add another test.
Instead create pr113095-2.c which would look like:
/* { dg-do compile } */
/* { dg-options "-O2 -march=rv32gc -mabi=ilp32d -mtune=sifive-7-series" {
target { rv32 } } } */
/* { dg-options "-O2 -march=rv64gc -mabi=lp64d -mtune=sifive-7-series" {target
{ rv64 } } } */
/* { dg-skip-if "" { *-*-* } {"-O0" "-Og"} } */
#include "pr113095.c"
/* { dg-final { scan-assembler "movcc" } } */
Granted, the execution aspect of this test is pretty narrow, there's not
much to be gained to throw it away, particularly since I think your
primary goal is to verify we're generating an SFB style branch.
jeff