public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/109007] New: building for POWER8 leaks into POWER9 ISA with g++ 11.3 (cross-compiler on x86_64 host)
@ 2023-03-03 11:58 bugreporter66 at gmail dot com
  2023-03-03 18:23 ` [Bug target/109007] " jakub at gcc dot gnu.org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: bugreporter66 at gmail dot com @ 2023-03-03 11:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109007

            Bug ID: 109007
           Summary: building for POWER8 leaks into POWER9 ISA with g++
                    11.3 (cross-compiler on x86_64 host)
           Product: gcc
           Version: 11.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bugreporter66 at gmail dot com
  Target Milestone: ---

Created attachment 54577
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54577&action=edit
archive with the source code and screenshot to reproduce the issue

The code sample is attached with the source files and a screenshot. It's a
regression from g++ 9.x series, where it worked properly.

Building for POWER8 (-mcpu=power8) creates binary that has illegal instruction
for POWER8 ISA, as confirmed by running the code with QEMU (see screenshot).

The command line for building is the following (change to test directory
first):
make -f core_make_p64.mk build_le -j4

The command line for emulation with QEMU (spits illegal instruction):
qemu-ppc64le -cpu POWER8 core_test.p64f32Lp8

The test case is taken from https://github.com/VectorChief/QuadRay-engine,
where that test fails (master) for POWER8 target on Ubuntu MATE 22.04.2

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2023-03-06 11:19 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-03 11:58 [Bug target/109007] New: building for POWER8 leaks into POWER9 ISA with g++ 11.3 (cross-compiler on x86_64 host) bugreporter66 at gmail dot com
2023-03-03 18:23 ` [Bug target/109007] " jakub at gcc dot gnu.org
2023-03-03 20:24 ` pinskia at gcc dot gnu.org
2023-03-04  6:47 ` bugreporter66 at gmail dot com
2023-03-04  9:56 ` bugreporter66 at gmail dot com
2023-03-04  9:58 ` bugreporter66 at gmail dot com
2023-03-04 10:10 ` jakub at gcc dot gnu.org
2023-03-04 10:36 ` bugreporter66 at gmail dot com
2023-03-04 10:40 ` bugreporter66 at gmail dot com
2023-03-04 10:49 ` jakub at gcc dot gnu.org
2023-03-04 11:24 ` bugreporter66 at gmail dot com
2023-03-04 11:30 ` jakub at gcc dot gnu.org
2023-03-04 21:12 ` bugreporter66 at gmail dot com
2023-03-04 22:02 ` segher at gcc dot gnu.org
2023-03-05 15:31 ` bugreporter66 at gmail dot com
2023-03-05 18:59 ` segher at gcc dot gnu.org
2023-03-05 20:07 ` jakub at gcc dot gnu.org
2023-03-05 21:40 ` segher at gcc dot gnu.org
2023-03-06 11:06 ` bugreporter66 at gmail dot com
2023-03-06 11:19 ` bugreporter66 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).