This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/17113] [3.4 Regression] ICE with SSE2 intrinsics


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-08-20 12:43 -------
The failure has nothing to do with GCSE, here's a short example to
demonstrate this. Just compile with "gcc -msse2 -O" to see the crash :-(

=======================================================
typedef int __v4si  __attribute__ ((mode (V4SI)));
typedef int __v16qi __attribute__ ((mode (V16QI)));

void foo(int* p)
{
    int i;

    for ( i=0; i<2; ++i )
    {
        __v16qi v0, v1=(__v16qi)__builtin_ia32_setzero128();
        v0 = __builtin_ia32_punpckhbw128(v0, v1);
        __builtin_ia32_stored (p, (__v4si)v0);
    }
}
=======================================================

The bug was fixed on mainline by Paolo Bonzini's patch
http://gcc.gnu.org/ml/gcc-cvs/2004-07/msg00949.html

It should probably be applied to the 3.4 branch as well,
although I did not try that yet.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bonzini at gcc dot gnu dot
                   |                            |org, mark at codesourcery
                   |                            |dot com, reichelt at gcc dot
                   |                            |gnu dot org
           Keywords|                            |monitored
            Summary|[3.4 Regression] GCSE breaks|[3.4 Regression] ICE with
                   |SSE2 intrinsics             |SSE2 intrinsics


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]