Closed GoogleCodeExporter closed 8 years ago
Build 32 bit on Mac, which uses fpic
tools/clang/scripts/update.sh
GYP_DEFINES='clang=1 target_arch=ia32' ./gyp_libyuv -f ninja --depth=.
libyuv_test.gyp
ninja -j10 -C out/Debug
ninja -j10 -C out/Release
using "m" instead produces
../../source/row_posix.cc:1702:6: error: ambiguous instructions require an
explicit suffix (could be 'subb', 'subw', 'subl', or 'subq')
"sub $0x8,%[width] \n"
^
Original comment by fbarch...@google.com
on 30 Dec 2014 at 6:53
64 bit generates this for shufflers:
_I422ToRGB24Row_SSSE3:
0000000000001020 pushq %rbp
0000000000001021 movq %rsp, %rbp
0000000000001024 movl %r8d, -0x4(%rbp)
0000000000001028 leaq __ZN6libyuv13kYuvConstantsE(%rip), %rax
000000000000102f movdqa __ZN6libyuv25kShuffleMaskARGBToRGB24_0E(%rip), %xmm5
0000000000001037 movdqa __ZN6libyuv23kShuffleMaskARGBToRGB24E(%rip), %xmm6
while this is the 32 bit version
_I422ToRGB24Row_SSSE3:
000011b0 pushl %ebp
000011b1 movl %esp, %ebp
000011b3 pushl %ebx
000011b4 pushl %edi
000011b5 pushl %esi
000011b6 pushl %eax
000011b7 calll 0x11bc
000011bc popl %eax
000011bd movl 0x8(%ebp), %ecx
000011c0 movl 0xc(%ebp), %edx
000011c3 movl 0x10(%ebp), %esi
000011c6 movl 0x14(%ebp), %edi
000011c9 movl 0x18(%ebp), %ebx
000011cc movl %ebx, -0x10(%ebp)
000011cf leal __ZN6libyuv13kYuvConstantsE-4540(%eax), %ebx
000011d5 movdqa __ZN6libyuv25kShuffleMaskARGBToRGB24_0E-4540(%eax), %xmm5
000011dd movdqa __ZN6libyuv23kShuffleMaskARGBToRGB24E-4540(%eax), %xmm6
Original comment by fbarch...@google.com
on 30 Dec 2014 at 10:42
Work around in place, marking as fixed but with todo.
Original comment by fbarch...@google.com
on 5 Jan 2015 at 6:36
Original issue reported on code.google.com by
fbarch...@google.com
on 30 Dec 2014 at 4:11