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

            Bug ID: 117353
           Summary: RISC-V: ICE when building libcrypt
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vineetg at gcc dot gnu.org
  Target Milestone: ---

ice-crypt.c: In function ‘h’:
ice-crypt.c:22:1: error: could not split insn
   22 | }
      | ^
(insn 118 140 121 (set (reg:V8QI 97 v1 [225])
        (lshiftrt:V8QI (reg:V8QI 97 v1 [224])
            (const_int 1 [0x1]))) 24434 {lshrv8qi3}
     (nil))


/* Patrick reduced it from lib/libcrypt_la-alg-sha256.c
 * -O2 -march=rv64gcv_zvl256b */

int *b;
inline void c(char *d, int e) {
  d[0] = 0;
  d[1] = e;
}
void f();
void h() {
  for (;;) {
    char *a;
    long g = 8;
    while (g) {
      c(a, *b);
      b++;
      a += 2;
      g--;
    }
    f();
  }
}

Reply via email to