test/cpuflags: add new Arm flags
authorWei Hu (Xavier) <xavier.huwei@huawei.com>
Wed, 19 Aug 2020 10:56:38 +0000 (18:56 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 13 Oct 2020 15:57:52 +0000 (17:57 +0200)
This patch adds new flags into the test_cpuflags() functions for ARM64
platform, such as RTE_CPUFLAG_SVE, etc.

Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
app/test/test_cpuflags.c

index 2efa954..40f6ac7 100644 (file)
@@ -118,6 +118,45 @@ test_cpuflags(void)
 
        printf("Check for ATOMICS:\t");
        CHECK_FOR_FLAG(RTE_CPUFLAG_ATOMICS);
+
+       printf("Check for SVE:\t\t");
+       CHECK_FOR_FLAG(RTE_CPUFLAG_SVE);
+
+       printf("Check for SVE2:\t\t");
+       CHECK_FOR_FLAG(RTE_CPUFLAG_SVE2);
+
+       printf("Check for SVEAES:\t");
+       CHECK_FOR_FLAG(RTE_CPUFLAG_SVEAES);
+
+       printf("Check for SVEPMULL:\t");
+       CHECK_FOR_FLAG(RTE_CPUFLAG_SVEPMULL);
+
+       printf("Check for SVEBITPERM:\t");
+       CHECK_FOR_FLAG(RTE_CPUFLAG_SVEBITPERM);
+
+       printf("Check for SVESHA3:\t");
+       CHECK_FOR_FLAG(RTE_CPUFLAG_SVESHA3);
+
+       printf("Check for SVESM4:\t");
+       CHECK_FOR_FLAG(RTE_CPUFLAG_SVESM4);
+
+       printf("Check for FLAGM2:\t");
+       CHECK_FOR_FLAG(RTE_CPUFLAG_FLAGM2);
+
+       printf("Check for FRINT:\t");
+       CHECK_FOR_FLAG(RTE_CPUFLAG_FRINT);
+
+       printf("Check for SVEI8MM:\t");
+       CHECK_FOR_FLAG(RTE_CPUFLAG_SVEI8MM);
+
+       printf("Check for SVEF32MM:\t");
+       CHECK_FOR_FLAG(RTE_CPUFLAG_SVEF32MM);
+
+       printf("Check for SVEF64MM:\t");
+       CHECK_FOR_FLAG(RTE_CPUFLAG_SVEF64MM);
+
+       printf("Check for SVEBF16:\t");
+       CHECK_FOR_FLAG(RTE_CPUFLAG_SVEBF16);
 #endif
 
 #if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686)