@@ -317,7 +317,12 @@ TEST_F(AProfileParser, DefaultSVESupportSVESupport) {
317317 TargetJSON target = ParseTargetWithAttrs (" " , " aarch64-arm-none-eabi" , {arch_attr});
318318 TargetFeatures features = Downcast<TargetFeatures>(target.at (" features" ));
319319 EXPECT_TRUE (IsArch (target));
320+ #if TVM_LLVM_VERSION >= 190
321+ // The generic aarch64 should not have SVE enabled
322+ EXPECT_FALSE (Downcast<Bool>(features.at (" has_sve" )));
323+ #else
320324 EXPECT_TRUE (Downcast<Bool>(features.at (" has_sve" )));
325+ #endif
321326
322327 // Check that the "has_sve" feature is set when "+sve" is explicitly set as an attribute.
323328 target = ParseTargetWithAttrs (" " , " aarch64-arm-none-eabi" , {arch_attr, " +sve" });
@@ -359,7 +364,12 @@ TEST_F(AProfileParser, DefaultFP16Support) {
359364 TargetJSON target = ParseTargetWithAttrs (" " , " aarch64-arm-none-eabi" , {arch_attr});
360365 TargetFeatures features = Downcast<TargetFeatures>(target.at (" features" ));
361366 EXPECT_TRUE (IsArch (target));
367+ #if TVM_LLVM_VERSION >= 190
368+ // The generic aarch64 should not have FP16 enabled
369+ EXPECT_FALSE (Downcast<Bool>(features.at (" has_fp16_simd" )));
370+ #else
362371 EXPECT_TRUE (Downcast<Bool>(features.at (" has_fp16_simd" )));
372+ #endif
363373
364374 // Check that the "has_fp16_simd" feature is set when "+fullfp16" is explicitly set as an
365375 // attribute.
0 commit comments