https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71559
Bug ID: 71559 Summary: ICE in ix86_fp_cmp_code_to_pcmp_immediate, at config/i386/i386.c:23042 (KNL/AVX512) Product: gcc Version: 6.1.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: tripiana at gmail dot com Target Milestone: --- Created attachment 38714 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38714&action=edit intermediate (assembly) file When compiling scipy code with GFORTRAN in a KNL/AVX512 (does not happens in other machines with the same stack). The --save-temps only generates a *.s file (attached): ctripian@knl01:/apps/PYTHON/SRC/3.5.1/modules/scipy-0.17.1> /apps/.GCC/6.1.0/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -B/apps/.GCC/6.1.0/bin -DMKL_LP64 -I/usr/include/ncurses -I/apps/INTEL-2017/mkl/include -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -m64 -march=native -mtune=native -Ofast -g0 -s -fmath-errno -fno-unsafe-math-optimizations -fno-finite-math-only -fno-cx-limited-range -freciprocal-math -ftree-vectorize -floop-parallelize-all -ftree-parallelize-loops=2 -fomit-frame-pointer -fno-stack-protector -fopenmp -ffunction-sections -fdata-sections -Wl,--gc-sections -L/apps/INTEL-2017/mkl/lib/intel64_lin -lmkl_core -lmkl_gnu_thread -lmkl_gf_lp64 -lmkl_lapack95_lp64 -L/apps/.GLIBC/2.23/lib -lpthread -lm -lmvec -ldl -Wl,-rpath,/apps/.GLIBC/2.23/lib -Wl,-rpath,/apps/.GCC/6.1.0/lib64 -Wl,-rpath,/apps/.GCC/6.1.0/lib -Wl,-rpath,/apps/INTEL-2017/mkl/lib/intel64_lin -Wl,--dynamic-linker,/apps/.GLIBC/2.23/lib/ld-linux-x86-64.so.2 -funroll-loops -I/apps/PYTHON/3.5.1/lib/python3.5/site-packages/numpy-1.11.0-py3.5-linux-x86_64.egg/numpy/core/include -c -c scipy/integrate/odepack/prja.f -o build/temp.linux-x86_64-3.5/scipy/integrate/odepack/prja.o -v -save-temps Driving: /apps/.GCC/6.1.0/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -B/apps/.GCC/6.1.0/bin -DMKL_LP64 -I/usr/include/ncurses -I/apps/INTEL-2017/mkl/include -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -m64 -march=native -mtune=native -Ofast -g0 -s -fmath-errno -fno-unsafe-math-optimizations -fno-finite-math-only -fno-cx-limited-range -freciprocal-math -ftree-vectorize -floop-parallelize-all -ftree-parallelize-loops=2 -fomit-frame-pointer -fno-stack-protector -fopenmp -ffunction-sections -fdata-sections -Wl,--gc-sections -L/apps/INTEL-2017/mkl/lib/intel64_lin -lmkl_core -lmkl_gnu_thread -lmkl_gf_lp64 -lmkl_lapack95_lp64 -L/apps/.GLIBC/2.23/lib -lpthread -l gfortran -lm -lmvec -ldl -Wl,-rpath,/apps/.GLIBC/2.23/lib -Wl,-rpath,/apps/.GCC/6.1.0/lib64 -Wl,-rpath,/apps/.GCC/6.1.0/lib -Wl,-rpath,/apps/INTEL-2017/mkl/lib/intel64_lin -Wl,--dynamic-linker,/apps/.GLIBC/2.23/lib/ld-linux-x86-64.so.2 -funroll-loops -I/apps/PYTHON/3.5.1/lib/python3.5/site-packages/numpy-1.11.0-py3.5-linux-x86_64.egg/numpy/core/include -c -c scipy/integrate/odepack/prja.f -o build/temp.linux-x86_64-3.5/scipy/integrate/odepack/prja.o -v -save-temps Using built-in specs. COLLECT_GCC=/apps/.GCC/6.1.0/bin/gfortran Target: x86_64-pc-linux-gnu Configured with: ../configure --prefix=/apps/.GCC/6.1.0 --enable-ld --disable-multilib --enable-languages=c,c++,objc,fortran,obj-c++,java --enable-threads=posix --enable-checking=release --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-libssp --disable-libssp --disable-libgcj --disable-libmudflap --enable-linux-futex --without-system-libunwind --with-system-zlib --enable-lto --enable-plugin --with-glibc-version=2.23 --with-native-system-header-dir=/include --with-sysroot=/apps/.GLIBC/2.23 --with-build-sysroot=/apps/.GLIBC/2.23 --with-stage1-ldflags='-static-libstdc++ -static-libgcc --sysroot=/apps/.GLIBC/2.23 -L/apps/.GLIBC/2.23/lib -L/apps/.GLIBC/2.23/lib64 -Wl,-rpath,/apps/.GLIBC/2.23/lib -Wl,-rpath,/apps/.GLIBC/2.23/lib64 -Wl,--dynamic-linker,/apps/.GLIBC/2.23/lib/ld-linux-x86-64.so.2' --with-boot-ldflags='-static-libstdc++ -static-libgcc --sysroot=/apps/.GLIBC/2.23 -L/apps/.GLIBC/2.23/lib -L/apps/.GLIBC/2.23/lib64 -Wl,-rpath,/apps/.GLIBC/2.23/lib -Wl,-rpath,/apps/.GLIBC/2.23/lib64 -Wl,--dynamic-linker,/apps/.GLIBC/2.23/lib/ld-linux-x86-64.so.2' Thread model: posix gcc version 6.1.0 (GCC) COLLECT_GCC_OPTIONS='-Wall' '-g' '-ffixed-form' '-fno-second-underscore' '-B' '/apps/.GCC/6.1.0/bin' '-D' 'MKL_LP64' '-I' '/usr/include/ncurses' '-I' '/apps/INTEL-2017/mkl/include' '-fPIC' '-U' '_FORTIFY_SOURCE' '-D' '_FORTIFY_SOURCE=0' '-m64' '-march=native' '-mtune=native' '-Ofast' '-g0' '-s' '-fmath-errno' '-fno-unsafe-math-optimizations' '-fno-finite-math-only' '-fno-cx-limited-range' '-freciprocal-math' '-ftree-vectorize' '-floop-parallelize-all' '-ftree-parallelize-loops=2' '-fomit-frame-pointer' '-fno-stack-protector' '-fopenmp' '-ffunction-sections' '-fdata-sections' '-L/apps/INTEL-2017/mkl/lib/intel64_lin' '-L/apps/.GLIBC/2.23/lib' '-funroll-loops' '-I' '/apps/PYTHON/3.5.1/lib/python3.5/site-packages/numpy-1.11.0-py3.5-linux-x86_64.egg/numpy/core/include' '-c' '-c' '-o' 'build/temp.linux-x86_64-3.5/scipy/integrate/odepack/prja.o' '-v' '-save-temps' '-pthread' /apps/.GCC/6.1.0/libexec/gcc/x86_64-pc-linux-gnu/6.1.0/f951 scipy/integrate/odepack/prja.f -ffixed-form -I /usr/include/ncurses -I /apps/INTEL-2017/mkl/include -I /apps/PYTHON/3.5.1/lib/python3.5/site-packages/numpy-1.11.0-py3.5-linux-x86_64.egg/numpy/core/include -march=knl -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mavx512f -mavx512er -mavx512cd -mavx512pf -mprefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit -mno-mwaitx -mno-clzero -mno-pku --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=knl -quiet -dumpbase prja.f -m64 -auxbase-strip build/temp.linux-x86_64-3.5/scipy/integrate/odepack/prja.o -g -g0 -Ofast -Wall -version -ffixed-form -fno-second-underscore -fPIC -fmath-errno -fno-unsafe-math-optimizations -fno-finite-math-only -fno-cx-limited-range -freciprocal-math -ftree-vectorize -floop-parallelize-all -ftree-parallelize-loops=2 -fomit-frame-pointer -fno-stack-protector -fopenmp -ffunction-sections -fdata-sections -funroll-loops -fintrinsic-modules-path /apps/.GCC/6.1.0/lib/gcc/x86_64-pc-linux-gnu/6.1.0/finclude -o prja.s GNU Fortran (GCC) version 6.1.0 (x86_64-pc-linux-gnu) compiled by GNU C version 6.1.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU Fortran2008 (GCC) version 6.1.0 (x86_64-pc-linux-gnu) compiled by GNU C version 6.1.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 scipy/integrate/odepack/prja.f:151:0: 530 y(i) = y(i) + r internal compiler error: in ix86_fp_cmp_code_to_pcmp_immediate, at config/i386/i386.c:23042 0xd06bcb ix86_fp_cmp_code_to_pcmp_immediate ../../gcc/config/i386/i386.c:23042 0xd06bcb ix86_cmp_code_to_pcmp_immediate ../../gcc/config/i386/i386.c:23053 0xd06bcb ix86_expand_mask_vec_cmp(rtx_def**) ../../gcc/config/i386/i386.c:23065 0xe99ba5 gen_vec_cmpv8dfqi(rtx_def*, rtx_def*, rtx_def*, rtx_def*) ../../gcc/config/i386/sse.md:2851 0x9d1ef8 maybe_expand_insn(insn_code, unsigned int, expand_operand*) ../../gcc/optabs.c:7032 0x9d1ef8 expand_insn(insn_code, unsigned int, expand_operand*) ../../gcc/optabs.c:7063 0x9d2875 expand_vec_cmp_expr(tree_node*, tree_node*, rtx_def*) ../../gcc/optabs.c:5673 0x841478 do_store_flag ../../gcc/expr.c:11146 0x841478 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) ../../gcc/expr.c:9067 0x831c8a expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:9577 0x839990 expand_expr ../../gcc/expr.h:256 0x839990 expand_operands(tree_node*, tree_node*, rtx_def*, rtx_def**, rtx_def**, expand_modifier) ../../gcc/expr.c:7563 0x83e54e expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) ../../gcc/expr.c:9368 0x831c8a expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:9577 0x9d2394 expand_normal ../../gcc/expr.h:262 0x9d2394 expand_vec_cond_mask_expr(tree_node*, tree_node*, tree_node*, tree_node*, rtx_def*) ../../gcc/optabs.c:5563 0x9d2714 expand_vec_cond_expr(tree_node*, tree_node*, tree_node*, tree_node*, rtx_def*) ../../gcc/optabs.c:5607 0x83ef19 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) ../../gcc/expr.c:9358 0x831c8a expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:9577 0x839978 expand_expr ../../gcc/expr.h:256 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.