Commit 827bdee4 by Alexandre Oliva Committed by Alexandre Oliva

sh.md (call, call_value): Use `TARGET_SH2' instead of `! TARGET_SH1'.

* config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
`! TARGET_SH1'.  Reindent.

From-SVN: r36759
parent c70eaeaf
2000-10-06 Alexandre Oliva <aoliva@redhat.com>
* config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
`! TARGET_SH1'. Reindent.
2000-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2000-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* builtins.c (is_valid_printf_arglist, expand_builtin_printf): * builtins.c (is_valid_printf_arglist, expand_builtin_printf):
......
...@@ -3331,22 +3331,24 @@ ...@@ -3331,22 +3331,24 @@
(clobber (reg:SI 17))])] (clobber (reg:SI 17))])]
"" ""
" "
if (flag_pic && ! TARGET_SH1 && ! flag_unroll_loops {
&& GET_CODE (operands[0]) == MEM if (flag_pic && TARGET_SH2 && ! flag_unroll_loops
&& GET_CODE (XEXP (operands[0], 0)) == SYMBOL_REF) && GET_CODE (operands[0]) == MEM
{ && GET_CODE (XEXP (operands[0], 0)) == SYMBOL_REF)
rtx reg = gen_reg_rtx (SImode), lab = gen_label_rtx (); {
rtx reg = gen_reg_rtx (SImode), lab = gen_label_rtx ();
if (SYMBOL_REF_FLAG (XEXP (operands[0], 0)))
emit_insn (gen_sym_label2reg (reg, XEXP (operands[0], 0), lab)); if (SYMBOL_REF_FLAG (XEXP (operands[0], 0)))
else emit_insn (gen_sym_label2reg (reg, XEXP (operands[0], 0), lab));
emit_insn (gen_symPLT_label2reg (reg, XEXP (operands[0], 0), lab)); else
operands[0] = reg; emit_insn (gen_symPLT_label2reg (reg, XEXP (operands[0], 0), lab));
emit_call_insn (gen_calli_pcrel (operands[0], operands[1], lab)); operands[0] = reg;
DONE; emit_call_insn (gen_calli_pcrel (operands[0], operands[1], lab));
} DONE;
else }
operands[0] = force_reg (SImode, XEXP (operands[0], 0));") else
operands[0] = force_reg (SImode, XEXP (operands[0], 0));
}")
(define_expand "call_value" (define_expand "call_value"
[(parallel [(set (match_operand 0 "arith_reg_operand" "") [(parallel [(set (match_operand 0 "arith_reg_operand" "")
...@@ -3356,23 +3358,25 @@ else ...@@ -3356,23 +3358,25 @@ else
(clobber (reg:SI 17))])] (clobber (reg:SI 17))])]
"" ""
" "
if (flag_pic && ! TARGET_SH1 && ! flag_unroll_loops {
&& GET_CODE (operands[1]) == MEM if (flag_pic && TARGET_SH2 && ! flag_unroll_loops
&& GET_CODE (XEXP (operands[1], 0)) == SYMBOL_REF) && GET_CODE (operands[1]) == MEM
{ && GET_CODE (XEXP (operands[1], 0)) == SYMBOL_REF)
rtx reg = gen_reg_rtx (SImode), lab = gen_label_rtx (); {
rtx reg = gen_reg_rtx (SImode), lab = gen_label_rtx ();
if (SYMBOL_REF_FLAG (XEXP (operands[1], 0)))
emit_insn (gen_sym_label2reg (reg, XEXP (operands[1], 0), lab)); if (SYMBOL_REF_FLAG (XEXP (operands[1], 0)))
else emit_insn (gen_sym_label2reg (reg, XEXP (operands[1], 0), lab));
emit_insn (gen_symPLT_label2reg (reg, XEXP (operands[1], 0), lab)); else
operands[1] = reg; emit_insn (gen_symPLT_label2reg (reg, XEXP (operands[1], 0), lab));
emit_call_insn (gen_call_valuei_pcrel (operands[0], operands[1], operands[1] = reg;
operands[2], lab)); emit_call_insn (gen_call_valuei_pcrel (operands[0], operands[1],
DONE; operands[2], lab));
} DONE;
else }
operands[1] = force_reg (SImode, XEXP (operands[1], 0));") else
operands[1] = force_reg (SImode, XEXP (operands[1], 0));
}")
(define_insn "indirect_jump" (define_insn "indirect_jump"
[(set (pc) [(set (pc)
......
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