From f365cec4feacde82408978e1efa37a2c85c16ddc Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 1 May 2001 00:54:52 +0000 Subject: [PATCH] fix the ffs builtin. --- gnu/dist/toolchain/gcc/config/vax/vax.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gnu/dist/toolchain/gcc/config/vax/vax.md b/gnu/dist/toolchain/gcc/config/vax/vax.md index 94adb627c7ad..5276a2486043 100644 --- a/gnu/dist/toolchain/gcc/config/vax/vax.md +++ b/gnu/dist/toolchain/gcc/config/vax/vax.md @@ -1276,21 +1276,21 @@ rtx label = gen_label_rtx (); rtx temp = gen_reg_rtx (SImode); - emit_move_insn (temp, const0_rtx); emit_insn (gen_ffssi_1 (temp, operands[1])); emit_jump_insn (gen_beq (label)); emit_insn (gen_incsi (temp, temp)); emit_label (label); - if (temp != operands[0]) + if ( !rtx_equal_p (temp, operands[0])) emit_move_insn (operands[0], temp); DONE; }"); (define_insn "ffssi_1" - [(set (match_operand:SI 0 "vax_lvalue_operand" "=r") - (unspec:SI [(match_operand:SI 1 "general_operand" "g")] 0))] + [(set (match_operand:SI 0 "vax_lvalue_operand" "=&r") + (unspec:SI [(match_operand:SI 1 "general_operand" "g")] 0)) + (set (cc0) (match_dup 0))] "" - "ffs %0,$32,%1,%0") + "clrl %0\;ffs %0,$32,%1,%0") ;;- Multiply instructions.