public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/107103] New: '-fcompare-debug' failure w/ -mcpu=power4 -O1 -fschedule-insns -funroll-all-loops -fno-sched-pressure --param max-sched-ready-insns=1
Date: Fri, 30 Sep 2022 16:39:00 +0000	[thread overview]
Message-ID: <bug-107103-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107103

            Bug ID: 107103
           Summary: '-fcompare-debug' failure w/ -mcpu=power4 -O1
                    -fschedule-insns -funroll-all-loops
                    -fno-sched-pressure --param max-sched-ready-insns=1
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: compare-debug-failure
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: powerpc-*-linux-gnu

gcc 13.0.0 20220925 snapshot (g:77bbf69d2981dafc2ef3e59bfbefb645d88bab9d) fails
-fcompare-debug check when compiling the following testcase, reduced from
gcc/testsuite/g++.target/powerpc/pr65240-1.C, w/ -mcpu=power4 -O1
-fschedule-insns -funroll-all-loops -fno-sched-pressure --param
max-sched-ready-insns=1:

int *p;
int n;

int
bar (int);

void
foo (int x)
{
  for (;;)
    if (x)
      p[n] = bar (x);
}

% powerpc-e300c3-linux-gnu-gcc-13.0.0 -mcpu=power4 -O1 -fcompare-debug
-fschedule-insns -funroll-all-loops -fno-sched-pressure --param
max-sched-ready-insns=1 -c ke3djyoc.c
powerpc-e300c3-linux-gnu-gcc-13.0.0: error: ke3djyoc.c: '-fcompare-debug'
failure

--- ke3djyoc.c.gkd      2022-09-30 23:33:02.202245982 +0700
+++ ke3djyoc.gk.c.gkd   2022-09-30 23:33:02.218245953 +0700
@@ -102,16 +102,16 @@
 (code_label # 0 0 19 (nil) [8 uses])
 (note # 0 0 [bb 3] NOTE_INSN_BASIC_BLOCK)
 (note # 0 0 NOTE_INSN_DELETED)
+(insn # 0 0 (set (reg/f:SI 30 30 [orig:131 p ] [131])
+        (mem/f/c:SI (lo_sum:SI (reg/f:SI 27 27 [126])
+                (symbol_ref:SI ("p") [flags 0x86]  <var_decl # p>)) [ p+0 S4
A32])) "ke3djyoc.c":12:8# {*movsi_internal1}
+     (nil))
 (insn # 0 0 (set (reg:SI 31 31 [orig:130 n ] [130])
         (mem/c:SI (lo_sum:SI (reg/f:SI 28 28 [128])
                 (symbol_ref:SI ("n") [flags 0x86]  <var_decl # n>)) [ n+0 S4
A32])) "ke3djyoc.c":12:8# {*movsi_internal1}
      (expr_list:REG_EQUIV (mem/c:SI (lo_sum:SI (reg/f:SI 28 28 [128])
                 (symbol_ref:SI ("n") [flags 0x86]  <var_decl # n>)) [ n+0 S4
A32])
         (nil)))
-(insn # 0 0 (set (reg/f:SI 30 30 [orig:131 p ] [131])
-        (mem/f/c:SI (lo_sum:SI (reg/f:SI 27 27 [126])
-                (symbol_ref:SI ("p") [flags 0x86]  <var_decl # p>)) [ p+0 S4
A32])) "ke3djyoc.c":12:8# {*movsi_internal1}
-     (nil))
 (insn # 0 0 (set (reg:SI 3 3)
         (reg/v:SI 29 29 [orig:123 x ] [123])) "ke3djyoc.c":12:14#
{*movsi_internal1}
      (nil))

                 reply	other threads:[~2022-09-30 16:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-107103-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).