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)