Commit afdbd485 by Eric Botcazou Committed by Eric Botcazou

re PR target/10567 (-fno-delayed-branch not honored in back-end)

	PR target/10567
	* config/sparc/sparc.md (update_return): Honor flag_delayed_branch.

From-SVN: r84293
parent 7c35745c
2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
PR target/10567
* config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
2004-07-08 Diego Novillo <dnovillo@redhat.com> 2004-07-08 Diego Novillo <dnovillo@redhat.com>
* tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
......
...@@ -7758,9 +7758,17 @@ ...@@ -7758,9 +7758,17 @@
[(unspec:SI [(match_operand:SI 0 "register_operand" "r") [(unspec:SI [(match_operand:SI 0 "register_operand" "r")
(match_operand:SI 1 "register_operand" "r")] UNSPEC_UPDATE_RETURN)] (match_operand:SI 1 "register_operand" "r")] UNSPEC_UPDATE_RETURN)]
"! TARGET_ARCH64" "! TARGET_ARCH64"
"cmp\t%1, 0\;be,a\t.+8\;add\t%0, 4, %0" {
[(set_attr "type" "multi") if (flag_delayed_branch)
(set_attr "length" "3")]) return "cmp\t%1, 0\n\tbe,a\t.+8\n\t add\t%0, 4, %0";
else
return "cmp\t%1, 0\n\tbne\t.+12\n\t nop\n\tadd\t%0, 4, %0";
}
[(set (attr "type") (const_string "multi"))
(set (attr "length")
(if_then_else (eq_attr "delayed_branch" "true")
(const_int 3)
(const_int 4)))])
(define_insn "nop" (define_insn "nop"
[(const_int 0)] [(const_int 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