------- Comment #1 from toojays at toojays dot net 2009-01-21 04:53 ------- Created an attachment (id=17157) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17157&action=view) Test case which shows fault with _mm_set_epi32 in gcc 4.0.x.
Simple testcase to show the problem with _mm_set_epi32(a, b, c, 0xFFFFFFFF). With GCC 4.1.0: jsc...@gypsum:/local/jscott$ touch test.c && make CFLAGS="-march=pentium4 -O2" CC=/local/jscott/install-gcc-4.1.0/bin/gcc test && ./test /local/jscott/install-gcc-4.1.0/bin/gcc -march=pentium4 -O2 test.c -o test Vector content is 0xFFFFFFFFCCCCCCCCBBBBBBBBAAAAAAAA. Should be 0xFFFFFFFFCCCCCCCCBBBBBBBBAAAAAAAA. But with GCC 4.0.4: jsc...@gypsum:/local/jscott$ touch test.c && make CFLAGS="-march=pentium4 -O2" CC=/local/jscott/install-gcc-4.0.4/bin/gcc test && ./test /local/jscott/install-gcc-4.0.4/bin/gcc -march=pentium4 -O2 test.c -o test Vector content is 0xFFFFFFFF00000000BBBBBBBBAAAAAAAA. Should be 0xFFFFFFFFCCCCCCCCBBBBBBBBAAAAAAAA. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38927