public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/100981] ICE in info_for_reduction, at tree-vect-loop.c:4897
Date: Wed, 09 Jun 2021 07:55:30 +0000	[thread overview]
Message-ID: <bug-100981-4-mytakaVgxL@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-100981-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Runtime testcase (not sure if sufficient ...).  Andre - can you verify it
passes runtime testing with the patch on HW that supports the complex mul?

complex function cdcdot(n, cx)
  implicit none

  integer :: n, i, kx
  complex :: cx(*)
  double precision :: dsdotr, dsdoti, dt1, dt3

  kx = 1
  do i = 1, n
     dt1 = real(cx(kx))
     dt3 = aimag(cx(kx))
     dsdotr = dsdotr + dt1 * 2 - dt3 * 2
     dsdoti = dsdoti + dt1 * 2 + dt3 * 2
     kx = kx + 1
  end do
  cdcdot = cmplx(real(dsdotr), real(dsdoti))
  return
end function cdcdot
program test
  implicit none
  complex :: cx(100), ct, cdcdot
  integer :: i
  do i = 1, 100
    cx(i) = cmplx(2*i, i)
  end do
  ct = cdcdot (100, cx)
  if (ct.ne.cmplx(10100.0000,30300.0000)) call abort
end

  parent reply	other threads:[~2021-06-09  7:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-09  3:26 [Bug target/100981] New: " asolokha at gmx dot com
2021-06-09  6:48 ` [Bug tree-optimization/100981] " rguenth at gcc dot gnu.org
2021-06-09  7:33 ` rguenth at gcc dot gnu.org
2021-06-09  7:34 ` rguenth at gcc dot gnu.org
2021-06-09  7:55 ` rguenth at gcc dot gnu.org [this message]
2021-06-09 12:34 ` avieira at gcc dot gnu.org
2021-06-09 14:23 ` avieira at gcc dot gnu.org
2021-06-09 14:35 ` cvs-commit at gcc dot gnu.org
2021-06-09 14:36 ` [Bug tree-optimization/100981] [11 Regression] " rguenth at gcc dot gnu.org
2021-06-10  7:32 ` cvs-commit at gcc dot gnu.org
2021-06-16 13:12 ` cvs-commit at gcc dot gnu.org
2021-06-16 13:13 ` 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-100981-4-mytakaVgxL@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).