This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/32661] __builtin_ia32_vec_ext suboptimal for pointer/ref args
- From: "scovich at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jul 2007 15:10:08 -0000
- Subject: [Bug target/32661] __builtin_ia32_vec_ext suboptimal for pointer/ref args
- References: <bug-32661-14600@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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