[clang] [X86] Add constexpr support for addsub and select intrinsics (PR #167512)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 11 06:40:38 PST 2025
================
@@ -4279,6 +4279,36 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call,
F.subtract(RHS, RM);
return F;
});
+ case clang::X86::BI__builtin_ia32_addsubpd:
+ case clang::X86::BI__builtin_ia32_addsubps:
+ case clang::X86::BI__builtin_ia32_addsubpd256:
+ case clang::X86::BI__builtin_ia32_addsubps256: {
----------------
tbaederr wrote:
Use a static function like everything else.
https://github.com/llvm/llvm-project/pull/167512
More information about the cfe-commits
mailing list