]>
git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Do not allow pointer conversion for CMPccXADD intrin under -O0
The pointer conversion to wider type under macro would not consider
whether the higher bit is cleaned or not. It will lead to unexpected
cmp result.
After this change, it will throw an incompatible pointer type error just
like -O2 does currently.
gcc/ChangeLog:
* config/i386/cmpccxaddintrin.h (_cmpccxadd_epi32): Do not do
type conversion for pointer.
(_cmpccxadd_epi64): Ditto.
gcc/testsuite/ChangeLog:
* gcc.target/i386/cmpccxadd-1b.c: New test.