https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123870
--- Comment #2 from Ilya Kurdyukov <jpegqs at gmail dot com> ---
Same ICE with vsext_vf2:
$ cat > test.c
#include <riscv_vector.h>
vint32m2_t test(vint16m1_t v) {
return __riscv_vsext_vf2_i32m2(v, 1);
}
$ gcc-15 -march=rv64gcxtheadvector test.c -c
test.c: In function ‘test’:
test.c:5:1: error: unrecognizable insn:
5 | }
| ^
(insn 16 15 19 2 (set (reg:RVVM2SI 134 [ _2 ])
(if_then_else:RVVM2SI (unspec:RVVMF16BI [
(const_vector:RVVMF16BI repeat [
(const_int 1 [0x1])
])
(reg:DI 145)
(const_int 2 [0x2]) repeated x2
(const_int 0 [0])
(reg:SI 66 vl)
(reg:SI 67 vtype)
] UNSPEC_VPREDICATE)
(sign_extend:RVVM2SI (reg:RVVM1HI 144))
(unspec:RVVM2SI [
(reg:DI 0 zero)
] UNSPEC_VUNDEF))) "test.c":4:10 -1
(nil))
during RTL pass: vregs
test.c:5:1: internal compiler error: in extract_insn, at recog.cc:2882
0x2263ea9 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, void**,
diagnostic_t)
???:0
0x227033d internal_error(char const*, ...)
???:0
0x64e8cf fancy_abort(char const*, int, char const*)
???:0
0x649409 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
???:0
0x649427 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
???:0
0xaf4235 extract_insn(rtx_insn*)
???:0
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-15/README.Bugs> for instructions.