[clang] [X86][Clang] Add AVX512 Integer Comparison Intrinsics for constexpr Evaluation (PR #164026)
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 21 01:10:44 PDT 2025
================
@@ -3101,6 +3101,68 @@ static bool interp__builtin_vec_set(InterpState &S, CodePtr OpPC,
return true;
}
+static bool evalICmpImm(const uint8_t imm, const llvm::APSInt &A,
+ const llvm::APSInt &B, bool IsUnsigned) {
+ switch (imm & 0x7) {
+ case 0x00:
+ return (A == B);
+ break;
----------------
RKSimon wrote:
(style) no break after a return
https://github.com/llvm/llvm-project/pull/164026
More information about the cfe-commits
mailing list