@@ -53,18 +53,30 @@ TEST(CMSISNNTarget, CreateFromUndefined) {
5353 ASSERT_EQ (target->GetFeature <Bool>(" has_dsp" ).value_or (Bool (false )), Bool (false ));
5454}
5555
56- TEST (CMSISNNTarget, CreateFromContext ) {
56+ TEST (CMSISNNTarget, CreateFromContextCortexM55 ) {
5757 Target target = GetTargetWithCompilerAttrs (" cortex-m55" , " " );
5858 ASSERT_EQ (target->GetFeature <Bool>(" has_mve" ).value_or (Bool (false )), Bool (true ));
5959 ASSERT_EQ (target->GetFeature <Bool>(" has_dsp" ).value_or (Bool (false )), Bool (true ));
6060}
6161
62- TEST (CMSISNNTarget, CreateFromContextWithAttrs ) {
62+ TEST (CMSISNNTarget, CreateFromContextWithAttrsCortexM55 ) {
6363 Target target = GetTargetWithCompilerAttrs (" cortex-m55" , " +nomve" );
6464 ASSERT_EQ (target->GetFeature <Bool>(" has_mve" ).value_or (Bool (false )), Bool (false ));
6565 ASSERT_EQ (target->GetFeature <Bool>(" has_dsp" ).value_or (Bool (false )), Bool (true ));
6666}
6767
68+ TEST (CMSISNNTarget, CreateFromContextCortexM85) {
69+ Target target = GetTargetWithCompilerAttrs (" cortex-m85" , " " );
70+ ASSERT_EQ (target->GetFeature <Bool>(" has_mve" ).value_or (Bool (false )), Bool (true ));
71+ ASSERT_EQ (target->GetFeature <Bool>(" has_dsp" ).value_or (Bool (false )), Bool (true ));
72+ }
73+
74+ TEST (CMSISNNTarget, CreateFromContextWithAttrsCortexM85) {
75+ Target target = GetTargetWithCompilerAttrs (" cortex-m85" , " +nomve" );
76+ ASSERT_EQ (target->GetFeature <Bool>(" has_mve" ).value_or (Bool (false )), Bool (false ));
77+ ASSERT_EQ (target->GetFeature <Bool>(" has_dsp" ).value_or (Bool (false )), Bool (true ));
78+ }
79+
6880} // namespace cmsisnn
6981} // namespace contrib
7082} // namespace relay
0 commit comments