[clang] [X86] Change target of __builtin_ia32_cmp[p|s][s|d] from avx into sse/sse2 (PR #67410)

Freddy Ye via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 26 02:33:53 PDT 2023


FreddyLeaf wrote:

This PR is to align with icc: https://godbolt.org/z/EzbfzTrzr We can modify intrinsic guide if required.

intel.com/SDM shows:
```
CMPSD xmm1, xmm2/m64, imm8
SSE2: Compare low double-precision floating-point value in xmm2/m64 and xmm1 using bits 2:0 of imm8 as comparison predicate
Intel C/C++ Compiler Intrinsic Equivalent
(V)CMPSD _m128d _mm_cmp_sd(_m128d a, __m128d b, const int imm)

https://github.com/llvm/llvm-project/pull/67410


More information about the cfe-commits mailing list