Commit 76b7dad3 by Richard Earnshaw Committed by Richard Earnshaw

arm.md (sibcall, [...]): Add use of link register.

* arm.md (sibcall, sibcall_value, sibcall_insn, sibcall_value_insn):
Add use of link register.

From-SVN: r37848
parent db45aaa6
2000-11-29 Richard Earnshaw <rearnsha@arm.com>
* arm.md (sibcall, sibcall_value, sibcall_insn, sibcall_value_insn):
Add use of link register.
2000-11-29 Joseph S. Myers <jsm28@cam.ac.uk> 2000-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
* extend.texi: Update documentation for default format attributes. * extend.texi: Update documentation for default format attributes.
......
...@@ -6465,7 +6465,8 @@ ...@@ -6465,7 +6465,8 @@
(define_expand "sibcall" (define_expand "sibcall"
[(parallel [(call (match_operand 0 "memory_operand" "") [(parallel [(call (match_operand 0 "memory_operand" "")
(match_operand 1 "general_operand" "")) (match_operand 1 "general_operand" ""))
(use (match_operand 2 "" ""))])] (use (match_operand 2 "" ""))
(use (reg:SI LR_REGNUM))])]
"TARGET_ARM" "TARGET_ARM"
" "
{ {
...@@ -6478,7 +6479,8 @@ ...@@ -6478,7 +6479,8 @@
[(parallel [(set (match_operand 0 "register_operand" "") [(parallel [(set (match_operand 0 "register_operand" "")
(call (match_operand 1 "memory_operand" "") (call (match_operand 1 "memory_operand" "")
(match_operand 2 "general_operand" ""))) (match_operand 2 "general_operand" "")))
(use (match_operand 3 "" ""))])] (use (match_operand 3 "" ""))
(use (reg:SI LR_REGNUM))])]
"TARGET_ARM" "TARGET_ARM"
" "
{ {
...@@ -6490,7 +6492,8 @@ ...@@ -6490,7 +6492,8 @@
(define_insn "*sibcall_insn" (define_insn "*sibcall_insn"
[(call (mem:SI (match_operand:SI 0 "" "X")) [(call (mem:SI (match_operand:SI 0 "" "X"))
(match_operand 1 "" "")) (match_operand 1 "" ""))
(use (match_operand 2 "" ""))] (use (match_operand 2 "" ""))
(use (reg:SI LR_REGNUM))]
"TARGET_ARM && GET_CODE (operands[0]) == SYMBOL_REF" "TARGET_ARM && GET_CODE (operands[0]) == SYMBOL_REF"
"* "*
return NEED_PLT_RELOC ? \"b%?\\t%a0(PLT)\" : \"b%?\\t%a0\"; return NEED_PLT_RELOC ? \"b%?\\t%a0(PLT)\" : \"b%?\\t%a0\";
...@@ -6502,7 +6505,8 @@ ...@@ -6502,7 +6505,8 @@
[(set (match_operand 0 "s_register_operand" "=r,f") [(set (match_operand 0 "s_register_operand" "=r,f")
(call (mem:SI (match_operand:SI 1 "" "X,X")) (call (mem:SI (match_operand:SI 1 "" "X,X"))
(match_operand 2 "" ""))) (match_operand 2 "" "")))
(use (match_operand 3 "" ""))] (use (match_operand 3 "" ""))
(use (reg:SI LR_REGNUM))]
"TARGET_ARM && GET_CODE (operands[1]) == SYMBOL_REF" "TARGET_ARM && GET_CODE (operands[1]) == SYMBOL_REF"
"* "*
return NEED_PLT_RELOC ? \"b%?\\t%a1(PLT)\" : \"b%?\\t%a1\"; return NEED_PLT_RELOC ? \"b%?\\t%a1(PLT)\" : \"b%?\\t%a1\";
......
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