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

--- Comment #1 from Matthias Klose <doko at gcc dot gnu.org> ---
$ cat jit_avx512_core_amx_copy_kern.cpp.ii
int &GetErrorRef() {
  thread_local int err;
  return err;
}
int SetError_err, isREG_bit;
bool isREG___trans_tmp_1;
struct Operand {
  int : 6;
  int kind_ : 10;
  int bit_ : 4;
  Operand();
  void isREG() { isREG___trans_tmp_1 = kind_ && bit_ & isREG_bit; }
  int getBit() { return bit_; }
};
struct Reg32e : Operand {};
Operand index_;
struct RegExp {
  RegExp(Operand &r) {
    r.isREG();
    if (GetErrorRef())
      GetErrorRef() = SetError_err;
    if (r.getBit())
      index_ = r;
  }
};
struct AddressFrame {
  void operator[](RegExp);
} ptr;
void jit_avx512_core_amx_copy_kern_tkernel_BN(Reg32e B) {
  for (;;)
    ptr[B];
}

$ g++ -std=c++17 -c -O1 -fstack-protector-strong -fstack-clash-protection
-fopenmp -fvisibility-inlines-hidden -fvisibility=internal -fPIC
-fstack-protector-strong -fcf-protection=full
jit_avx512_core_amx_copy_kern.cpp.ii
during RTL pass: x86_cse
jit_avx512_core_amx_copy_kern.cpp.ii: In function 'void
jit_avx512_core_amx_copy_kern_tkernel_BN(Reg32e)':
jit_avx512_core_amx_copy_kern.cpp.ii:32:1: internal compiler error: in
bitmap_first_set_bit_worker, at bitmap.cc:1233
   32 | }
      | ^
0x21c6cd1 internal_error(char const*, ...)
        ../../src/gcc/diagnostic-global-context.cc:787
0x21c6e4b fancy_abort(char const*, int, char const*)
        ../../src/gcc/diagnostics/context.cc:1812
0xea790e bitmap_first_set_bit_worker
        ../../src/gcc/bitmap.cc:1233
0xea790e bitmap_first_set_bit(bitmap_head const*)
        ../../src/gcc/bitmap.cc:1299
0xea790e nearest_common_dominator_for_set(cdi_direction, bitmap_head*) [clone
.constprop.0]
        ../../src/gcc/dominance.cc:1039
0x1bd8b7f ix86_get_dominator_for_reg
        ../../src/gcc/config/i386/i386-features.cc:3898
0x1be6090 ix86_emit_tls_call
        ../../src/gcc/config/i386/i386-features.cc:4116
0x1be6090 ix86_place_single_tls_call
        ../../src/gcc/config/i386/i386-features.cc:4197
0x102152d x86_cse
        ../../src/gcc/config/i386/i386-features.cc:4780
0x102152d execute
        ../../src/gcc/config/i386/i386-features.cc:4295
/usr/libexec/gcc/x86_64-linux-gnu/16/cc1plus -fpreprocessed
jit_avx512_core_amx_copy_kern.cpp.ii -D_FORTIFY_SOURCE=3 -quiet -dumpbase
jit_avx512_core_amx_copy_kern.cpp.ii -dumpbase-ext .ii -mtune=generic
-march=x86-64 -O1 -std=c++17 -fstack-protector-strong -fstack-clash-protection
-fopenmp -fvisibility-inlines-hidden -fvisibility=internal -fPIC
-fstack-protector-strong -fcf-protection=full -fasynchronous-unwind-tables
-fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection
-fzero-init-padding-bits=all -Wbidi-chars=any -o /tmp/ccoOwe3N.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).

Reply via email to