* one more patch for PR87305
@ 2019-01-11 19:29 Vladimir Makarov
0 siblings, 0 replies; only message in thread
From: Vladimir Makarov @ 2019-01-11 19:29 UTC (permalink / raw)
To: gcc-patches; +Cc: Richard Sandiford
[-- Attachment #1: Type: text/plain, Size: 209 bytes --]
 This patch adds code for little endian case of
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87305
 The patch was successfully bootstrapped and tested on x86-64.
 Committed as rev. 267854.
[-- Attachment #2: pr87305-2.patch --]
[-- Type: text/x-patch, Size: 1428 bytes --]
Index: ChangeLog
===================================================================
--- ChangeLog (revision 267853)
+++ ChangeLog (working copy)
@@ -1,3 +1,10 @@
+2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
+
+ PR rtl-optimization/87305
+ * lra-assigns.c
+ (setup_live_pseudos_and_spill_after_risky_transforms): Add code
+ for little endian pseudos used as paradoxical subreg.
+
2019-01-11 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/88693
Index: lra-assigns.c
===================================================================
--- lra-assigns.c (revision 267849)
+++ lra-assigns.c (working copy)
@@ -1174,10 +1174,14 @@ setup_live_pseudos_and_spill_after_risky
- hard_regno_nregs (hard_regno, PSEUDO_REGNO_MODE (i)));
enum reg_class rclass = lra_get_allocno_class (i);
- if (WORDS_BIG_ENDIAN
- && (hard_regno - nregs_diff < 0
- || !TEST_HARD_REG_BIT (reg_class_contents[rclass],
- hard_regno - nregs_diff)))
+ if ((WORDS_BIG_ENDIAN
+ && (hard_regno - nregs_diff < 0
+ || !TEST_HARD_REG_BIT (reg_class_contents[rclass],
+ hard_regno - nregs_diff)))
+ || (!WORDS_BIG_ENDIAN
+ && (hard_regno + nregs_diff >= FIRST_PSEUDO_REGISTER
+ || !TEST_HARD_REG_BIT (reg_class_contents[rclass],
+ hard_regno + nregs_diff))))
{
/* Hard registers of paradoxical sub-registers are out of
range of pseudo register class. Spill the pseudo. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-11 19:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-11 19:29 one more patch for PR87305 Vladimir Makarov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).