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

            Bug ID: 89438
           Summary: [9 Regression] ICE in
                    glibc/sysdeps/ieee754/dbl-64/e_pow.c (internal
                    compiler error: in decompose, at rtl.h:2266)
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: przemyslaw.wirkus at arm dot com
  Target Milestone: ---

# GCC Version
    revision r268990

# Host system type
    Linux machine 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018
x86_64 x86_64 x86_64 GNU/Linux
    Ubuntu 18.04.2 LTS

# Options given when GCC was configured/built (gcc2 stage)
    --target=arm-none-linux-gnueabi \
    --enable-shared \
    --disable-libatomic \
    --without-cloog \
    --without-isl \
    --disable-libssp \
    --disable-libgomp \
    --disable-libmudflap \
    --disable-libquadmath \
    --enable-checking=yes \
    --enable-languages=c  \
    --with-float=softfp \
    --with-fpu=crypto-neon-fp-armv8 \
    --with-mode=thumb \
    --with-arch=armv8-a \
    --with-arch=armv7-a

# Reduced testcase and command line that triggers the bug

$ cat e_pow_cpp.c
typedef double a;
struct {
  double b;
  double c;
  struct {
    double d, e
  } f[]
} g;
h, i, j;
double k;
double l() {
  int m;
  if (j)
    return;
  long ix, p = ix - 80;
  a kd, n;
  n = kd * h + g.f[p].e;
  m = n;
  a o = 1 ? m : 1.0;
  k = i ? -o : o;
  return k;
}

$ ./arm-none-linux-gnueabi-gcc -O2 -g e_pow_cpp.c -S -w -march=armv8-a
-mfloat-abi=softfp -mfpu=crypto-neon-fp-armv8
during RTL pass: vartrack
e_pow_cpp.c: In function ā€˜l’:
e_pow_cpp.c:22:1: internal compiler error: in decompose, at rtl.h:2266
   22 | }
      | ^
0xbbc00f wi::int_traits<std::pair<rtx_def*, machine_mode> >::decompose(long*,
unsigned int, std::pair<rtx_def*, machine_mode> const&)
        $src/gcc/gcc/rtl.h:2264
0xbbc00f wide_int_ref_storage<false,
false>::wide_int_ref_storage<std::pair<rtx_def*, machine_mode>
>(std::pair<rtx_def*, machine_mode> const&, unsigned int)
        $src/gcc/gcc/wide-int.h:1013
0xbbc00f generic_wide_int<wide_int_ref_storage<false, false>
>::generic_wide_int<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*,
machine_mode> const&, unsigned int)
        $src/gcc/gcc/wide-int.h:788
0xbbc00f wi::binary_traits<std::pair<rtx_def*, machine_mode>,
std::pair<rtx_def*, machine_mode>, wi::int_traits<std::pair<rtx_def*,
machine_mode> >::precision_type, wi::int_traits<std::pair<rtx_def*,
machine_mode> >::precision_type>::result_type wi::sub<std::pair<rtx_def*,
machine_mode>, std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*,
machine_mode> const&, std::pair<rtx_def*, machine_mode> const&)
        $src/gcc/gcc/wide-int.h:2488
0xbbc00f simplify_const_binary_operation(rtx_code, machine_mode, rtx_def*,
rtx_def*)
        $src/gcc/gcc/simplify-rtx.c:4282
0xbb9a7f simplify_binary_operation(rtx_code, machine_mode, rtx_def*, rtx_def*)
        $src/gcc/gcc/simplify-rtx.c:2164
0xbc566b simplify_plus_minus
        $src/gcc/gcc/simplify-rtx.c:4686
0xbb62ab simplify_binary_operation_1
        $src/gcc/gcc/simplify-rtx.c:2388
0xbb9acd simplify_binary_operation(rtx_code, machine_mode, rtx_def*, rtx_def*)
        $src/gcc/gcc/simplify-rtx.c:2167
0x780327 cselib_expand_value_rtx_1
        $src/gcc/gcc/cselib.c:1856
0x781c8e cselib_expand_value_rtx_cb(rtx_def*, bitmap_head*, int, rtx_def*
(*)(rtx_def*, bitmap_head*, int, void*), void*)
        $src/gcc/gcc/cselib.c:1562
0xf11ef1 vt_expand_var_loc_chain
        $src/gcc/gcc/var-tracking.c:8384
0xf11ef1 vt_expand_loc_callback
        $src/gcc/gcc/var-tracking.c:8547
0x780242 cselib_expand_value_rtx_1
        $src/gcc/gcc/cselib.c:1716
0x77ffc5 cselib_expand_value_rtx_1
        $src/gcc/gcc/cselib.c:1755
0x781c8e cselib_expand_value_rtx_cb(rtx_def*, bitmap_head*, int, rtx_def*
(*)(rtx_def*, bitmap_head*, int, void*), void*)
        $src/gcc/gcc/cselib.c:1562
0xf11ef1 vt_expand_var_loc_chain
        $src/gcc/gcc/var-tracking.c:8384
0xf11ef1 vt_expand_loc_callback
        $src/gcc/gcc/var-tracking.c:8547
0x780242 cselib_expand_value_rtx_1
        $src/gcc/gcc/cselib.c:1716
0x77ffc5 cselib_expand_value_rtx_1
        $src/gcc/gcc/cselib.c:1755
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