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

            Bug ID: 98657
           Summary: SVE: ICE (unrecognizable insn) wtih shift at -O3
                    -msve-vector-bits=256
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: acoplan at gcc dot gnu.org
  Target Milestone: ---

The following fails:

$ cat test.c
extern char a[];
void b(_Bool c[][18]) {
  for (int d;;)
    for (int e = 0; e < 23; e += 1)
      a[e] = 6 >> c[1][d];
}
$ aarch64-elf-gcc -c test.c -O3 -march=armv8.2-a+sve -msve-vector-bits=256
test.c: In function 'b':
test.c:6:1: error: unrecognizable insn:
    6 | }
      | ^
(insn 34 33 35 5 (set (reg:VNx16QI 132)
        (unspec:VNx16QI [
                (reg:VNx16BI 133)
                (vec_duplicate:VNx16QI (mem:QI (plus:DI (reg/f:DI 128)
                            (reg:DI 129)) [1 MEM[(_Bool[18] *)c_9(D) +
18B][d_10(D)]+0 S1 A8]))
                (const_vector:VNx16QI [
                        (const_int 0 [0]) repeated x32
                    ])
            ] UNSPEC_SEL)) "test.c":5:16 -1
     (nil))
during RTL pass: vregs
test.c:6:1: internal compiler error: in extract_insn, at recog.c:2769
0xd621cd _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /home/alecop01/toolchain/src/gcc/gcc/rtl-error.c:108
0xd621ec _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /home/alecop01/toolchain/src/gcc/gcc/rtl-error.c:116
0xd3217f extract_insn(rtx_insn*)
        /home/alecop01/toolchain/src/gcc/gcc/recog.c:2769
0xa540b1 instantiate_virtual_regs_in_insn
        /home/alecop01/toolchain/src/gcc/gcc/function.c:1609
0xa540b1 instantiate_virtual_regs
        /home/alecop01/toolchain/src/gcc/gcc/function.c:1983
0xa540b1 execute
        /home/alecop01/toolchain/src/gcc/gcc/function.c:2032
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to