[clang] [llvm] [AArch64TargetParser]Fix reconstructFromParsedFeatures ignoring negative features (PR #142236)
Tomas Matheson via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 6 06:24:23 PDT 2025
================
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -triple aarch64-- -target-feature +neon -target-feature +sve\
+// RUN: -target-feature -sve -emit-llvm %s -o - | FileCheck %s
+
+// Reproducer for bug where clang would reject always_inline for unrelated
+// target features if they were disable with `-feature` on the command line.
+// CHECK: @bar
----------------
tmatheson-arm wrote:
It would be good to check the LLVM IR `attributes` for both functions, which is what `reconstructFromParsedFeatures` is used to construct.
https://github.com/llvm/llvm-project/pull/142236
More information about the llvm-commits
mailing list