Commit 5bac82c5 by Jim Wilson Committed by Jim Wilson

Fix bug reported by Toshi Morita.

	* sh.md (ashlsi_c-1): Delete 3rd argument to gen_ashlsi_c.
	(ashlsi): Use match_dup 1 instead of match_operand 2.

From-SVN: r18674
parent 9623b8e1
Wed Mar 18 12:43:20 1998 Jim Wilson <wilson@cygnus.com>
* sh.md (ashlsi_c-1): Delete 3rd argument to gen_ashlsi_c.
(ashlsi): Use match_dup 1 instead of match_operand 2.
Wed Mar 18 13:46:07 1998 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> Wed Mar 18 13:46:07 1998 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* fold-const.c (operand_equal_for_comparison_p): See if equal * fold-const.c (operand_equal_for_comparison_p): See if equal
......
...@@ -1256,7 +1256,7 @@ ...@@ -1256,7 +1256,7 @@
[(const_int 0)] [(const_int 0)]
" "
{ {
emit_insn (gen_ashlsi_c (operands[0], operands[1], operands[1])); emit_insn (gen_ashlsi_c (operands[0], operands[1]));
emit_insn (gen_subc1 (operands[0], operands[0], operands[0])); emit_insn (gen_subc1 (operands[0], operands[0], operands[0]));
DONE; DONE;
}") }")
...@@ -1264,7 +1264,7 @@ ...@@ -1264,7 +1264,7 @@
(define_insn "ashlsi_c" (define_insn "ashlsi_c"
[(set (match_operand:SI 0 "arith_reg_operand" "=r") [(set (match_operand:SI 0 "arith_reg_operand" "=r")
(ashift:SI (match_operand:SI 1 "arith_reg_operand" "0") (const_int 1))) (ashift:SI (match_operand:SI 1 "arith_reg_operand" "0") (const_int 1)))
(set (reg:SI 18) (lt:SI (match_operand:SI 2 "arith_reg_operand" "0") (set (reg:SI 18) (lt:SI (match_dup 1)
(const_int 0)))] (const_int 0)))]
"" ""
"shll %0" "shll %0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment