From b50d59f4ca5557a7719dc26157f8f2fd9006913a Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 20 Sep 2024 17:28:33 +0100 Subject: Verify hardware supports ISA features in tests When running codegen tests, verify that the ISA features used in the codegen are supported by the hardware. This strengthens checks for gtests that may use ISA features which are not supported by the hardware and therefore should not be run on that hardware. Test: art/test.py --gtest art_compiler_tests Change-Id: I56ebd6e964947fe004f466010a18faceb019bfae --- compiler/optimizing/codegen_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing/codegen_test.cc') diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc index 14a419fcd8..75b0ea2a08 100644 --- a/compiler/optimizing/codegen_test.cc +++ b/compiler/optimizing/codegen_test.cc @@ -56,7 +56,7 @@ static ::std::vector GetTargetConfigs() { }; for (const CodegenTargetConfig& test_config : test_config_candidates) { - if (CanExecute(test_config.GetInstructionSet())) { + if (CanExecuteISA(test_config.GetInstructionSet())) { v.push_back(test_config); } } -- cgit v1.2.3-59-g8ed1b