From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7F91C3858CDA; Fri, 7 Oct 2022 18:14:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7F91C3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665166470; bh=1AhXyg/OWlGn2S0R7pk+7iksXiijIMKXazkEFxBdIEc=; h=From:To:Subject:Date:From; b=Z84Bp5ZMMODam3Nh+W+5aTsdb/hnJi+5C5YeVnLxo5RQi4eWh2WvfpTvviHVY70Sq hLgIID9xDoi8v7zqf7NJvWM3PKyt2AGAE0g/lqp7aQFun1/NzsWdhXKN+peinbePHJ F684voy8B9ZcQFuIidscr0hUdxyKO+a78cZDQU0c= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/107183] New: -fcompare-debug failure (length) with -fsanitize=float-cast-overflow Date: Fri, 07 Oct 2022 18:14:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 13.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 cc 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=3D107183 Bug ID: 107183 Summary: -fcompare-debug failure (length) with -fsanitize=3Dfloat-cast-overflow 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 Target: x86_64-pc-linux-gnu Created attachment 53678 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53678&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O -fsanitize=3Dfloat-cast-overflow -fcompare-deb= ug testcase.c x86_64-pc-linux-gnu-gcc: error: testcase.c: '-fcompare-debug' failure (leng= th) $ diff -u *gkd --- a-testcase.c.gkd 2022-10-07 20:13:29.246165247 +0200 +++ a-testcase.gk.c.gkd 2022-10-07 20:13:29.299498288 +0200 @@ -79,12 +79,19 @@ (const_double:SF 0.0 [0x0.0p+0])) "testcase.c":6:18 discrim 2# {*movsf_internal} (expr_list:REG_EQUIV (const_double:SF 0.0 [0x0.0p+0]) (nil))) +(insn # 0 0 4 (parallel [ + (set (reg:XF 9 st(1)) + (reg:XF 8 st)) + (set (reg:XF 8 st) + (reg:XF 9 st(1))) + ]) "testcase.c":6:18 discrim 2# {*swapxf} + (nil)) (insn # 0 0 4 (set (reg:CCFP 17 flags) (unspec:CCFP [ (compare:CCFP (reg:XF 8 st) (reg:XF 9 st(1))) ] UNSPEC_NOTRAP)) "testcase.c":6:18 discrim 2# {*cmpiuxf_i387} - (expr_list:REG_DEAD (reg:XF 8 st) + (expr_list:REG_DEAD (reg:XF 8 st [107]) (nil))) (insn # 0 0 4 (set (reg:XF 8 st) (reg:XF 8 st)) "testcase.c":6:18 discrim 2# {*movxf_internal} $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r13-3161-20221007142737-= g89228e3985c-checking-yes-rtl-df-extra-nobootstrap-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=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r13-3161-20221007142737-g89228e398= 5c-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20221007 (experimental) (GCC)=