public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/106492] [OpenMP] ICE in #pragma omp for simd and bitfields
Date: Mon, 01 Aug 2022 09:00:20 +0000	[thread overview]
Message-ID: <bug-106492-4-u9lMohowOn@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-106492-4@http.gcc.gnu.org/bugzilla/>

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-08-01
           Keywords|                            |ice-on-valid-code, openmp
             Status|UNCONFIRMED                 |NEW
                 CC|                            |burnus at gcc dot gnu.org,
                   |                            |jakub at gcc dot gnu.org
            Summary|ICE in #pragma omp for simd |[OpenMP] ICE in #pragma omp
                   |and bitfields               |for simd and bitfields
     Ever confirmed|0                           |1

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
The ICE occurs for the second SIMD loop (in U::U()) – it compiles when
commenting the U::U()  loops out - but it still has an ICE with only the S::S()
body commented out.

 * * *

pr95063.C:19:8: error: type mismatch in binary expression
<unnamed-signed:12>
<unnamed-signed:12>
int

That's for 'a = a + D.2617;' - To show more context, this lines appears in the
following omplow dump (slightly edited). - The D.2617 variable is generated
before line 11738 in omp-low.cc's lower_omp_for where the type is  type =
fd.iter_type.


  #pragma omp for private(k.2) firstprivate(a) lastprivate(a)
  for (k.2 = 0; k.2 < 64; k.2 = k.2 + 1)
  {
    int D.2617;
    int D.2618;
    <unnamed-signed:12> a;
    int k;
    a = a + D.2617;   // <<< ICE here:
    k = 0;
    #pragma omp simd _looptemp_(D.2617) _looptemp_(D.2618) linear(k:1)
linear(a:1)
    for (k = 0; k < 64; k = k + 1)
      a.0 = a;
      a.1 = (<unnamed-unsigned:12>) a.0;
      D.2611 = a.1 + 1;
      a = (<unnamed-signed:12>) D.2611;
      #pragma omp continue (k, k)
      if (k == 64) goto <D.2620>; else goto <D.2619>;
      <D.2620>:
      a = a;
      <D.2619>:

  reply	other threads:[~2022-08-01  9:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-31 20:23 [Bug middle-end/106492] New: ICE in #pragma omp for simd sandra at gcc dot gnu.org
2022-08-01  9:00 ` burnus at gcc dot gnu.org [this message]
2022-08-01 12:33 ` [Bug middle-end/106492] [OpenMP] ICE in #pragma omp for simd and bitfields burnus at gcc dot gnu.org
2022-08-04  7:36 ` burnus at gcc dot gnu.org
2022-08-09  5:58 ` cvs-commit at gcc dot gnu.org
2022-08-10 19:23 ` cvs-commit 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-106492-4-u9lMohowOn@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).