public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/106746] New: [13 Regression] '-fcompare-debug' failure (length) with -O2 -fsched2-use-superblocks
@ 2022-08-26  5:41 zsojka at seznam dot cz
  2022-08-26  6:20 ` [Bug debug/106746] " rguenth at gcc dot gnu.org
                   ` (28 more replies)
  0 siblings, 29 replies; 30+ messages in thread
From: zsojka at seznam dot cz @ 2022-08-26  5:41 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106746
           Summary: [13 Regression] '-fcompare-debug' failure (length)
                    with -O2 -fsched2-use-superblocks
           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
                CC: aoliva at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu

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

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O2 -fsched2-use-superblocks -fcompare-debug
testcase.c -save-temps -Wno-psabi
x86_64-pc-linux-gnu-gcc: error: testcase.c: '-fcompare-debug' failure (length)

$ diff -u *gkd
--- a-testcase.c.gkd    2022-08-26 07:38:56.088210543 +0200
+++ a-testcase.gk.c.gkd 2022-08-26 07:38:56.131543638 +0200
@@ -435,11 +435,6 @@
         ]) "testcase.c":24:5# {*andsi_1_zext}
      (expr_list:REG_UNUSED (reg:CC 17 flags)
         (nil)))
-(insn # 0 0 2 (set (reg:V16QI 23 xmm3 [272])
-        (plus:V16QI (reg:V16QI 23 xmm3 [280])
-            (mem/c:V16QI (plus:DI (reg/f:DI 7 sp)
-                    (const_int -120 [0xffffffffffffff88])) [  S16 A128])))
"testcase.c":25:14# {*addv16qi3}
-     (nil))
 (insn:TI # 0 0 2 (set (reg:V4SI 22 xmm2 [208])
         (vec_concat:V4SI (reg:V2SI 22 xmm2 [224])
             (reg:V2SI 26 xmm6 [221]))) "testcase.c":24:5# {*vec_concatv4si}
@@ -493,12 +488,6 @@
                 (const_int 8 [0x8])) [
VIEW_CONVERT_EXPR<int[16]>(D.xxxx)[_45]+0 S4 A32])) "testcase.c":24:5#
{*movsi_internal}
      (expr_list:REG_DEAD (reg:DI 1 dx [234])
         (nil)))
-(insn # 0 0 2 (set (reg:SI 2 cx [256])
-        (mem:SI (plus:DI (reg/f:DI 7 sp)
-                (const_int 128 [0x80])) [  S4 A64])) "testcase.c":24:5#
{*movsi_internal}
-     (expr_list:REG_EQUIV (mem:SI (plus:DI (reg/f:DI 19 frame)
-                (const_int -200 [0xffffffffffffff38])) [  S4 A64])
-        (nil)))
 (insn:TI # 0 0 2 (set (reg:V2SI 26 xmm6 [241])
         (vec_concat:V2SI (reg:SI 26 xmm6 [241])
             (reg:SI 22 xmm2 [orig:242 VIEW_CONVERT_EXPR<int[16]>(D.xxxx)[_51]
] [242]))) "testcase.c":24:5# {*vec_concatv2si}
@@ -511,6 +500,33 @@
...


Renaming the variable "foo0_v512u32_0" to "b" makes the failure disappear.

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r13-2206-20220825175413-g60d84e82639-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/13.0.0/lto-wrapper
Target: x86_64-pc-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 --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r13-2206-20220825175413-g60d84e82639-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.0.0 20220825 (experimental) (GCC)

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

end of thread, other threads:[~2023-02-02 12:57 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-26  5:41 [Bug debug/106746] New: [13 Regression] '-fcompare-debug' failure (length) with -O2 -fsched2-use-superblocks zsojka at seznam dot cz
2022-08-26  6:20 ` [Bug debug/106746] " rguenth at gcc dot gnu.org
2022-08-26 12:42 ` [Bug debug/106746] [13 Regression] '-fcompare-debug' failure (length) with -O2 -fsched2-use-superblocks since r13-2041-g6624ad73064de241 marxin at gcc dot gnu.org
2022-08-27  2:33 ` hjl.tools at gmail dot com
2022-08-30 15:48 ` hjl.tools at gmail dot com
2022-09-01  0:06 ` hjl.tools at gmail dot com
2022-09-01 14:52 ` hjl.tools at gmail dot com
2022-09-01 17:01 ` hjl.tools at gmail dot com
2022-09-01 23:55 ` hjl.tools at gmail dot com
2022-09-02 17:05 ` roger at nextmovesoftware dot com
2022-09-02 17:09 ` hjl.tools at gmail dot com
2022-10-19  7:06 ` rguenth at gcc dot gnu.org
2022-12-01 11:48 ` jakub at gcc dot gnu.org
2022-12-01 12:02 ` jakub at gcc dot gnu.org
2022-12-01 14:35 ` segher at gcc dot gnu.org
2022-12-01 14:42 ` jakub at gcc dot gnu.org
2022-12-01 15:07 ` segher at gcc dot gnu.org
2023-01-14  5:39 ` aoliva at gcc dot gnu.org
2023-01-14  8:29 ` aoliva at gcc dot gnu.org
2023-01-14  8:59 ` jakub at gcc dot gnu.org
2023-01-19  4:12 ` cvs-commit at gcc dot gnu.org
2023-01-19  4:18 ` aoliva at gcc dot gnu.org
2023-01-19 10:56 ` segher at gcc dot gnu.org
2023-01-20 18:42 ` jsm28 at gcc dot gnu.org
2023-01-30 17:49 ` jakub at gcc dot gnu.org
2023-01-30 17:58 ` segher at gcc dot gnu.org
2023-01-30 18:01 ` jakub at gcc dot gnu.org
2023-01-30 18:01 ` jakub at gcc dot gnu.org
2023-02-02 12:56 ` cvs-commit at gcc dot gnu.org
2023-02-02 12:57 ` jakub 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).