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

            Bug ID: 121787
           Summary: [Trunk] RISC-V rv64gcv: crash at -O1/2/3
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xxs_chy at outlook dot com
  Target Milestone: ---

GCC version: gcc version 16.0.0 20250903 (experimental) (gbda76b479)
Testcase:
#include <stdint.h>
typedef int a;
int32_t b, e;
int32_t **c;
uint8_t d(int32_t *, int32_t *, uint16_t, const int32_t *, int32_t **);
uint32_t f() {
  uint16_t g;
  d(0, &b, g, &b, c);
  e = (__attribute__((__vector_size__(sizeof(a)))) a){}[4];
}
uint8_t d(int32_t *, int32_t *, uint16_t, const int32_t *, int32_t **) {
  asm goto("" : : : : i);
i:
j:
  asm goto("" : : : : j);
}

Compilation assertion:
> error: loop 1's header does not have exactly 2 entries

Details in godbolt link: https://godbolt.org/z/jMMYac5Wh

Reply via email to