public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/40446]  New: [4.4/4.5 Regression] ICE in gen_lowpart_general
@ 2009-06-15 13:35 jakub at gcc dot gnu dot org
  2009-06-15 13:59 ` [Bug middle-end/40446] " rguenth at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-06-15 13:35 UTC (permalink / raw)
  To: gcc-bugs

#include <emmintrin.h>
#include <complex>
#include <cstdlib>

int
main ()
{
  union { __m128d vec; double val[2]; } u;
  std::complex<double> c = std::complex<double>(0, 1);
  u.vec = _mm_load_pd ((double*)&c);
  if (u.val[0] != 0 || u.val[1] != 1)
    abort ();
}

ICEs with -O1 and above in g++ 4.4 and above.  More reduced testcase:
struct S
{
  S (double r, double i) { __real__ s = r; __imag__ s = i; }
  __complex__ double s;
};

double __attribute__((vector_size (16)))
foo ()
{
  S c (0, 1);
  return *(double __attribute__((vector_size (16))) *) &c;
}


-- 
           Summary: [4.4/4.5 Regression] ICE in gen_lowpart_general
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: x86_64-linux


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/40446] [4.4/4.5 Regression] ICE in gen_lowpart_general
  2009-06-15 13:35 [Bug middle-end/40446] New: [4.4/4.5 Regression] ICE in gen_lowpart_general jakub at gcc dot gnu dot org
@ 2009-06-15 13:59 ` rguenth at gcc dot gnu dot org
  2009-06-15 14:35 ` jakub at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-06-15 13:59 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.1


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/40446] [4.4/4.5 Regression] ICE in gen_lowpart_general
  2009-06-15 13:35 [Bug middle-end/40446] New: [4.4/4.5 Regression] ICE in gen_lowpart_general jakub at gcc dot gnu dot org
  2009-06-15 13:59 ` [Bug middle-end/40446] " rguenth at gcc dot gnu dot org
@ 2009-06-15 14:35 ` jakub at gcc dot gnu dot org
  2009-06-15 14:55 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-06-15 14:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2009-06-15 14:35 -------
Caused by
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134947


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/40446] [4.4/4.5 Regression] ICE in gen_lowpart_general
  2009-06-15 13:35 [Bug middle-end/40446] New: [4.4/4.5 Regression] ICE in gen_lowpart_general jakub at gcc dot gnu dot org
  2009-06-15 13:59 ` [Bug middle-end/40446] " rguenth at gcc dot gnu dot org
  2009-06-15 14:35 ` jakub at gcc dot gnu dot org
@ 2009-06-15 14:55 ` pinskia at gcc dot gnu dot org
  2009-06-16  9:08 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-06-15 14:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-06-15 14:55 -------
(In reply to comment #1)
> Caused by
> http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134947

In this case, exposed as VIEW_CONVERT_EXPR was not widely used before so there
will be some bugs that we did not hit until that patch :).


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/40446] [4.4/4.5 Regression] ICE in gen_lowpart_general
  2009-06-15 13:35 [Bug middle-end/40446] New: [4.4/4.5 Regression] ICE in gen_lowpart_general jakub at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-06-15 14:55 ` pinskia at gcc dot gnu dot org
@ 2009-06-16  9:08 ` jakub at gcc dot gnu dot org
  2009-06-16 13:48 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-06-16  9:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2009-06-16 09:07 -------
Testing a patch.


-- 

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|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-06-16 09:07:48
               date|                            |


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/40446] [4.4/4.5 Regression] ICE in gen_lowpart_general
  2009-06-15 13:35 [Bug middle-end/40446] New: [4.4/4.5 Regression] ICE in gen_lowpart_general jakub at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-06-16  9:08 ` jakub at gcc dot gnu dot org
@ 2009-06-16 13:48 ` jakub at gcc dot gnu dot org
  2009-06-16 14:29 ` jakub at gcc dot gnu dot org
  2009-06-16 14:30 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-06-16 13:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2009-06-16 13:48 -------
Subject: Bug 40446

Author: jakub
Date: Tue Jun 16 13:48:07 2009
New Revision: 148533

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148533
Log:
        PR middle-end/40446
        * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
        use gen_lowpart if op0 has complex mode.

        * g++.dg/other/pr40446.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/other/pr40446.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/expr.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/40446] [4.4/4.5 Regression] ICE in gen_lowpart_general
  2009-06-15 13:35 [Bug middle-end/40446] New: [4.4/4.5 Regression] ICE in gen_lowpart_general jakub at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-06-16 13:48 ` jakub at gcc dot gnu dot org
@ 2009-06-16 14:29 ` jakub at gcc dot gnu dot org
  2009-06-16 14:30 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-06-16 14:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2009-06-16 14:29 -------
Subject: Bug 40446

Author: jakub
Date: Tue Jun 16 14:28:47 2009
New Revision: 148536

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148536
Log:
        PR middle-end/40446
        * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
        use gen_lowpart if op0 has complex mode.

        * g++.dg/other/pr40446.C: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/other/pr40446.C
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/expr.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/40446] [4.4/4.5 Regression] ICE in gen_lowpart_general
  2009-06-15 13:35 [Bug middle-end/40446] New: [4.4/4.5 Regression] ICE in gen_lowpart_general jakub at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-06-16 14:29 ` jakub at gcc dot gnu dot org
@ 2009-06-16 14:30 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-06-16 14:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2009-06-16 14:30 -------
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=40446


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-06-16 14:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-15 13:35 [Bug middle-end/40446] New: [4.4/4.5 Regression] ICE in gen_lowpart_general jakub at gcc dot gnu dot org
2009-06-15 13:59 ` [Bug middle-end/40446] " rguenth at gcc dot gnu dot org
2009-06-15 14:35 ` jakub at gcc dot gnu dot org
2009-06-15 14:55 ` pinskia at gcc dot gnu dot org
2009-06-16  9:08 ` jakub at gcc dot gnu dot org
2009-06-16 13:48 ` jakub at gcc dot gnu dot org
2009-06-16 14:29 ` jakub at gcc dot gnu dot org
2009-06-16 14:30 ` 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).