From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BF6883858CDB; Mon, 16 Jan 2023 09:46:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BF6883858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673862408; bh=40dhHPc/cqZgiuKf2RCnI4sO6ioitajJ43In82v2ZuI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=G/CyuesWjrFzy5uoHC5YFQxjoh2dE5jR1I4E+8VLd0XVr7OJEDXuVjDbmWPs22S2i RSv41+T8mJK/HY5IuiG6a3zMf2adMoF0TQV0Su4xPCRemjeeJuX2GYN2BVJ0nDaFWz tK+wYODRVcF/i+0x/zL++nfLpYotWKPPMAMozUKo= From: "stefansf at linux dot ibm.com" To: gcc-rust@gcc.gnu.org Subject: [Bug middle-end/108102] rust bootstrap comparison failure on s390x-linux-gnu Date: Mon, 16 Jan 2023 09:46:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: stefansf at linux dot ibm.com 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: Message-ID: In-Reply-To: References: 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=3D108102 --- Comment #11 from Stefan Schulze Frielinghaus --- Please find attached a reduced version of the initial problem. If compiled with g++ -O2 -march=3Darch13 -fno-exceptions (-g) there is still a difference whether build with debug information or not: diff <(objdump -d reduced.o-without-debug) <(objdump -d reduced.o-with-debu= g) 2c2 < reduced.o-without-debug: file format elf64-s390 --- > reduced.o-with-debug: file format elf64-s390 94,97c94,97 < 1b8: e5 48 f0 a8 00 00 mvghi 168(%r15),0 < 1be: e3 50 f0 c8 00 04 lg %r5,200(%r15) < 1c4: 41 30 f0 a0 la %r3,160(%r15) < 1c8: e3 50 f0 a0 00 24 stg %r5,160(%r15) --- > 1b8: e3 50 f0 c8 00 04 lg %r5,200(%r15) > 1be: e5 48 f0 a8 00 00 mvghi 168(%r15),0 > 1c4: e3 50 f0 a0 00 24 stg %r5,160(%r15) > 1ca: 41 30 f0 a0 la %r3,160(%r15) The corresponding insns are: Without debug information: mvghi =3D> insn 207 lg =3D> insn 206 la =3D> insn 310 stg =3D> insn 312 With debug information: lg =3D> insn 427 mvghi =3D> insn 428 stg =3D> insn 533 la =3D> insn 531 In split3 the order of the insns are the same and change in sched2 where we have: Without debug information: ;; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D ;; -- basic block 14 from 87 to 355 -- after reload ;; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D ;; 0--> b 0: i 87 %r2=3D0 :nothi= ng ;; 1--> b 0: i 88 {%r2=3Dcall [`_ZN4Rust4TyTy9ParamType7resolveEv'];clobber %r14;}:nothing ;; 2--> b 0: i 207 [%r15+0xa8]=3D0 :nothi= ng ;; 3--> b 0: i 206 %r5=3D[%r15+0xc8] :nothi= ng ;; 4--> b 0: i 310 %r3=3D%r15+0xa0 :nothi= ng ;; 5--> b 0: i 312 [%r15+0xa0]=3D%r5 :nothi= ng ;; 6--> b 0: i 311 %r2=3D%r15+0xc0 :nothi= ng ;; 7--> b 0: i 96 {call [`_ZNSt6vectorIPN4Rust4TyTy8BaseTypeESaIS3_EE17_M_realloc_insertIN9__gnu_cx= x17__normal_iteratorIPS3_S5_EEEEvT_'];clobber %r14;}:nothing ;; 8--> b 0: i 355 pc=3DL174 :nothi= ng ;; Ready list (final): ;; total time =3D 8 ;; new head =3D 87 ;; new tail =3D 355 With debug information: ;; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D ;; -- basic block 14 from 201 to 585 -- after reload ;; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D ;; 0--> b 0: i 201 debug_marker :nothing ;; 0--> b 0: i 202 %r2=3D0 :nothi= ng ;; 1--> b 0: i 203 {%r2=3Dcall [`_ZN4Rust4TyTy9ParamType7resolveEv'];clobber %r14;}:nothing ;; 1--> b 0: i 204 debug_marker :nothing ;; 1--> b 0: i 205 loc %r15+0xc0 :nothing ;; 1--> b 0: i 206 debug_marker :nothing ;; 1--> b 0: i 207 loc %r15+0xc0 :nothing ;; 1--> b 0: i 208 debug_marker :nothing ;; 1--> b 0: i 210 loc debug_implicit_ptr :nothing ;; 1--> b 0: i 211 loc [%r15+0xc8] :nothing ;; 1--> b 0: i 212 debug_marker :nothing ;; 1--> b 0: i 214 loc clobber :nothing ;; 1--> b 0: i 215 loc clobber :nothing ;; 1--> b 0: i 216 loc clobber :nothing ;; 2--> b 0: i 427 %r5=3D[%r15+0xc8] :nothi= ng ;; 3--> b 0: i 428 [%r15+0xa8]=3D0 :nothi= ng ;; 4--> b 0: i 533 [%r15+0xa0]=3D%r5 :nothi= ng ;; 5--> b 0: i 531 %r3=3D%r15+0xa0 :nothi= ng ;; 6--> b 0: i 532 %r2=3D%r15+0xc0 :nothi= ng ;; 7--> b 0: i 222 {call [`_ZNSt6vectorIPN4Rust4TyTy8BaseTypeESaIS3_EE17_M_realloc_insertIN9__gnu_cx= x17__normal_iteratorIPS3_S5_EEEEvT_'];clobber %r14;}:nothing ;; 7--> b 0: i 223 loc clobber :nothing ;; 8--> b 0: i 585 pc=3DL373 :nothi= ng ;; Ready list (final): ;; total time =3D 8 ;; new head =3D 201 ;; new tail =3D 585 --=20 You are receiving this mail because: You are on the CC list for the bug.=