Closed GoogleCodeExporter closed 9 years ago
It seems compiler bug because cannot compile the following code on Mac:
#include <mmintrin.h>
#include <emmintrin.h>
__m64 add(__m64 a, __m64 b) {
return _mm_add_pi16(a, b);
}
__m128i add(__m128i a, __m128i b) {
return _mm_add_epi16(a, b);
}
void main()
{
__m64 c = add(_mm_set1_pi16(1), _mm_set1_pi16(2));
__m128i d = add(_mm_set1_epi16(1), _mm_set1_epi16(2));
}
/var/folders/p2/p2yA31fKHeuNjlgjLPNIkk+++TI/-Tmp-//cc8XKpHE.s:22:FATAL:Symbol
__Z3addU8__vectorxS_ already defined.
The mangle name of __m64 should be U8__vectori but this compiler outputs
U8__vectorx.
U8__vectorx is the mangle name of __m128i.
Original comment by aki.yamasaki
on 7 Apr 2010 at 11:24
There is no way to fix this problem. I fixed to avoid the test of __m64 on Mac
OS X.
Original comment by aki.yamasaki
on 9 Apr 2010 at 9:08
Original issue reported on code.google.com by
syoyofuj...@gmail.com
on 4 Apr 2010 at 3:13