Files
clang-p2996/clang/test/CodeGen/X86
Simon Pilgrim c9b2823359 [X86] Ensure the _mm_test_all_ones macro does not reuse argument (PR60006)
The macro _mm_test_all_ones(V) was defined as _mm_testc_si128((V), _mm_cmpeq_epi32((V), (V))) - which could cause side effects depending on the source of the V value.

The _mm_cmpeq_epi32((V), (V)) trick was just to materialize an all-ones value, which can be more safely generated with _mm_set1_epi32(-1) .

Fixes #60006

Differential Revision: https://reviews.llvm.org/D142477
2023-01-25 10:56:01 +00:00
..
2022-10-22 08:05:22 +08:00
2022-10-27 17:20:07 +08:00