Kyrill Tkachov <kyrylo.tkac...@foss.arm.com> writes: > +static rtx > +simplify_cond_clz_ctz (rtx x, rtx_code cmp_code, rtx true_val, rtx false_val) > +{ > + if (cmp_code != EQ && cmp_code != NE) > + return NULL_RTX; > + > + /* Result on X == 0 and X !=0 respectively. */ > + rtx on_zero, on_nonzero; > + if (cmp_code == EQ) > + { > + on_zero = true_val; > + on_nonzero = false_val; > + } > + else > + { > + on_zero = false_val; > + on_nonzero = true_val; > + } > + > + rtx_code op_code = GET_CODE (on_nonzero); > + if ((op_code != CLZ && op_code != CTZ) > + || !rtx_equal_p (XEXP (on_nonzero, 0), x) > + || !CONST_INT_P (on_zero)) > + return NULL_RTX; > + > + HOST_WIDE_INT op_val; > + machine_mode mode = GET_MODE (on_nonzero); > + if (((op_code == CLZ && CLZ_DEFINED_VALUE_AT_ZERO (mode, op_val)) > + || (op_code == CTZ && CTZ_DEFINED_VALUE_AT_ZERO (mode, op_val))) > + && op_val == INTVAL (on_zero)) > + return on_nonzero; > + > + return NULL_RTX; > +}
../../gcc/simplify-rtx.c: In function 'rtx_def* simplify_cond_clz_ctz(rtx, rtx_code, rtx, rtx)': ../../gcc/simplify-rtx.c:5304:16: error: unused variable 'mode' [-Werror=unused-variable] machine_mode mode = GET_MODE (on_nonzero); ^~~~ Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."