Commit b9aaf52e by Eric Botcazou Committed by Eric Botcazou

sparc.c (sparc_emit_probe_stack_range): Fix small inaccuracy in the probing code.

	* config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
	inaccuracy in the probing code.

	* config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
	(ctrapdi4): Likewise.

From-SVN: r197004
parent 66de4d7c
2013-03-23 Eric Botcazou <ebotcazou@adacore.com> 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
* config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
inaccuracy in the probing code.
* config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
(ctrapdi4): Likewise.
2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
* calls.c (expand_call): Add missing guard to code handling return * calls.c (expand_call): Add missing guard to code handling return
of non-BLKmode structures in MSB. of non-BLKmode structures in MSB.
* function.c (expand_function_end): Likewise. * function.c (expand_function_end): Likewise.
......
...@@ -4777,7 +4777,7 @@ sparc_emit_probe_stack_range (HOST_WIDE_INT first, HOST_WIDE_INT size) ...@@ -4777,7 +4777,7 @@ sparc_emit_probe_stack_range (HOST_WIDE_INT first, HOST_WIDE_INT size)
probes at FIRST + N * PROBE_INTERVAL for values of N from 1 probes at FIRST + N * PROBE_INTERVAL for values of N from 1
until it is equal to ROUNDED_SIZE. */ until it is equal to ROUNDED_SIZE. */
if (TARGET_64BIT) if (TARGET_ARCH64)
emit_insn (gen_probe_stack_rangedi (g1, g1, g4)); emit_insn (gen_probe_stack_rangedi (g1, g1, g4));
else else
emit_insn (gen_probe_stack_rangesi (g1, g1, g4)); emit_insn (gen_probe_stack_rangesi (g1, g1, g4));
......
...@@ -7217,7 +7217,7 @@ ...@@ -7217,7 +7217,7 @@
[(trap_if (match_operator 0 "noov_compare_operator" [(trap_if (match_operator 0 "noov_compare_operator"
[(match_operand:SI 1 "compare_operand" "") [(match_operand:SI 1 "compare_operand" "")
(match_operand:SI 2 "arith_operand" "")]) (match_operand:SI 2 "arith_operand" "")])
(match_operand 3 ""))] (match_operand 3 "arith_operand"))]
"" ""
"operands[1] = gen_compare_reg (operands[0]); "operands[1] = gen_compare_reg (operands[0]);
if (GET_MODE (operands[1]) != CCmode && GET_MODE (operands[1]) != CCXmode) if (GET_MODE (operands[1]) != CCmode && GET_MODE (operands[1]) != CCXmode)
...@@ -7228,7 +7228,7 @@ ...@@ -7228,7 +7228,7 @@
[(trap_if (match_operator 0 "noov_compare_operator" [(trap_if (match_operator 0 "noov_compare_operator"
[(match_operand:DI 1 "compare_operand" "") [(match_operand:DI 1 "compare_operand" "")
(match_operand:DI 2 "arith_operand" "")]) (match_operand:DI 2 "arith_operand" "")])
(match_operand 3 ""))] (match_operand 3 "arith_operand"))]
"TARGET_ARCH64" "TARGET_ARCH64"
"operands[1] = gen_compare_reg (operands[0]); "operands[1] = gen_compare_reg (operands[0]);
if (GET_MODE (operands[1]) != CCmode && GET_MODE (operands[1]) != CCXmode) if (GET_MODE (operands[1]) != CCmode && GET_MODE (operands[1]) != CCXmode)
......
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