public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/19858] New: ICE on simple SSE code (works in gcc 3.3) @ 2005-02-09 21:40 gcc-bugzilla at gcc dot gnu dot org 2005-02-10 0:20 ` [Bug middle-end/19858] [4.0 Regression] " pinskia at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: gcc-bugzilla at gcc dot gnu dot org @ 2005-02-09 21:40 UTC (permalink / raw) To: gcc-bugs The code below, when compiled by "gcc -O3 -msse", gives the following error (same code compiles fine in gcc 3.3.5): bug2.c: In function 'main': bug2.c:17: error: Invalid reference prefix. &fooD.1292; bug2.c:17: internal compiler error: verify_stmts failed. Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. Environment: System: Linux fftw.org 2.6.3-1-686-smp #2 SMP Tue Feb 24 20:29:08 EST 2004 i686 GNU/Linux Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ../configure --prefix=/home/stevenj/gcc4 How-To-Repeat: Compile the following code with 'gcc -O3 -msse -o bug2 bug2.c' typedef float V __attribute__ ((vector_size (16))); union fvec { float f[4]; V v; }; typedef unsigned int uintptr_t; #define ALIGNMENT 8 #define TAINT_BIT 1 #define PTRINT(p) ((uintptr_t)(p)) #define ALIGNED(p) \ (((PTRINT(p) % ALIGNMENT) == 0) && !(PTRINT(p) & TAINT_BIT)) const union fvec foo = {{-0.0, 0.0, -0.0, 0.0}}; int main(void) { return !ALIGNED(&foo); } -- Summary: ICE on simple SSE code (works in gcc 3.3) Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: stevenj at fftw dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19858 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/19858] [4.0 Regression] ICE on simple SSE code (works in gcc 3.3) 2005-02-09 21:40 [Bug c/19858] New: ICE on simple SSE code (works in gcc 3.3) gcc-bugzilla at gcc dot gnu dot org @ 2005-02-10 0:20 ` pinskia at gcc dot gnu dot org 2005-02-11 16:41 ` [Bug middle-end/19858] [4.0 Regression] ICE on simple SSE code jakub at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-02-10 0:20 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-09 19:35 ------- Confirmed, this is werid, what are the sematics of BIT_FIELD_REF. Here is the reduced testcase: union fvec { }; typedef __SIZE_TYPE__ uintptr_t; union fvec foo; int main(void) { return !(((((uintptr_t)(&foo)) & 3 ) == 0) && !(((uintptr_t)(&foo)) & 1)); } -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|c |middle-end Ever Confirmed| |1 Keywords| |ice-on-valid-code Last reconfirmed|0000-00-00 00:00:00 |2005-02-09 19:35:38 date| | Summary|ICE on simple SSE code |[4.0 Regression] ICE on |(works in gcc 3.3) |simple SSE code (works in | |gcc 3.3) Target Milestone|--- |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19858 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/19858] [4.0 Regression] ICE on simple SSE code 2005-02-09 21:40 [Bug c/19858] New: ICE on simple SSE code (works in gcc 3.3) gcc-bugzilla at gcc dot gnu dot org 2005-02-10 0:20 ` [Bug middle-end/19858] [4.0 Regression] " pinskia at gcc dot gnu dot org @ 2005-02-11 16:41 ` jakub at gcc dot gnu dot org 2005-02-12 1:36 ` cvs-commit at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu dot org @ 2005-02-11 16:41 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From jakub at gcc dot gnu dot org 2005-02-11 09:59 ------- Patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-02/msg00450.html> -- What |Removed |Added ---------------------------------------------------------------------------- Keywords|ssemmx |patch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19858 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/19858] [4.0 Regression] ICE on simple SSE code 2005-02-09 21:40 [Bug c/19858] New: ICE on simple SSE code (works in gcc 3.3) gcc-bugzilla at gcc dot gnu dot org 2005-02-10 0:20 ` [Bug middle-end/19858] [4.0 Regression] " pinskia at gcc dot gnu dot org 2005-02-11 16:41 ` [Bug middle-end/19858] [4.0 Regression] ICE on simple SSE code jakub at gcc dot gnu dot org @ 2005-02-12 1:36 ` cvs-commit at gcc dot gnu dot org 2005-02-12 4:00 ` pinskia at gcc dot gnu dot org 2005-02-16 18:18 ` jakub at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-02-12 1:36 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-02-11 21:08 ------- Subject: Bug 19858 CVSROOT: /cvs/gcc Module name: gcc Changes by: jakub@gcc.gnu.org 2005-02-11 21:08:44 Modified files: gcc : ChangeLog fold-const.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/gcc.c-torture/compile: 20050210-1.c Log message: PR middle-end/19858 * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize is number of inner's bits, avoid creating a BIT_FIELD_REF. * gcc.c-torture/compile/20050210-1.c: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7449&r2=2.7450 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&r1=1.504&r2=1.505 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5017&r2=1.5018 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/20050210-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19858 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/19858] [4.0 Regression] ICE on simple SSE code 2005-02-09 21:40 [Bug c/19858] New: ICE on simple SSE code (works in gcc 3.3) gcc-bugzilla at gcc dot gnu dot org ` (2 preceding siblings ...) 2005-02-12 1:36 ` cvs-commit at gcc dot gnu dot org @ 2005-02-12 4:00 ` pinskia at gcc dot gnu dot org 2005-02-16 18:18 ` jakub at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-02-12 4:00 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-11 21:16 ------- Fixed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19858 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/19858] [4.0 Regression] ICE on simple SSE code 2005-02-09 21:40 [Bug c/19858] New: ICE on simple SSE code (works in gcc 3.3) gcc-bugzilla at gcc dot gnu dot org ` (3 preceding siblings ...) 2005-02-12 4:00 ` pinskia at gcc dot gnu dot org @ 2005-02-16 18:18 ` jakub at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu dot org @ 2005-02-16 18:18 UTC (permalink / raw) To: gcc-bugs -- Bug 19858 depends on bug 19857, which changed state. Bug 19857 Summary: [4.0 Regression] alignment check of SSE constant fails in simple test program http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19857 What |Old Value |New Value ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19858 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-02-16 13:58 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-02-09 21:40 [Bug c/19858] New: ICE on simple SSE code (works in gcc 3.3) gcc-bugzilla at gcc dot gnu dot org 2005-02-10 0:20 ` [Bug middle-end/19858] [4.0 Regression] " pinskia at gcc dot gnu dot org 2005-02-11 16:41 ` [Bug middle-end/19858] [4.0 Regression] ICE on simple SSE code jakub at gcc dot gnu dot org 2005-02-12 1:36 ` cvs-commit at gcc dot gnu dot org 2005-02-12 4:00 ` pinskia at gcc dot gnu dot org 2005-02-16 18:18 ` jakub 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).