This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/38927] New: _mm_set_epi32 does not set the third argument if the fourth argument is a constant.
- From: "toojays at toojays dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2009 04:51:53 -0000
- Subject: [Bug c/38927] New: _mm_set_epi32 does not set the third argument if the fourth argument is a constant.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This bug appears in all of the gcc 4.0.x series, but does not occur in the
4.1.x series.
If you create an __m128i vector using _mm_set_epi32(a, b, c, K),
where a, b and c are variables, and K is a compile-time constant,
the resulting vector has zeros where the value of c should be.
This problem only occurs when optimisation is enabled.
--
Summary: _mm_set_epi32 does not set the third argument if the
fourth argument is a constant.
Product: gcc
Version: 4.0.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: toojays at toojays dot net
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38927