aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/TargetParser/TargetParserTest.cpp
diff options
context:
space:
mode:
authorhassnaaHamdi <hassnaa.hamdi@arm.com>2023-10-27 12:13:46 +0100
committerGitHub <noreply@github.com>2023-10-27 12:13:46 +0100
commitb23426ee0eb4b51b87147de3e376bc49960b7f35 (patch)
tree0715940470f63bc4f237324b090418ed013671b1 /llvm/unittests/TargetParser/TargetParserTest.cpp
parent7360c6acf1c485bde54361dee6e307cf435582a3 (diff)
downloadllvm-b23426ee0eb4b51b87147de3e376bc49960b7f35.zip
llvm-b23426ee0eb4b51b87147de3e376bc49960b7f35.tar.gz
llvm-b23426ee0eb4b51b87147de3e376bc49960b7f35.tar.bz2
[LLVM][AArch64][Assembly]: Add FAMINMAX assembly/disasse… (#70115)
…mbly. This patch adds the feature flag FAMINMAX and the assembly/disassembly for the following instructions of NEON, SVE2 and SME2: * NEON: - FAMIN - FAMAX * SVE2: - FAMIN_ZPmZ - FAMAX_ZPmZ * SME2: - FAMAX_2Z2Z - FAMIN_2Z2Z - FAMAX_4Z4Z - FAMIN_4Z4Z That is according to this documentation: https://developer.arm.com/documentation/ddi0602/2023-09 Co-authored-by: Caroline Concatto <caroline.concatto@arm.com>
Diffstat (limited to 'llvm/unittests/TargetParser/TargetParserTest.cpp')
-rw-r--r--llvm/unittests/TargetParser/TargetParserTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/unittests/TargetParser/TargetParserTest.cpp b/llvm/unittests/TargetParser/TargetParserTest.cpp
index b662fbe..45f39a6 100644
--- a/llvm/unittests/TargetParser/TargetParserTest.cpp
+++ b/llvm/unittests/TargetParser/TargetParserTest.cpp
@@ -1732,7 +1732,7 @@ TEST(TargetParserTest, AArch64ExtensionFeatures) {
AArch64::AEK_RCPC3, AArch64::AEK_THE, AArch64::AEK_D128,
AArch64::AEK_LSE128, AArch64::AEK_SPECRES2, AArch64::AEK_RASv2,
AArch64::AEK_ITE, AArch64::AEK_GCS, AArch64::AEK_FPMR,
- AArch64::AEK_FP8};
+ AArch64::AEK_FP8, AArch64::AEK_FAMINMAX};
std::vector<StringRef> Features;
@@ -1806,6 +1806,7 @@ TEST(TargetParserTest, AArch64ExtensionFeatures) {
EXPECT_TRUE(llvm::is_contained(Features, "+gcs"));
EXPECT_TRUE(llvm::is_contained(Features, "+fpmr"));
EXPECT_TRUE(llvm::is_contained(Features, "+fp8"));
+ EXPECT_TRUE(llvm::is_contained(Features, "+faminmax"));
// Assuming we listed every extension above, this should produce the same
// result. (note that AEK_NONE doesn't have a name so it won't be in the
@@ -1931,6 +1932,7 @@ TEST(TargetParserTest, AArch64ArchExtFeature) {
{"gcs", "nogcs", "+gcs", "-gcs"},
{"fpmr", "nofpmr", "+fpmr", "-fpmr"},
{"fp8", "nofp8", "+fp8", "-fp8"},
+ {"faminmax", "nofaminmax", "+faminmax", "-faminmax"},
};
for (unsigned i = 0; i < std::size(ArchExt); i++) {