Bug 13190 - SSE instructions fails
Summary: SSE instructions fails
Status: RESOLVED DUPLICATE of bug 10395
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.3.1
: P2 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-25 21:08 UTC by Søren Christiansen
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host: i868-pc-mingw32
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Søren Christiansen 2003-11-25 21:08:59 UTC
following test program receives SIGILL invalid instruction running on P4 
2.8ghz supporting mmx/sse/sse2 (checked with cpuid) 
while perfoming _mem_set_ps. _mm_add_ps and mul and sub works fine as long as 
I dont write __m128 values back!?

typedef union
 {
   __m128 m  __attribute__ ((aligned(8)));
   float f[4] __attribute__ ((aligned(8)));
 } munion;


int main(int argc, char *argv[])
{
  munion m1;
  m1.m = _mm_set_ps (1.0f, 4.0f, 3.0f, 8.0f);
}

I've tried with or without the user alignment statements.
Is this a duplicate of some already resolved bugs? please let me known
Comment 1 Andrew Pinski 2003-11-25 21:21:03 UTC
This is a dup of bug 10395, which is caused by using mmx/sse/sse instructions in main (while the 
stack frame is not aligned correctly)  the work around is not to use the instructions in main.

*** This bug has been marked as a duplicate of 10395 ***