Compilation crash on Ubuntu 22, gcc 12.1
On current master Im getting:
[ 97%] Building CXX object benchmarks/CMakeFiles/MatrixComplexFloat2x2.dir/MatrixComplexFloat2x2.cc.o
In file included from /DP3/benchmarks/MatrixComplexFloat2x2.cc:8:
/DP3/build/_deps/nanobench-src/src/include/nanobench.h: In function ‘ankerl::nanobench::Bench& ankerl::nanobench::Bench::run(Op&&) [with Op = Trace<aocommon::MC2x2Base<float> >(ankerl::nanobench::Bench&, const char*)::<lambda()>]’:
/DP3/build/_deps/nanobench-src/src/include/nanobench.h:1179:1: error: insn does not satisfy its constraints:
1179 | }
| ^
(insn 165 164 166 8 (set (reg:SI 24 xmm4 [166])
(reg:SI 71 k3 [165])) "/DP3/build/_deps/nanobench-src/src/include/nanobench.h":1011:5 81 {*movsi_internal}
(nil))
during RTL pass: postreload
/DP3/build/_deps/nanobench-src/src/include/nanobench.h:1179:1: internal compiler error: in extract_constrain_insn, at recog.cc:2692
0x679fd2 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*)
../../src/gcc/rtl-error.cc:108
0x679ffe _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
../../src/gcc/rtl-error.cc:118
0x679146 extract_constrain_insn(rtx_insn*)
../../src/gcc/recog.cc:2692
0xcd9496 reload_cse_simplify_operands
../../src/gcc/postreload.cc:407
0xcda003 reload_cse_simplify
../../src/gcc/postreload.cc:190
0xcda003 reload_cse_regs_1
../../src/gcc/postreload.cc:238
0xcdbecb reload_cse_regs
../../src/gcc/postreload.cc:66
0xcdbecb execute
../../src/gcc/postreload.cc:2355
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
make[2]: *** [benchmarks/CMakeFiles/MatrixComplexFloat2x2.dir/build.make:76: benchmarks/CMakeFiles/MatrixComplexFloat2x2.dir/MatrixComplexFloat2x2.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:760: benchmarks/CMakeFiles/MatrixComplexFloat2x2.dir/all] Error 2