Module Name: src
Committed By: riz
Date: Thu Jul 12 18:29:57 UTC 2012
Modified Files:
src/gnu/dist/gcc4/gcc/config/vax [netbsd-6]: builtins.md
Log Message:
Pull up following revision(s) (requested by ragge in ticket #411):
gnu/dist/gcc4/gcc/config/vax/builtins.md: revision 1.3
Bugfix builtin ffs, fixes PR port-vax/46677, fix from Paul Koning.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.40.1 src/gnu/dist/gcc4/gcc/config/vax/builtins.md
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/gnu/dist/gcc4/gcc/config/vax/builtins.md
diff -u src/gnu/dist/gcc4/gcc/config/vax/builtins.md:1.2 src/gnu/dist/gcc4/gcc/config/vax/builtins.md:1.2.40.1
--- src/gnu/dist/gcc4/gcc/config/vax/builtins.md:1.2 Mon Apr 2 16:45:39 2007
+++ src/gnu/dist/gcc4/gcc/config/vax/builtins.md Thu Jul 12 18:29:57 2012
@@ -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")