From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1CE633858D3C; Sun, 10 Sep 2023 11:15:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1CE633858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694344559; bh=PfHWJ4eH0lK03Q7tdlLdJYQf8+3XPKI8P965+6d63gs=; h=From:To:Subject:Date:From; b=v2EAkqvLAMvQMOFNvfmzn8RvAuuP6d2+DAtaGkZB3XNvXCyGD+ReFi1vw1/i0lLzY EooT9BDWF3hd0jTBEb/HLbTtX/IaEc30bKTTFVdNyZE/MrmVFP6wjimvAztUw6r0s8 /MBcNwNBjCRG4GBY3bBn5GXIWk6qlsqPIabDKfcY= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111362] New: [14 Regression] '-fcompare-debug' failure (length) with -O -fno-tree-ch --param=max-completely-peel-times=0 -march=rv64iv Date: Sun, 10 Sep 2023 11:15:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: compare-debug-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111362 Bug ID: 111362 Summary: [14 Regression] '-fcompare-debug' failure (length) with -O -fno-tree-ch --param=3Dmax-completely-peel-times=3D0 -march=3Drv64iv Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: compare-debug-failure Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: riscv64-unknown-linux-gnu Created attachment 55871 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55871&action=3Dedit reduced testcase Compiler output: $ riscv64-unknown-linux-gnu-gcc -O -fno-tree-ch --param=3Dmax-completely-peel-times=3D0 -march=3Drv64iv -fcompare-debug tes= tcase.c -save-temps riscv64-unknown-linux-gnu-gcc: error: testcase.c: '-fcompare-debug' failure (length) $ diff -u *gkd --- a-testcase.c.gkd 2023-09-10 13:14:46.728418677 +0200 +++ a-testcase.gk.c.gkd 2023-09-10 13:14:46.781751718 +0200 @@ -34,17 +34,7 @@ (const_int 8 [0x8])) [ S8 A64]) (reg:DI 9 s1)) (nil)))) -(insn/f # 0 0 (set (mem/c:DI (reg/f:DI 2 sp) [ S8 A64]) - (reg:DI 18 s2)) "testcase.c":2:11# {*movdi_64bit} - (expr_list:REG_DEAD (reg:DI 18 s2) - (expr_list:REG_FRAME_RELATED_EXPR (set/f (mem/c:DI (reg/f:DI 2 sp)= [=20 S8 A64]) - (reg:DI 18 s2)) - (nil)))) (note # 0 0 NOTE_INSN_PROLOGUE_END) -(insn # 0 0 (set (reg:SI 18 s2 [139]) - (reg:SI 69 frm))# {frrmsi} - (expr_list:REG_DEAD (reg:SI 69 frm) - (nil))) (note # 0 0 NOTE_INSN_FUNCTION_BEG) (insn # 0 0 (set (reg:DI 8 s0 [orig:134 ivtmp_6 ] [134]) (const_int 2 [0x2])) "testcase.c":3:3# {*movdi_64bit} @@ -85,10 +75,6 @@ (const_int 8 [0x8])) [ S8 A64])) "testcase.c":5:1# {*movdi_64bit} (expr_list:REG_CFA_RESTORE (reg:DI 9 s1) (nil))) -(insn/f # 0 0 (set (reg:DI 18 s2) - (mem/c:DI (reg/f:DI 2 sp) [ S8 A64])) "testcase.c":5:1# {*movdi_64bit} - (expr_list:REG_CFA_RESTORE (reg:DI 18 s2) - (nil))) (insn # 0 0 (set (mem:BLK (scratch) [ A8]) (unspec:BLK [ (reg/f:DI 2 sp) @@ -118,12 +104,6 @@ (symbol_ref/f:DI ("*.LC0") [flags 0x82] ))) "testcase.c":4:5# {*lowdi} (expr_list:REG_EQUAL (symbol_ref/f:DI ("*.LC0") [flags 0x82] ) (nil))) -(insn # 0 0 (set (reg:SI 69 frm) - (unspec_volatile:SI [ - (reg:SI 18 s2 [139]) - ] UNSPECV_FRM_RESTORE_EXIT)) "testcase.c":4:5# {fsrmsi_restore_volatile} - (expr_list:REG_UNUSED (reg:SI 69 frm) - (nil))) (call_insn # 0 0 (parallel [ (set (reg:DI 10 a0) (call (mem:SI (symbol_ref:DI ("printf") [flags 0x41]=20 ) [ __builtin_printf S4 A32]) $ riscv64-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-riscv64/bin/riscv64-unknown-lin= ux-gnu-gcc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r14-3825-20230910101237-= g0d50facd937-checking-yes-df-extra-riscv64/bin/../libexec/gcc/riscv64-unkno= wn-linux-gnu/14.0.0/lto-wrapper Target: riscv64-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,df,extra --with-cloog --with-ppl --with-isl --with-isa-spec=3D2.2 --with-sysroot=3D/usr/riscv64-unknown-linux-gnu --build=3Dx86_64-pc-linux-g= nu --host=3Dx86_64-pc-linux-gnu --target=3Driscv64-unknown-linux-gnu --with-ld=3D/usr/bin/riscv64-unknown-linux-gnu-ld --with-as=3D/usr/bin/riscv64-unknown-linux-gnu-as --disable-multilib --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r14-3825-20230910101237-g0d50facd9= 37-checking-yes-df-extra-riscv64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20230910 (experimental) (GCC)=