summaryrefslogtreecommitdiff
path: root/compiler/common_compiler_test.h
diff options
context:
space:
mode:
author Konstantin Baladurin <konstantin.baladurin@arm.com> 2024-09-14 01:26:02 +0100
committer Santiago Aboy Solanes <solanes@google.com> 2024-10-15 16:29:45 +0000
commit6127341b747ac26b361fd1779e155d940d49e39f (patch)
treee1c40de3dda7f6bc5048fff6ea5fb4deaffe6bbc /compiler/common_compiler_test.h
parentb50d59f4ca5557a7719dc26157f8f2fd9006913a (diff)
Arm64: fix VecPredToBoolean code generation for SVE
This patch fixes code generation for VecPredToBoolean so it updates conditional flags itself based on its predicate input. Prior to this patch, code generation for VecPredToBoolean (incorrectly) implicitly assumed that the conditional flags were always updated by its input HIR (VecPredWhile) and that it immediately followed that HIR. Authors: Konstantin Baladurin <konstantin.baladurin@arm.com> Chris Jones <christopher.jones@arm.com> Test: env ART_FORCE_TRY_PREDICATED_SIMD=true art/test.py --target --optimizing Test: art/tools/run-gtests.sh Change-Id: Id4c2494cdefd008509f9039e36081151aaf0e4a6
Diffstat (limited to 'compiler/common_compiler_test.h')
-rw-r--r--compiler/common_compiler_test.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/compiler/common_compiler_test.h b/compiler/common_compiler_test.h
index 32a5234797..80b26eefe9 100644
--- a/compiler/common_compiler_test.h
+++ b/compiler/common_compiler_test.h
@@ -44,8 +44,12 @@ template<class T> class Handle;
// Export all symbols in `CommonCompilerTestImpl` for dex2oat tests.
class EXPORT CommonCompilerTestImpl {
public:
- static std::unique_ptr<CompilerOptions> CreateCompilerOptions(InstructionSet instruction_set,
- const std::string& variant);
+ // Create compiler options from the given instruction set and variant. Optionally use a string of
+ // instruction set features in addition to the features from the variant.
+ static std::unique_ptr<CompilerOptions> CreateCompilerOptions(
+ InstructionSet instruction_set,
+ const std::string& variant,
+ const std::optional<std::string>& extra_features = std::nullopt);
CommonCompilerTestImpl();
virtual ~CommonCompilerTestImpl();