public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/39241] New: [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104
@ 2009-02-19 12:40 rguenth at gcc dot gnu dot org
2009-02-19 12:41 ` [Bug target/39241] " rguenth at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-02-19 12:40 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/39241] [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104
2009-02-19 12:40 [Bug target/39241] New: [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104 rguenth at gcc dot gnu dot org
@ 2009-02-19 12:41 ` rguenth at gcc dot gnu dot org
2009-02-19 13:17 ` jakub at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-02-19 12:41 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/39241] [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104
2009-02-19 12:40 [Bug target/39241] New: [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104 rguenth at gcc dot gnu dot org
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
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-02-19 13:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jakub at gcc dot gnu dot org 2009-02-19 13:16 -------
Reduced testcase:
static inline int
foo (float f)
{
return *((int *) &f) - 1;
}
float
bar (float x, float y, float *z)
{
float c = y < 0.002f ? 0.002f : y;
float d = x < c ? c : x;
return z[foo (c)] + z[foo (d * 255.0f)];
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/39241] [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104
2009-02-19 12:40 [Bug target/39241] New: [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104 rguenth at gcc dot gnu dot org
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
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-19 15:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from hjl dot tools at gmail dot com 2009-02-19 15:44 -------
It is caused by revision 138804:
http://gcc.gnu.org/ml/gcc-cvs/2008-08/msg00363.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jsm28 at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-02-19 15:44:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/39241] [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104
2009-02-19 12:40 [Bug target/39241] New: [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104 rguenth at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-02-19 15:44 ` hjl dot tools at gmail dot com
@ 2009-02-20 1:21 ` hjl dot tools at gmail dot com
2009-02-20 1:58 ` hjl dot tools at gmail dot com
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-20 1:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from hjl dot tools at gmail dot com 2009-02-20 01:21 -------
A patch is posted at
http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00937.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2009-
| |02/msg00937.html
Component|target |rtl-optimization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/39241] [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104
2009-02-19 12:40 [Bug target/39241] New: [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104 rguenth at gcc dot gnu dot org
` (3 preceding siblings ...)
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
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-20 1:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from hjl dot tools at gmail dot com 2009-02-20 01:58 -------
The updated patch is at
http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00939.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
URL|http://gcc.gnu.org/ml/gcc- |http://gcc.gnu.org/ml/gcc-
|patches/2009- |patches/2009-
|02/msg00937.html |02/msg00939.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/39241] [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104
2009-02-19 12:40 [Bug target/39241] New: [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104 rguenth at gcc dot gnu dot org
` (4 preceding siblings ...)
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
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-20 17:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hjl dot tools at gmail dot com 2009-02-20 17:14 -------
A new patch is at
http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00961.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
URL|http://gcc.gnu.org/ml/gcc- |http://gcc.gnu.org/ml/gcc-
|patches/2009- |patches/2009-
|02/msg00939.html |02/msg00961.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/39241] [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104
2009-02-19 12:40 [Bug target/39241] New: [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104 rguenth at gcc dot gnu dot org
` (5 preceding siblings ...)
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
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-02-21 13:08 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/39241] [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104
2009-02-19 12:40 [Bug target/39241] New: [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104 rguenth at gcc dot gnu dot org
` (6 preceding siblings ...)
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
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-25 15:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from hjl dot tools at gmail dot com 2009-02-25 15:52 -------
An updated patch is at
http://gcc.gnu.org/ml/gcc-patches/2009-02/msg01171.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
URL|http://gcc.gnu.org/ml/gcc- |http://gcc.gnu.org/ml/gcc-
|patches/2009- |patches/2009-
|02/msg00961.html |02/msg01171.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/39241] [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104
2009-02-19 12:40 [Bug target/39241] New: [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104 rguenth at gcc dot gnu dot org
` (7 preceding siblings ...)
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 dot tools at gmail dot com
2009-02-25 18:55 ` hjl at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-02-25 18:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from hjl at gcc dot gnu dot org 2009-02-25 18:49 -------
Subject: Bug 39241
Author: hjl
Date: Wed Feb 25 18:49:28 2009
New Revision: 144430
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144430
Log:
gcc/
2008-02-25 H.J. Lu <hongjiu.lu@intel.com>
PR rtl-optimization/39241
* jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
to subreg_offset_representable_p.
gcc/testsuite/
2008-02-25 H.J. Lu <hongjiu.lu@intel.com>
PR rtl-optimization/39241
* gcc.dg/torture/pr39241.c: New.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr39241.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/jump.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/39241] [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104
2009-02-19 12:40 [Bug target/39241] New: [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104 rguenth at gcc dot gnu dot org
` (8 preceding siblings ...)
2009-02-25 18:49 ` hjl at gcc dot gnu dot org
@ 2009-02-25 18:55 ` hjl dot tools at gmail dot com
2009-02-25 18:55 ` hjl at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-25 18:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from hjl dot tools at gmail dot com 2009-02-25 18:55 -------
Fixed.
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/39241] [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104
2009-02-19 12:40 [Bug target/39241] New: [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104 rguenth at gcc dot gnu dot org
` (9 preceding siblings ...)
2009-02-25 18:55 ` hjl dot tools at gmail dot com
@ 2009-02-25 18:55 ` hjl at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-02-25 18:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from hjl at gcc dot gnu dot org 2009-02-25 18:55 -------
Subject: Bug 39241
Author: hjl
Date: Wed Feb 25 18:55:14 2009
New Revision: 144431
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144431
Log:
2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline:
2008-02-25 H.J. Lu <hongjiu.lu@intel.com>
PR rtl-optimization/39241
* gcc.dg/torture/pr39241.c: New.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/torture/pr39241.c
- copied unchanged from r144430,
trunk/gcc/testsuite/gcc.dg/torture/pr39241.c
Modified:
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39241
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-02-25 18:55 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-19 12:40 [Bug target/39241] New: [4.4 Regression] ICE in subreg_get_info, at rtlanal.c:3104 rguenth at gcc dot gnu dot org
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 dot tools at gmail dot com
2009-02-25 18:55 ` hjl at gcc dot gnu dot 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).