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
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 ***