This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15795] Strange bug / incorrect code generation with SSE
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2004 14:50:53 -0000
- Subject: [Bug c++/15795] Strange bug / incorrect code generation with SSE
- References: <20040603143635.15795.ma1flfs@bath.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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