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

            Bug ID: 83857
           Summary: [ICE] internal compiler error: in exact_div, at
                    poly-int.h:2139
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vincenzo.innocente at cern dot ch
  Target Milestone: ---

Created attachment 43133
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43133&action=edit
directory with all files needed to reproduce problem (no attempt to reduce to
minimum)

c++ -v
Using built-in specs.
COLLECT_GCC=c++
COLLECT_LTO_WRAPPER=/afs/cern.ch/work/i/innocent/public/w5/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-trunk//configure
--prefix=/afs/cern.ch/user/i/innocent/w5 -enable-languages=c,c++,lto,fortran
--enable-lto -enable-libitm -disable-multilib : (reconfigured)
../gcc-trunk//configure --prefix=/afs/cern.ch/user/i/innocent/w5
-enable-languages=c,c++,lto,fortran --enable-lto -enable-libitm
-disable-multilib : (reconfigured) ../gcc-trunk//configure
--prefix=/afs/cern.ch/user/i/innocent/w5 -enable-languages=c,c++,lto,fortran
--enable-lto -enable-libitm -disable-multilib
Thread model: posix
gcc version 8.0.1 20180115 (experimental) [trunk revision 256692] (GCC) 


[innocent@vinavx3 innocent]$ tar -xzf fastSinCos.tgz 
[innocent@vinavx3 innocent]$ cd fastSinCos
[innocent@vinavx3 fastSinCos]$ c++ -Ofast -fopt-info-vec -Wall testSinCos.cpp
testSinCos.cpp:136:21: note: loop vectorized
during GIMPLE pass: vect
testSinCos.cpp: In function 'int main()':
testSinCos.cpp:22:5: internal compiler error: in exact_div, at poly-int.h:2139
 int main() {
     ^~~~
0x7853bf poly_int<1u, poly_result<unsigned long, if_nonpoly<unsigned long,
unsigned long, poly_int_traits<unsigned long>::is_poly>::type,
poly_coeff_pair_traits<unsigned long, if_nonpoly<unsigned long, unsigned long,
poly_int_traits<unsigned long>::is_poly>::type>::result_kind>::type>
exact_div<1u, unsigned long, unsigned long>(poly_int_pod<1u, unsigned long>
const&, unsigned long)
        ../../gcc-trunk/gcc/poly-int.h:2139
0x7853bf poly_int<1u, poly_result<unsigned long, unsigned long,
poly_coeff_pair_traits<unsigned long, unsigned long>::result_kind>::type>
exact_div<1u, unsigned long, unsigned long>(poly_int_pod<1u, unsigned long>
const&, poly_int_pod<1u, unsigned long> const&)
        ../../gcc-trunk/gcc/poly-int.h:2152
0x7853bf vect_get_num_vectors
        ../../gcc-trunk/gcc/tree-vectorizer.h:1307
0x7853bf vect_get_num_copies
        ../../gcc-trunk/gcc/tree-vectorizer.h:1318
0x7853bf vectorizable_live_operation(gimple*, gimple_stmt_iterator*,
_slp_tree*, int, gimple**)
        ../../gcc-trunk/gcc/tree-vect-loop.c:8132
0x1102053 vect_analyze_loop_operations
        ../../gcc-trunk/gcc/tree-vect-loop.c:1855
0x1102053 vect_analyze_loop_2
        ../../gcc-trunk/gcc/tree-vect-loop.c:2254
0x1102053 vect_analyze_loop(loop*, _loop_vec_info*)
        ../../gcc-trunk/gcc/tree-vect-loop.c:2546
0x111b0ad vectorize_loops()
        ../../gcc-trunk/gcc/tree-vectorizer.c:664
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.

btw 
ls /data/data/vin/build/gcc-trunk//gcc/testsuite/gcc.dg/torture/pr83753.c
/data/data/vin/build/gcc-trunk//gcc/testsuite/gcc.dg/torture/pr83753.c
c++ -Ofast -c
/data/data/vin/build/gcc-trunk//gcc/testsuite/gcc.dg/torture/pr83753.c 
-fopt-info-vec 
/data/data/vin/build/gcc-trunk//gcc/testsuite/gcc.dg/torture/pr83753.c:13:14:
note: loop vectorized
/data/data/vin/build/gcc-trunk//gcc/testsuite/gcc.dg/torture/pr83753.c:19:1:
note: basic block vectorized

Reply via email to