* [Bug c++/45400] XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization
2010-08-24 18:29 [Bug c++/45400] New: XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization Zeqadious at gmail dot com
@ 2010-08-24 18:42 ` Zeqadious at gmail dot com
2010-08-24 18:56 ` jakub at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Zeqadious at gmail dot com @ 2010-08-24 18:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from Zeqadious at gmail dot com 2010-08-24 18:42 -------
the preprocessed file was too big to attach so here is a link to its location:
ftp://nauseamedialis.org/zeqadious/GCC_Bug/AEConvert.prep
I don't know C, or C++, so lets hope this is enough information for helping
track this bug down.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45400
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/45400] XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization
2010-08-24 18:29 [Bug c++/45400] New: XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization Zeqadious at gmail dot com
2010-08-24 18:42 ` [Bug c++/45400] " Zeqadious at gmail dot com
@ 2010-08-24 18:56 ` jakub at gcc dot gnu dot org
2010-08-24 19:57 ` jakub at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-08-24 18:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2010-08-24 18:56 -------
#0 fancy_abort (file=0xf0ff20 "../../gcc/explow.c", line=56, function=0xf101e0
"trunc_int_for_mode") at ../../gcc/diagnostic.c:763
#1 0x00000000006c4c17 in trunc_int_for_mode (c=255, mode=V4HImode) at
../../gcc/explow.c:56
#2 0x00000000006b1ff0 in gen_int_mode (c=255, mode=V4HImode) at
../../gcc/emit-rtl.c:459
#3 0x0000000000d9c3c8 in simplify_and_const_int (x=0x0, mode=V4HImode,
varop=0x7fffee342060, constop=255) at ../../gcc/combine.c:8989
#4 0x0000000000d9e82d in simplify_shift_const_1 (code=LSHIFTRT,
result_mode=SImode, varop=0x7fffee325020, orig_count=24)
at ../../gcc/combine.c:10024
#5 0x0000000000d9e9e7 in simplify_shift_const (x=0x0, code=LSHIFTRT,
result_mode=SImode, varop=0x7fffee342048, count=24)
at ../../gcc/combine.c:10073
#6 0x0000000000d95ade in expand_compound_operation (x=0x7fffee33d3e0) at
../../gcc/combine.c:6468
#7 0x0000000000d92ae7 in combine_simplify_rtx (x=0x7fffee33d3e0,
op0_mode=DImode, in_dest=0) at ../../gcc/combine.c:5486
debug_rtx (0x7fffee33d3e0)
(zero_extract:SI (subreg:DI (reg:V4HI 264) 0)
(const_int 8 [0x8])
(const_int 8 [0x8]))
Doesn't ICE on the trunk (though, could be latent there). Trying to distill
smaller testcase...
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-08-24 18:56:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45400
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/45400] XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization
2010-08-24 18:29 [Bug c++/45400] New: XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization Zeqadious at gmail dot com
2010-08-24 18:42 ` [Bug c++/45400] " Zeqadious at gmail dot com
2010-08-24 18:56 ` jakub at gcc dot gnu dot org
@ 2010-08-24 19:57 ` jakub at gcc dot gnu dot org
2010-08-24 21:13 ` jakub at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-08-24 19:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2010-08-24 19:57 -------
Reduced testcase:
typedef int __m64 __attribute__ ((__vector_size__ (8), __may_alias__));
typedef int __v2si __attribute__ ((__vector_size__ (8)));
typedef float __v4sf __attribute__ ((__vector_size__ (16)));
static __inline__ unsigned short bar (unsigned short x)
{
return ((x << 8) | (x >> 8));
}
unsigned int
foo (float *x, short *y)
{
__v4sf b = (__v4sf){ 32767.5f, 32767.5f, 32767.5f, 32767.5f };
__v4sf c = __builtin_ia32_mulps (*(__v4sf *) x, b);
__v4sf d = __builtin_ia32_movhlps (c, c);
__v2si e = __builtin_ia32_cvtps2pi (c);
__v2si f = __builtin_ia32_cvtps2pi (d);
__m64 g = (__m64) __builtin_ia32_packssdw (e, f);
__builtin_memcpy (y, &g, sizeof (short) * 4);
y[0] = bar (y[0]);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45400
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/45400] XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization
2010-08-24 18:29 [Bug c++/45400] New: XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization Zeqadious at gmail dot com
` (2 preceding siblings ...)
2010-08-24 19:57 ` jakub at gcc dot gnu dot org
@ 2010-08-24 21:13 ` jakub at gcc dot gnu dot org
2010-08-24 22:59 ` hjl dot tools at gmail dot com
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-08-24 21:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2010-08-24 21:12 -------
On the trunk r163189 "fixes" this, so I guess it just went latent.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2010-08-24 18:56:25 |2010-08-24 21:12:52
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45400
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/45400] XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization
2010-08-24 18:29 [Bug c++/45400] New: XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization Zeqadious at gmail dot com
` (3 preceding siblings ...)
2010-08-24 21:13 ` jakub at gcc dot gnu dot org
@ 2010-08-24 22:59 ` hjl dot tools at gmail dot com
2010-08-25 9:29 ` [Bug rtl-optimization/45400] " jakub at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-08-24 22:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hjl dot tools at gmail dot com 2010-08-24 22:58 -------
It is caused by revision 149780:
http://gcc.gnu.org/ml/gcc-cvs/2009-07/msg00662.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nemet at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45400
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/45400] XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization
2010-08-24 18:29 [Bug c++/45400] New: XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization Zeqadious at gmail dot com
` (4 preceding siblings ...)
2010-08-24 22:59 ` hjl dot tools at gmail dot com
@ 2010-08-25 9:29 ` jakub at gcc dot gnu dot org
2010-08-25 17:50 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-08-25 9:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2010-08-25 09:29 -------
Created an attachment (id=21559)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21559&action=view)
gcc46-pr45400.patch
Untested fix.
I think it is already wrong to go through SUBREG that is changing mode class,
already before hitting Adam's code the routine happily optimizes a normal
integer shift with a vector shift of the other direction into AND mask.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45400
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/45400] XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization
2010-08-24 18:29 [Bug c++/45400] New: XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization Zeqadious at gmail dot com
` (5 preceding siblings ...)
2010-08-25 9:29 ` [Bug rtl-optimization/45400] " jakub at gcc dot gnu dot org
@ 2010-08-25 17:50 ` jakub at gcc dot gnu dot org
2010-08-25 21:24 ` jakub at gcc dot gnu dot org
2010-08-25 21:27 ` jakub at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-08-25 17:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jakub at gcc dot gnu dot org 2010-08-25 17:49 -------
Subject: Bug 45400
Author: jakub
Date: Wed Aug 25 17:49:26 2010
New Revision: 163551
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163551
Log:
PR rtl-optimization/45400
* combine.c (simplify_shift_const_1) <case SUBREG>: Only use
SUBREG_REG if both modes are of MODE_INT class.
* g++.dg/other/i386-8.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/other/i386-8.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/combine.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45400
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/45400] XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization
2010-08-24 18:29 [Bug c++/45400] New: XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization Zeqadious at gmail dot com
` (6 preceding siblings ...)
2010-08-25 17:50 ` jakub at gcc dot gnu dot org
@ 2010-08-25 21:24 ` jakub at gcc dot gnu dot org
2010-08-25 21:27 ` jakub at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-08-25 21:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jakub at gcc dot gnu dot org 2010-08-25 21:24 -------
Subject: Bug 45400
Author: jakub
Date: Wed Aug 25 21:23:57 2010
New Revision: 163554
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163554
Log:
PR rtl-optimization/45400
* combine.c (simplify_shift_const_1) <case SUBREG>: Only use
SUBREG_REG if both modes are of MODE_INT class.
* g++.dg/other/i386-8.C: New test.
Added:
branches/gcc-4_5-branch/gcc/testsuite/g++.dg/other/i386-8.C
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/combine.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45400
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/45400] XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization
2010-08-24 18:29 [Bug c++/45400] New: XBMC AudioEngine Compilation C++ Internal Compiler Error /w Optimization Zeqadious at gmail dot com
` (7 preceding siblings ...)
2010-08-25 21:24 ` jakub at gcc dot gnu dot org
@ 2010-08-25 21:27 ` jakub at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-08-25 21:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jakub at gcc dot gnu dot org 2010-08-25 21:27 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45400
^ permalink raw reply [flat|nested] 10+ messages in thread