public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/103253] [12 Regression] ICE: Segmentation fault (in convert_mult_to_fma or in vect_recog_mask_conversion_pattern)
Date: Mon, 15 Nov 2021 17:21:41 +0000	[thread overview]
Message-ID: <bug-103253-4-JClMPYLo2a@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-103253-4@http.gcc.gnu.org/bugzilla/>

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

Arseny Solokha <asolokha at gmx dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[12 Regression] ICE:        |[12 Regression] ICE:
                   |Segmentation fault (in      |Segmentation fault (in
                   |convert_mult_to_fma)        |convert_mult_to_fma or in
                   |                            |vect_recog_mask_conversion_
                   |                            |pattern)

--- Comment #1 from Arseny Solokha <asolokha at gmx dot com> ---
And compiling the following testcase, reduced from the same original file, w/
-march=knm -O2 -fassociative-math -fopenmp -fno-delete-dead-exceptions
-fno-signed-zeros -fno-trapping-math, yields this instead:

double
do_work (double *A, double do_work_pri)
{
  int i;

#pragma omp simd
  for (i = 0; i < 30; ++i)
    do_work_pri = !i ? 0.5 : i * 0.5 + A[i];

  return do_work_pri;
}

% x86_64-unknown-linux-gnu-g++-12.0.0 -march=knm -O2 -fassociative-math
-fopenmp -fno-delete-dead-exceptions -fno-signed-zeros -fno-trapping-math -c
qozmqkqm.c
during GIMPLE pass: slp
qozmqkqm.c: In function 'double do_work(double*, double)':
qozmqkqm.c:2:1: internal compiler error: Segmentation fault
    2 | do_work (double *A, double do_work_pri)
      | ^~~~~~~
0x1182a5f crash_signal
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/toplev.c:322
0x2011579 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
0x2011579 vect_recog_mask_conversion_pattern
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/tree-vect-patterns.c:4509
0x20125ca vect_pattern_recog_1
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/tree-vect-patterns.c:5689
0x2019d1d vect_pattern_recog(vec_info*)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/tree-vect-patterns.c:5846
0x142cb0a vect_slp_analyze_bb_1
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/tree-vect-slp.c:5737
0x142cb0a vect_slp_region
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/tree-vect-slp.c:5846
0x142ec2b vect_slp_bbs
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/tree-vect-slp.c:6038
0x142f09b vect_slp_function(function*)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/tree-vect-slp.c:6126
0x1435ad1 execute
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211114/work/gcc-12-20211114/gcc/tree-vectorizer.c:1459

(Note g++ instead of gcc here.)

  reply	other threads:[~2021-11-15 17:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` asolokha at gmx dot com [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-103253-4-JClMPYLo2a@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).