public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/112707] New: gcc 14 outputs invalid assembly on ppc: Error: unrecognized opcode: `fctid'
@ 2023-11-25  3:30 csfore at posteo dot net
  2023-11-25  3:31 ` [Bug target/112707] [14 regression] " csfore at posteo dot net
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: csfore at posteo dot net @ 2023-11-25  3:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112707
           Summary: gcc 14 outputs invalid assembly on ppc: Error:
                    unrecognized opcode: `fctid'
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: csfore at posteo dot net
  Target Milestone: ---

Created attachment 56682
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56682&action=edit
original preprocessed file

Error is first hit when building libvorbis-1.3.7-r1. Needs `gcc -O3 -ffast-math
foo.i to reproduce`. It is successful on GCC 13

`
/tmp/ccv3vNGH.s: Assembler messages:
/tmp/ccv3vNGH.s:34: Error: unrecognized opcode: `fctid'
`

I believe this is a GCC bug given that Apple release notes[0] specifically
state this instruction is 64-bit only (it's a bit down, but a search for the
instruction should find it)


[0]:
https://opensource.apple.com/source/cctools/cctools-446.1/as/notes.auto.html

gcc -v:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc-unknown-linux-gnu/14/lto-wrapper
Target: powerpc-unknown-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20231119/work/gcc-14-20231119/configure
--host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu
--prefix=/usr --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/14
--includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/14/include
--datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/14
--mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/14/man
--infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/14/info
--with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/14/include/g++-v14
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/powerpc-unknown-linux-gnu/14/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=yes,extra
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo
14.0.0_pre20231119 p9' --with-gcc-major-version-only --enable-libstdcxx-time
--enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --disable-multilib
--disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp
--disable-libada --disable-cet --disable-systemtap
--disable-valgrind-annotations --disable-vtable-verify --disable-libvtv
--without-zstd --without-isl --enable-default-pie --enable-host-pie
--disable-host-bind-now --enable-default-ssp
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.0.0 20231119 (experimental) (Gentoo 14.0.0_pre20231119 p9)

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

end of thread, other threads:[~2023-12-11  0:48 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-25  3:30 [Bug c/112707] New: gcc 14 outputs invalid assembly on ppc: Error: unrecognized opcode: `fctid' csfore at posteo dot net
2023-11-25  3:31 ` [Bug target/112707] [14 regression] " csfore at posteo dot net
2023-11-25  3:31 ` csfore at posteo dot net
2023-11-25  3:37 ` pinskia at gcc dot gnu.org
2023-11-27  2:19 ` guihaoc at gcc dot gnu.org
2023-11-27  2:23 ` csfore at posteo dot net
2023-11-27  2:28 ` csfore at posteo dot net
2023-11-27  2:39 ` csfore at posteo dot net
2023-11-27 13:30 ` segher at gcc dot gnu.org
2023-11-28  1:56 ` guihaoc at gcc dot gnu.org
2023-11-28  2:26 ` linkw at gcc dot gnu.org
2023-12-04 23:02 ` bergner at gcc dot gnu.org
2023-12-05  0:52 ` bergner at gcc dot gnu.org
2023-12-05 14:19 ` segher at gcc dot gnu.org
2023-12-05 17:46 ` bergner at gcc dot gnu.org
2023-12-11  0:46 ` cvs-commit at gcc dot gnu.org
2023-12-11  0:47 ` cvs-commit at gcc dot gnu.org
2023-12-11  0:48 ` guihaoc at gcc dot gnu.org

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).