On 7/15/2026 6:54 PM, Jim Lin wrote:
The *czero.nez...opt2 pattern was guarded by TARGET_ZICOND, while its
dual opt1 pattern and the base czero patterns use TARGET_ZICOND_LIKE.
Its output body already emits a vt.maskc instruction under
TARGET_XVENTANACONDOPS, but that arm was dead under the narrower guard,
so XVentanaCondOps-only targets missed this optimization.

Use TARGET_ZICOND_LIKE to match opt1.

gcc/ChangeLog:

        * config/riscv/zicond.md (*czero.nez.<GPR:mode><X:mode>.opt2):
        Guard with TARGET_ZICOND_LIKE instead of TARGET_ZICOND.
I'm going to NAK this.  We're not going to take the VT1 design into any markets, so those extensions need to just be deprecated and support dropped.  Zicond is the way forward (they have the exact same semantics, just different spelling & encodings).

jeff

Reply via email to