[clang] [llvm] [AArch64] Added feature dependencies for SME2p1 to TargetParser (PR #81860)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 08:18:49 PST 2024
https://github.com/Lukacma updated https://github.com/llvm/llvm-project/pull/81860
>From 2e3d7fbcf759230cf83487c60aabca5104a7f379 Mon Sep 17 00:00:00 2001
From: Marian Lukac <Marian.Lukac at arm.com>
Date: Thu, 15 Feb 2024 10:17:20 +0000
Subject: [PATCH 1/2] [AArch64] Added feature dependencies for SME2p1 to
TargetParser
---
llvm/include/llvm/TargetParser/AArch64TargetParser.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/include/llvm/TargetParser/AArch64TargetParser.h b/llvm/include/llvm/TargetParser/AArch64TargetParser.h
index ed9944bcef23d0..7376ac98a2b095 100644
--- a/llvm/include/llvm/TargetParser/AArch64TargetParser.h
+++ b/llvm/include/llvm/TargetParser/AArch64TargetParser.h
@@ -273,7 +273,7 @@ inline constexpr ExtensionInfo Extensions[] = {
{"sme-i16i64", AArch64::AEK_SMEI16I64, "+sme-i16i64", "-sme-i16i64", FEAT_SME_I64, "+sme,+sme-i16i64,+bf16", 570},
{"sme", AArch64::AEK_SME, "+sme", "-sme", FEAT_SME, "+sme,+bf16", 430},
{"sme2", AArch64::AEK_SME2, "+sme2", "-sme2", FEAT_SME2, "+sme2,+sme,+bf16", 580},
- {"sme2p1", AArch64::AEK_SME2p1, "+sme2p1", "-sme2p1", FEAT_INIT, "", 0},
+ {"sme2p1", AArch64::AEK_SME2p1, "+sme2p1", "-sme2p1", FEAT_INIT, "+sme2p1,+sme2,+sme,+bf16", 0},
{"ssbs", AArch64::AEK_SSBS, "+ssbs", "-ssbs", FEAT_SSBS, "", 490},
{"ssbs2", AArch64::AEK_NONE, {}, {}, FEAT_SSBS2, "+ssbs", 500},
{"sve-bf16", AArch64::AEK_NONE, {}, {}, FEAT_SVE_BF16, "+sve,+bf16,+fullfp16,+fp-armv8,+neon", 320},
>From b35e11cae9a3286d276a521e4170099dcb1186df Mon Sep 17 00:00:00 2001
From: Marian Lukac <Marian.Lukac at arm.com>
Date: Tue, 20 Feb 2024 14:39:51 +0000
Subject: [PATCH 2/2] [AArch64] Add testcase for the bugfix
---
clang/test/Sema/aarch64-sme2p1-diagnostics.c | 10 ++++++++++
1 file changed, 10 insertions(+)
create mode 100644 clang/test/Sema/aarch64-sme2p1-diagnostics.c
diff --git a/clang/test/Sema/aarch64-sme2p1-diagnostics.c b/clang/test/Sema/aarch64-sme2p1-diagnostics.c
new file mode 100644
index 00000000000000..a0adb040385815
--- /dev/null
+++ b/clang/test/Sema/aarch64-sme2p1-diagnostics.c
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sme2p1 -fsyntax-only -verify %s
+
+// REQUIRES: aarch64-registered-target
+#include "arm_sme.h"
+
+svuint8x2_t test_sme2p1(svuint8x2_t x) {
+ // expected-no-diagnostics
+ return x;
+}
+
More information about the llvm-commits
mailing list