[Bug rtl-optimization/29881] union causes inefficient code

2006-11-18 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-11-18 11:17 --- (In reply to comment #2) > Thanks for the hint! Assembly looks ok right now - didn't expect that this > kind > of casting would work (it doesn't in msvc compilers). Anyway it would be nice > if the compiler would de

[Bug rtl-optimization/29881] union causes inefficient code

2006-11-18 Thread spd at poczta dot fm
--- Comment #2 from spd at poczta dot fm 2006-11-18 10:25 --- (In reply to comment #1) > The problem here I think is unions. > > Here is how I would have written this code (without using unions in fact): > > void array_sample_fun(__m128 *dst, const __m128 *src, int length) { >

[Bug rtl-optimization/29881] union causes inefficient code

2006-11-17 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-11-18 00:14 --- The problem here I think is unions. Here is how I would have written this code (without using unions in fact): void array_sample_fun(__m128 *dst, const __m128 *src, int length) { __m128 af = _mm_set1_ps(1.