[clang] [X86][Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow AVX/AVX512 IFMA madd52 intrinsics to be used in constexpr (PR #161056)
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 9 09:20:17 PDT 2025
================
@@ -8,53 +8,221 @@
// RUN: %clang_cc1 -x c++ -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +avxifma -emit-llvm -o - -Wall -Werror -fexperimental-new-constant-interpreter | FileCheck %s
// RUN: %clang_cc1 -x c++ -ffreestanding %s -triple=i386-apple-darwin -target-feature +avxifma -emit-llvm -o - -Wall -Werror -fexperimental-new-constant-interpreter | FileCheck %s
-
#include <immintrin.h>
+#include "builtin_test_helpers.h"
+
+__attribute__((target("avx512ifma,avx512vl")))
----------------
RKSimon wrote:
The fact that it didn't require this beforehand is very suspicous but I can't see the mistake right now @FreddyLeaf @phoebewang any ideas?
https://github.com/llvm/llvm-project/pull/161056
More information about the cfe-commits
mailing list