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 c++/15795] Strange bug / incorrect code generation with SSE


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-03 14:50 -------
Not a gcc bug as I can reproduce it withe the following code which is the same as the code you gave, 
aka new just calls malloc:

#include <xmmintrin.h>
#include <stdio.h>
#include <stdlib.h>
void __attribute__((noinline)) temp()
{
        __m128 * foo = (__m128 * )malloc (200*200*sizeof(__m128));
        for(int i = 0 ;i <200*200;i++)
         *foo = _mm_setzero_ps();
        free (foo);
}

int main(int argc, char **argv)
{
temp();
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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