public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/39241]  New: [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104
Date: Thu, 19 Feb 2009 12:40:00 -0000	[thread overview]
Message-ID: <bug-39241-10053@http.gcc.gnu.org/bugzilla/> (raw)

ICEs with -O[123s], likely due to the VIEW_CONVERT_EXPR we construct from
*((int*)&f) after inlining.

struct FTprocCompressor {
    float * _amp;
    float * _env;
    float * _as;
};
static inline int f_round(float f)
{
  return *((int*)&f) - 0x4b400000;
}
void process (struct FTprocCompressor *_this, float *attack, float *release,
              float *data, unsigned int fftn)
{
  float ga;
  float gr;
  float att, rel;
  int fftN2 = (fftn+1) >> 1;
  int i;
  for (i = 0; i < fftN2-1; i++)
    {
      att =
((attack[i])<(0.002f)?(0.002f):((attack[i])>(1.0f)?(1.0f):(attack[i])));
      rel =
((release[i])<(att)?(att):((release[i])>(1.0f)?(1.0f):(release[i])));
      ga = _this->_as[f_round(att * (float)(256 -1))];
      gr = _this->_as[f_round(rel * (float)(256 -1))];
      if (_this->_amp[i] > _this->_env[i])
        {
          _this->_env[i] = _this->_env[i] * ga + _this->_amp[i] * (1.0f - ga);
          _this->_env[i] = _this->_env[i] * gr + _this->_amp[i] * (1.0f - gr);
        }
    }
}


-- 
           Summary: [4.4 Regression] ICE in subreg_get_info, at
                    rtlanal.c:3104
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org
GCC target triplet: i?86-*-*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39241


             reply	other threads:[~2009-02-19 12:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-19 12:40 rguenth at gcc dot gnu dot org [this message]
2009-02-19 12:41 ` [Bug target/39241] " rguenth at gcc dot gnu dot org
2009-02-19 13:17 ` jakub at gcc dot gnu dot org
2009-02-19 15:44 ` hjl dot tools at gmail dot com
2009-02-20  1:21 ` [Bug rtl-optimization/39241] " hjl dot tools at gmail dot com
2009-02-20  1:58 ` hjl dot tools at gmail dot com
2009-02-20 17:15 ` hjl dot tools at gmail dot com
2009-02-21 13:08 ` rguenth at gcc dot gnu dot org
2009-02-25 15:52 ` hjl dot tools at gmail dot com
2009-02-25 18:49 ` hjl at gcc dot gnu dot org
2009-02-25 18:55 ` hjl at gcc dot gnu dot org
2009-02-25 18:55 ` hjl dot tools at gmail dot com

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-39241-10053@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).