RISC-V: Compress 3-operand beq/bne against x0.