Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/gcc/config/vax fix the ffs builtin.



details:   https://anonhg.NetBSD.org/src/rev/92fd9ffa9707
branches:  trunk
changeset: 509281:92fd9ffa9707
user:      matt <matt%NetBSD.org@localhost>
date:      Tue May 01 00:54:52 2001 +0000

description:
fix the ffs builtin.

diffstat:

 gnu/dist/toolchain/gcc/config/vax/vax.md |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r 61ca7f356990 -r 92fd9ffa9707 gnu/dist/toolchain/gcc/config/vax/vax.md
--- a/gnu/dist/toolchain/gcc/config/vax/vax.md  Tue May 01 00:25:16 2001 +0000
+++ b/gnu/dist/toolchain/gcc/config/vax/vax.md  Tue May 01 00:54:52 2001 +0000
@@ -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.
 



Home | Main Index | Thread Index | Old Index