Source-Changes-HG archive

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

[src/trunk]: src/gnu/dist/gcc4/gcc/config/vax Bugfix builtin ffs, fixes PR po...



details:   https://anonhg.NetBSD.org/src/rev/43fd69dede6e
branches:  trunk
changeset: 780077:43fd69dede6e
user:      ragge <ragge%NetBSD.org@localhost>
date:      Wed Jul 11 13:34:45 2012 +0000

description:
Bugfix builtin ffs, fixes PR port-vax/46677, fix from Paul Koning.

diffstat:

 gnu/dist/gcc4/gcc/config/vax/builtins.md |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 620a19a0c0f4 -r 43fd69dede6e gnu/dist/gcc4/gcc/config/vax/builtins.md
--- a/gnu/dist/gcc4/gcc/config/vax/builtins.md  Wed Jul 11 00:19:28 2012 +0000
+++ b/gnu/dist/gcc4/gcc/config/vax/builtins.md  Wed Jul 11 13:34:45 2012 +0000
@@ -25,7 +25,7 @@
   "
 {
   rtx label = gen_label_rtx ();
-  emit_insn (gen_ffssi2_internal (operands[0], operands[1], operands[0]));
+  emit_insn (gen_ffssi2_internal (operands[0], operands[1], operands[1]));
   emit_jump_insn (gen_bne (label));
   emit_insn (gen_negsi2 (operands[0], const1_rtx));
   emit_label (label);
@@ -36,6 +36,6 @@
 (define_insn "ffssi2_internal"
   [(set (match_operand:SI 0 "nonimmediate_operand" "=g")
         (ffs:SI (match_operand:SI 1 "general_operand" "nrQ")))
-   (set (cc0) (match_operand:SI 2 "nonimmediate_operand" "0"))]
+   (set (cc0) (ffs:SI (match_operand:SI 2 "general_operand" "1")))]
   ""
   "ffs $0,$32,%1,%0")



Home | Main Index | Thread Index | Old Index