public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/105586] New: [11/12/13 Regression] -fcompare-debug failure (length) with -O2 -fno-if-conversion -mtune=power4 -fno-guess-branch-probability
@ 2022-05-12 19:08 zsojka at seznam dot cz
  2022-05-13  7:55 ` [Bug debug/105586] " rguenth at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: zsojka at seznam dot cz @ 2022-05-12 19:08 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105586
           Summary: [11/12/13 Regression] -fcompare-debug failure (length)
                    with -O2 -fno-if-conversion -mtune=power4
                    -fno-guess-branch-probability
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: compare-debug-failure
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: powerpc64le-unknown-linux-gnu

Created attachment 52968
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52968&action=edit
reduced testcase

Compiler output:
$ powerpc64le-unknown-linux-gnu-gcc -O2 -fno-if-conversion -mtune=power4
-fno-guess-branch-probability -fcompare-debug testcase.c 
powerpc64le-unknown-linux-gnu-gcc: error: testcase.c: '-fcompare-debug' failure
(length)

$ diff -u *gkd
--- a-testcase.c.gkd    2022-05-12 21:05:45.139502516 +0200
+++ a-testcase.gk.c.gkd 2022-05-12 21:05:45.172835666 +0200
@@ -128,21 +128,23 @@
         (and:SI (reg:SI 10 10 [orig:136 u128_1 ] [136])
             (const_int 8 [0x8]))) "testcase.c":14:78# {andsi3_mask}
      (nil))
-(insn:TI # 0 0 (set (reg:DI 3 3 [orig:161 u64_4 ] [161])
-        (ashift:DI (reg:DI 3 3 [147])
-            (reg:SI 10 10 [160]))) "testcase.c":14:7# {ashldi3}
-     (expr_list:REG_DEAD (reg:SI 10 10 [160])
-        (nil)))
-(insn # 0 0 (set (reg:DI 30 30 [162])
+(insn:TI # 0 0 (set (reg:DI 30 30 [162])
         (plus:DI (reg/v:DI 30 30 [orig:145 b ] [145])
             (reg/v:DI 9 9 [orig:134 u64_3 ] [134]))) "testcase.c":15:17#
{*adddi3}
      (expr_list:REG_DEAD (reg/v:DI 9 9 [orig:134 u64_3 ] [134])
         (nil)))
+(insn # 0 0 (set (reg:DI 9 9 [orig:161 u64_4 ] [161])
+        (ashift:DI (reg:DI 3 3 [147])
+            (reg:SI 10 10 [160]))) "testcase.c":14:7# {ashldi3}
+     (expr_list:REG_DEAD (reg:SI 10 10 [160])
+        (expr_list:REG_DEAD (reg:DI 3 3 [147])
+            (nil))))
 (insn # 0 0 (set (reg:DI 3 3 [orig:163 u64_r ] [163])
-        (plus:DI (reg:DI 3 3 [orig:161 u64_4 ] [161])
+        (plus:DI (reg:DI 9 9 [orig:161 u64_4 ] [161])
             (reg:DI 30 30 [162]))) "testcase.c":15:7# {*adddi3}
      (expr_list:REG_DEAD (reg:DI 30 30 [162])
-        (nil)))
+        (expr_list:REG_DEAD (reg:DI 9 9 [orig:161 u64_4 ] [161])
+            (nil))))
 (insn # 0 0 (set (reg:SI 3 3 [orig:164 u64_r ] [164])
         (sign_extend:SI (reg:HI 3 3 [orig:163 u64_r ] [163])))
"testcase.c":16:7# {*extendhisi2}
      (nil))

$ powerpc64le-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-powerpc64le/bin/powerpc64le-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r13-333-20220511161459-g25addf8352e-checking-yes-rtl-df-extra-powerpc64le/bin/../libexec/gcc/powerpc64le-unknown-linux-gnu/13.0.0/lto-wrapper
Target: powerpc64le-unknown-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl
--with-sysroot=/usr/powerpc64le-unknown-linux-gnu --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=powerpc64le-unknown-linux-gnu
--with-ld=/usr/bin/powerpc64le-unknown-linux-gnu-ld
--with-as=/usr/bin/powerpc64le-unknown-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r13-333-20220511161459-g25addf8352e-checking-yes-rtl-df-extra-powerpc64le
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.0.0 20220511 (experimental) (GCC)

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-05-05 21:42 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-12 19:08 [Bug debug/105586] New: [11/12/13 Regression] -fcompare-debug failure (length) with -O2 -fno-if-conversion -mtune=power4 -fno-guess-branch-probability zsojka at seznam dot cz
2022-05-13  7:55 ` [Bug debug/105586] " rguenth at gcc dot gnu.org
2022-05-13  9:31 ` jakub at gcc dot gnu.org
2022-05-13 16:49 ` segher at gcc dot gnu.org
2022-05-16  2:47 ` linkw at gcc dot gnu.org
2022-05-19 12:41 ` jskumari at gcc dot gnu.org
2022-09-07 15:35 ` [Bug rtl-optimization/105586] " cvs-commit at gcc dot gnu.org
2022-10-19 10:08 ` [Bug rtl-optimization/105586] [11/12 " rguenth at gcc dot gnu.org
2022-10-27 16:02 ` bergner at gcc dot gnu.org
2022-10-27 17:58 ` segher at gcc dot gnu.org
2022-10-27 18:01 ` segher at gcc dot gnu.org
2022-11-08 12:56 ` jskumari at gcc dot gnu.org
2022-11-08 14:23 ` segher at gcc dot gnu.org
2022-11-09  6:36 ` jskumari at gcc dot gnu.org
2022-11-09 16:51 ` jskumari at gcc dot gnu.org
2023-05-05 21:42 ` pinskia at gcc dot gnu.org

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).