public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/103253] New: [12 Regression] ICE: Segmentation fault (in convert_mult_to_fma)
@ 2021-11-15 17:05 asolokha at gmx dot com
  2021-11-15 17:21 ` [Bug tree-optimization/103253] [12 Regression] ICE: Segmentation fault (in convert_mult_to_fma or in vect_recog_mask_conversion_pattern) asolokha at gmx dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: asolokha at gmx dot com @ 2021-11-15 17:05 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103253
           Summary: [12 Regression] ICE: Segmentation fault (in
                    convert_mult_to_fma)
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: x86_64-unknown-linux-gnu

gcc-12.0.0-alpha20111114 snapshot (g:3057f1ab737582a9fb37a3fb967ed8bf3659f2f4)
ICEs when compiling the following testcase, reduced from
libgomp/testsuite/libgomp.c/examples-4/simd-8.c, w/ -march=knl -O2 -fexceptions
-fopenmp -fno-delete-dead-exceptions -fno-trapping-math:

double
do_work (double do_work_pri)
{
  int i;

#pragma omp simd
  for (i = 0; i < 17; ++i)
    do_work_pri = (!i ? 0.5 : i) * 2.0;

  return do_work_pri;
}

% x86_64-unknown-linux-gnu-gcc-12.0.0 -march=knl -O2 -fexceptions -fopenmp
-fno-delete-dead-exceptions -fno-trapping-math -c gdl8z9xi.c
during GIMPLE pass: widening_mul
gdl8z9xi.c: In function 'do_work':
gdl8z9xi.c:2:1: internal compiler error: Segmentation fault
    2 | do_work (double do_work_pri)
      | ^~~~~~~
0xeac96f crash_signal
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/toplev.c:322
0x104eecf contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/tree.h:3554
0x104eecf convert_mult_to_fma
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/tree-ssa-math-opts.c:3227
0x105056c after_dom_children
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/tree-ssa-math-opts.c:4673
0x1b9ed62 dom_walker::walk(basic_block_def*)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/domwalk.c:352
0x10436e2 execute
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/tree-ssa-math-opts.c:4718

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-05-08 12:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-15 17:05 [Bug tree-optimization/103253] New: [12 Regression] ICE: Segmentation fault (in convert_mult_to_fma) asolokha at gmx dot com
2021-11-15 17:21 ` [Bug tree-optimization/103253] [12 Regression] ICE: Segmentation fault (in convert_mult_to_fma or in vect_recog_mask_conversion_pattern) asolokha at gmx dot com
2021-11-16  8:16 ` [Bug tree-optimization/103253] [12 Regression] ICE: Segmentation fault (in convert_mult_to_fma or in vect_recog_mask_conversion_pattern) since r12-5129-g8ed62c929c7c4462 marxin at gcc dot gnu.org
2021-11-16  8:27 ` asolokha at gmx dot com
2021-11-16  8:42 ` tnfchris at gcc dot gnu.org
2021-11-16  9:02 ` tnfchris at gcc dot gnu.org
2021-11-16  9:32 ` rguenth at gcc dot gnu.org
2021-11-16  9:39 ` tnfchris at gcc dot gnu.org
2021-11-16  9:44 ` rguenther at suse dot de
2021-11-16 10:12 ` tnfchris at gcc dot gnu.org
2021-11-16 10:29 ` rguenther at suse dot de
2021-11-18 11:24 ` cvs-commit at gcc dot gnu.org
2021-11-18 11:26 ` tnfchris at gcc dot gnu.org
2021-12-13  8:22 ` [Bug tree-optimization/103253] Unused COND_MUL isn't removed by DCE even with -fno-trapping-math tnfchris at gcc dot gnu.org
2022-05-06  8:31 ` jakub at gcc dot gnu.org
2023-05-08 12:23 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).