x86 Clang has a bug that I reported back in 2013. It is confirmed, but they have never fixed it. What can I do to make them fix it?
The bug report is here: https://bugs.llvm.org/show_bug.cgi?id=17164
Description:
__m128 x; // vector of four float
__m128i y; // vector of four int
x = y; // does not convert int to float but preserves the bits
The intrinsic vector types such as __m128, __m128i, __m128d are silently bit-cast to each other which gives weird results. All other compilers treat these vector types as different types. There is no option that makes Clang compatible with other compilers for intrinsic vector types.
This is a big problem for the Vector class library ( https://www.agner.org/optimize/#vectorclass ). I don't know what to do to make them fix this bug. Please help.
x = ycopies the bits unchanged if it's going to not error. That's less surprising than an implicit_mm_cvtepi32_ps. That would be super-weird, and be ambiguous for__m128d(should it convert 2x double to 2x int64? Or should itcvtpd2dqand leave 2int32_tat the bottom of a vector?) Normally when I wish I could dox=ywithout cluttering my code with_mm_castsi128_ps, it's for usingshufpsormovhpson integer data, orpandon FP data, or similar.