From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DC3F73858D1E; Thu, 21 Apr 2022 05:14:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC3F73858D1E From: "joel at jms dot id.au" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105325] New: power10: Error: operand out of range Date: Thu, 21 Apr 2022 05:14:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joel at jms dot id.au 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 bug_severity priority component assigned_to reporter target_milestone 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 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 05:14:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105325 Bug ID: 105325 Summary: power10: Error: operand out of range Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: joel at jms dot id.au Target Milestone: --- Created attachment 52839 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52839&action=3Dedit prepocessed source When building a C++ application (https://github.com/the-OpenROAD-Project/openROAD/) with -mcpu=3Dpower10, t= he assembler fails: as -v -I /home/joel/dev/OpenROAD/include -I /usr/include/tcl -I /home/joel/dev/OpenROAD/src/rcx/src/../include -I /home/joel/dev/OpenROAD/src/odb/include -I /home/joel/dev/OpenROAD/src/utl/include -I /home/joel/dev/OpenROAD/src/odb/include/odb -I /home/joel/dev/OpenROAD/src/odb/src/def/def -I /home/joel/dev/OpenROAD/src/odb/src/def/defzlib -I /home/joel/dev/OpenROAD/src/odb/src/lef/lef -I /home/joel/dev/OpenROAD/src/odb/src/lef/lefzlib -I /home/joel/dev/OpenROAD/src/sta/include -a64 -mpower10 -many -mlittle -o CMakeFiles/rcx.dir/extmain.cpp.o CMakeFiles/rcx.dir/extmain.cpp.s /tmp/cc5ook6I.s: Assembler messages: /tmp/cc5ook6I.s:15503: Error: operand out of range (0x0000000000031b60 is n= ot between 0xffffffffffff8000 and 0x0000000000007ffc) /tmp/cc5ook6I.s:15585: Error: operand out of range (0x0000000000031b60 is n= ot between 0xffffffffffff8000 and 0x0000000000007ffc) /tmp/cc5ook6I.s:15956: Error: operand out of range (0x0000000000031b60 is n= ot between 0xffffffffffff8000 and 0x0000000000007ffc) The full command line is attached. Building the attached preprocessed source with -O1, 2, 3 shows the issue: c++ -mcpu=3Dpower10 -O3 -c extmain.cpp.ii Building at -O0 or with no -O option does not reproduce: c++ -mcpu=3Dpower10 -c extmain.cpp.ii Building with -mcpu=3Dpower9 does not reproduce: c++ -mcpu=3Dpower9 -O3 -c extmain.cpp.ii Versions: GNU C++17 (Ubuntu 11.2.0-7ubuntu2) version 11.2.0 (powerpc64le-linux-gnu) compiled by GNU C version 11.2.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.0, isl version isl-0.24-GMP GNU assembler version 2.37 (powerpc64le-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.37 The distro is Ubuntu 21.10, running on a ppc64le machine.=