Status: Accepted
Owner: jz...@
google.comLabels: Type-Defect Priority-Medium
New issue 499 by jz...@
google.com: [x86] lossless asm/C mismatch w/gcc 8-10, clang 11
https://bugs.chromium.org/p/webp/issues/detail?id=499v1.1.0-69-g289757fe
There are two visible issues, but they may have the same root cause:
1) a mismatch in x86 between the default & -noasm
1a) gcc: with -O0
1b) clang: with -O2
2) a mismatch between x86 and x86-64
2a) gcc: with -O2
2b) clang: with -O2
Versions tested:
# Only (2) applies
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
# Both (1) & (2) apply
gcc (Debian 8.3.0-6) 8.3.0
i686-linux-gnu-gcc-8 (Debian 8.4.0-1) 8.4.0
i686-linux-gnu-gcc-9 (Debian 9.3.0-18) 9.3.0
i686-linux-gnu-gcc-10 (Debian 10.2.0-9) 10.2.0
Debian clang version 11.0.0-5+build1
# or CC='gcc -m32', CC='clang -m32'
$ ../libwebp/configure --host i686-linux-gnu --build x86_64-pc-linux-gnu \
--disable-shared CC='i686-linux-gnu-gcc-8' CFLAGS='-g -O0'
$ ./examples/cwebp -noasm -lossless -q 0 -m 4 ../libwebp-test-data/test.webp \
-o - 2>/dev/null | md5sum \
&& ./examples/cwebp -lossless -q 0 -m 4 ../libwebp-test-data/test.webp \
-o - 2>/dev/null | md5sum
7465351e9a838a245c6e79cfb602f3f4 -
382b2625417c6376480e2b3f16365154 -
# 32-bit -O2, all gcc
355342de0f46c8a4440f8e7b8d4e48bf -
355342de0f46c8a4440f8e7b8d4e48bf -
# 32-bit -O2, clang
355342de0f46c8a4440f8e7b8d4e48bf -
2e0d6693c495280d0a8b639b5531b144 -
# -O0 & -O2 x86-64
7465351e9a838a245c6e79cfb602f3f4 -
7465351e9a838a245c6e79cfb602f3f4 -
I tested some decodes, the bitstream was always lossless.
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings