Blame SOURCES/gcc48-rh1469697-19.patch

22033d
2017-10-31  Segher Boessenkool  <segher@kernel.crsahing.org>
22033d
22033d
       PR target/82674
22033d
       * config/rs6000/rs6000.md (allocate_stack): Force update interval
22033d
       into a register if it does not fit into an immediate offset field.
22033d
22033d
22033d
diff -Nrup a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
22033d
--- a/gcc/config/rs6000/rs6000.md	2017-11-06 09:12:21.128237467 -0700
22033d
+++ b/gcc/config/rs6000/rs6000.md	2017-11-06 09:13:40.521601373 -0700
22033d
@@ -11886,6 +11886,9 @@
22033d
 	{
22033d
 	  rtx loop_lab, end_loop;
22033d
 	  bool rotated = CONST_INT_P (rounded_size);
22033d
+	  rtx update = GEN_INT (-probe_interval);
22033d
+	  if (probe_interval > 32768)
22033d
+	    update = force_reg (Pmode, update);
22033d
 
22033d
 	  emit_stack_clash_protection_probe_loop_start (&loop_lab, &end_loop,
22033d
 							last_addr, rotated);
22033d
@@ -11893,13 +11896,11 @@
22033d
 	  if (Pmode == SImode)
22033d
 	    emit_insn (gen_movsi_update_stack (stack_pointer_rtx,
22033d
 					       stack_pointer_rtx,
22033d
-					       GEN_INT (-probe_interval),
22033d
-					       chain));
22033d
+					       update, chain));
22033d
 	  else
22033d
 	    emit_insn (gen_movdi_di_update_stack (stack_pointer_rtx,
22033d
 					          stack_pointer_rtx,
22033d
-					          GEN_INT (-probe_interval),
22033d
-					          chain));
22033d
+					          update, chain));
22033d
 	  emit_stack_clash_protection_probe_loop_end (loop_lab, end_loop,
22033d
 						      last_addr, rotated);
22033d
 	}