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

            Bug ID: 109977
           Summary: [14 Regression] ICE: output_operand: incompatible
                    floating point / vector register operand for '%d' at
                    -Og
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: aarch64-unknown-linux-gnu

Created attachment 55161
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55161&action=edit
reduced testcase

Compiler output:
$ aarch64-unknown-linux-gnu-gcc -Og testcase.c
during RTL pass: final
testcase.c: In function 'foo':
testcase.c:14:1: internal compiler error: output_operand: incompatible floating
point / vector register operand for '%d'
   14 | }
      | ^
0xe12aff output_operand_lossage(char const*, ...)
        /repo/gcc-trunk/gcc/final.cc:3190
0xe12cc5 output_operand(rtx_def*, int)
        /repo/gcc-trunk/gcc/final.cc:3632
0xe13a90 output_asm_insn(char const*, rtx_def**)
        /repo/gcc-trunk/gcc/final.cc:3525
0xe1889b output_asm_insn(char const*, rtx_def**)
        /repo/gcc-trunk/gcc/final.cc:3421
0xe1889b final_scan_insn_1
        /repo/gcc-trunk/gcc/final.cc:2841
0xe18bbb final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        /repo/gcc-trunk/gcc/final.cc:2887
0xe18df4 final_1
        /repo/gcc-trunk/gcc/final.cc:1979
0xe19a68 rest_of_handle_final
        /repo/gcc-trunk/gcc/final.cc:4240
0xe19a68 execute
        /repo/gcc-trunk/gcc/final.cc:4318
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ aarch64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-1235-20230525094833-g0d1e0d7433c-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/14.0.0/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl
--with-sysroot=/usr/aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=aarch64-unknown-linux-gnu
--with-ld=/usr/bin/aarch64-unknown-linux-gnu-ld
--with-as=/usr/bin/aarch64-unknown-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r14-1235-20230525094833-g0d1e0d7433c-checking-yes-rtl-df-extra-aarch64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20230525 (experimental) (GCC)

Reply via email to