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

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).