You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
3 years ago
|
2017-10-31 Segher Boessenkool <segher@kernel.crsahing.org>
|
||
|
|
||
|
PR target/82674
|
||
|
* config/rs6000/rs6000.md (allocate_stack): Force update interval
|
||
|
into a register if it does not fit into an immediate offset field.
|
||
|
|
||
|
|
||
|
diff -Nrup a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
|
||
|
--- a/gcc/config/rs6000/rs6000.md 2017-11-06 09:12:21.128237467 -0700
|
||
|
+++ b/gcc/config/rs6000/rs6000.md 2017-11-06 09:13:40.521601373 -0700
|
||
|
@@ -11886,6 +11886,9 @@
|
||
|
{
|
||
|
rtx loop_lab, end_loop;
|
||
|
bool rotated = CONST_INT_P (rounded_size);
|
||
|
+ rtx update = GEN_INT (-probe_interval);
|
||
|
+ if (probe_interval > 32768)
|
||
|
+ update = force_reg (Pmode, update);
|
||
|
|
||
|
emit_stack_clash_protection_probe_loop_start (&loop_lab, &end_loop,
|
||
|
last_addr, rotated);
|
||
|
@@ -11893,13 +11896,11 @@
|
||
|
if (Pmode == SImode)
|
||
|
emit_insn (gen_movsi_update_stack (stack_pointer_rtx,
|
||
|
stack_pointer_rtx,
|
||
|
- GEN_INT (-probe_interval),
|
||
|
- chain));
|
||
|
+ update, chain));
|
||
|
else
|
||
|
emit_insn (gen_movdi_di_update_stack (stack_pointer_rtx,
|
||
|
stack_pointer_rtx,
|
||
|
- GEN_INT (-probe_interval),
|
||
|
- chain));
|
||
|
+ update, chain));
|
||
|
emit_stack_clash_protection_probe_loop_end (loop_lab, end_loop,
|
||
|
last_addr, rotated);
|
||
|
}
|