On 7/8/25 5:08 AM, Andreas Schwab wrote:
gcc:
        PR target/120995
        * config/riscv/sync.md (zacas_atomic_cas_value_strong<mode>):
        Allow op3 to be zero.

gcc/testsuite:
        PR target/120995
        * gcc.target/riscv/amo/zabha-zacas-atomic-cas.c: New test.
Thanks.  I didn't see any notes on testing and it doesn't have the "
RISC-V" marker, so the pre-commit tester didn't pick it up. So I threw it in mine where it (as expected) passed the new test with no regressions.

I went ahead and pushed this to the trunk. It'll be a good candidate for gcc-15 backporting as well.

jeff

Reply via email to