This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH RFA: Use clz for MIPS ffs


On Tue, Jul 12, 2005 at 06:39:18PM -0700, Ian Lance Taylor wrote:
> +  emit_insn (gen_clz<mode>2 (r3, r2));
> +  emit_move_insn (r4, GEN_INT (GET_MODE_BITSIZE (<MODE>mode)));
> +  emit_insn (gen_sub<mode>3 (operands[0], r4, r3));

The mips port needs to define CLZ_DEFINED_VALUE_AT_ZERO before
you won't get into trouble with this.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]