https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123599
Bug ID: 123599
Summary: [m68k] insn does not satisfy its constraints
Product: gcc
Version: 15.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc at heine dot tech
Target Milestone: ---
When compiling libfmt (https://github.com/fmtlib/fmt) with gcc 15.1.0 for m68k
the following error happens:
/home/thomas/autobuild/instance-1/output-1/build/fmt-12.1.0/include/fmt/format.h:
In function 'OutputIt fmt::v12::detail::write_fixed(OutputIt, const DecimalFP&,
int, Char, const fmt::v12::format_specs&, fmt::v12::sign, fmt::v12::locale_ref)
[with Char = char; Grouping = digit_grouping<char>; OutputIt =
fmt::v12::basic_appender<char>; DecimalFP = dragonbox::decimal_fp<float>]':
/home/thomas/autobuild/instance-1/output-1/build/fmt-12.1.0/include/fmt/format.h:2561:1:
error: insn does not satisfy its constraints:
2561 | }
| ^
(insn 341 340 1196 60 (parallel [
(set (mem/c:DI (plus:SI (reg/f:SI 14 %a6)
(const_int -600 [0xfffffffffffffda8])) [223 %sfp+-600
S8 A16])
(plus:DI (mem/c:DI (plus:SI (reg/f:SI 14 %a6)
(const_int -600 [0xfffffffffffffda8])) [223
%sfp+-600 S8 A16])
(reg:DI 0 %d0 [orig:150 count+-4 ] [150])))
(clobber (reg:SI 0 %d0))
])
"/home/thomas/autobuild/instance-1/output-1/build/fmt-12.1.0/include/fmt/format.h":2535:10
discrim 2 148 {adddi3}
(nil))
during RTL pass: postreload
/home/thomas/autobuild/instance-1/output-1/build/fmt-12.1.0/include/fmt/format.h:2561:1:
internal compiler error: in extract_constrain_insn, at recog.cc:2783
0x190acaa diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
???:0
0x191adef internal_error(char const*, ...)
???:0
0x6661b6 fancy_abort(char const*, int, char const*)
???:0
0x646a2f _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
???:0
0x646a55 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
???:0
0x645f3b extract_constrain_insn(rtx_insn*) [clone .cold]
???:0
0xd21616 reload_cse_simplify_operands(rtx_insn*, rtx_def*) [clone .isra.0]
???:0
0xd2248c reload_cse_regs_1()
???:0
0xd23eab (anonymous namespace)::pass_postreload_cse::execute(function*)
???:0
Full log at:
https://autobuild.buildroot.org/results/d52f78b2c46c8260653d2a71932f557a4e3ea1ac/build-end.log
I also could reproduce it with 15.2.0 but not with 14.2.0.