This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/32661] __builtin_ia32_vec_ext suboptimal for pointer/ref args



------- Comment #3 from scovich at gmail dot com  2007-07-11 15:10 -------
This bug also causes _mm_cvtsi128_si64x() (which calls
__builtin_ia32_vec_ext_v2di) to emit suboptimal code.

// g++-4.3-070710 -mtune=core2 -O3 -S -dp
#include <emmintrin.h>
long vector2long(__m128i* src) { return _mm_cvtsi128_si64x(*src); }

Becomes

_Z11vector2longPU8__vectorx:
.LFB529:
        movdqa  (%rdi), %xmm0   # 6     *movv2di_internal/2     [length = 3]
        movd    %xmm0, %rax     # 25    *movdi_1_rex64/14       [length = 4]
        ret     # 28    return_internal [length = 1]

This might be related to bug 32708 (and therefore have a similar fix?)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32661


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]