From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C7EAD385AC22; Thu, 21 Apr 2022 11:03:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C7EAD385AC22 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105325] power10: Error: operand out of range Date: Thu, 21 Apr 2022 11:03:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: assemble-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2022 11:03:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105325 --- Comment #8 from Martin Li=C5=A1ka --- The problematic instructions is: lwa 9,40036(1) Diff in between power9 and power10: diff -u good.s bad.s --- good.s 2022-04-21 13:01:23.844042178 +0200 +++ bad.s 2022-04-21 13:01:28.544026646 +0200 @@ -1,5 +1,5 @@ .file "extmain.cpp.ii" - .machine power9 + .machine power10 .abiversion 2 .section ".text" .section ".toc","aw" ... .LCFI0: ld 9,.LC0@toc(2) + ld 10,0(9) + pstd 10,40040(1) li 10,0 - ori 10,10,0x9c68 - add 10,10,1 - ld 8,0(9) - std 8,0(10) - li 8,0 - li 9,0 - ori 9,9,0x9c64 - lwzx 9,9,1 - cmpwi 0,9,0 + lwa 9,40036(1) + cmpdi 0,9,0 beq 0,.L1 .L3: ...=