diff options
author | Goran Jakovljevic <Goran.Jakovljevic@imgtec.com> | 2017-03-15 15:31:34 +0100 |
---|---|---|
committer | Goran Jakovljevic <Goran.Jakovljevic@imgtec.com> | 2017-03-23 09:44:18 +0100 |
commit | 27af937fb4356ed34f175b14c4425fc95f5f8a19 (patch) | |
tree | 4eda35eeb1e1fe26d3125f0be895de5d2d61d771 /compiler/utils/jni_macro_assembler.cc | |
parent | f4546792385ece9dd0ba956a6c9580027cfc8fdd (diff) |
MIPS64: Check for MSA presence in each MSA instruction
Test: mma test-art-host-gtest
Change-Id: I123fe1e33de13af6a2b2a76f37f7ad23004a81c0
Diffstat (limited to 'compiler/utils/jni_macro_assembler.cc')
-rw-r--r-- | compiler/utils/jni_macro_assembler.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/compiler/utils/jni_macro_assembler.cc b/compiler/utils/jni_macro_assembler.cc index 2f154fb862..3ac6c3ca7a 100644 --- a/compiler/utils/jni_macro_assembler.cc +++ b/compiler/utils/jni_macro_assembler.cc @@ -84,7 +84,11 @@ template <> MacroAsm64UniquePtr JNIMacroAssembler<PointerSize::k64>::Create( ArenaAllocator* arena, InstructionSet instruction_set, - const InstructionSetFeatures* instruction_set_features ATTRIBUTE_UNUSED) { + const InstructionSetFeatures* instruction_set_features) { +#ifndef ART_ENABLE_CODEGEN_mips64 + UNUSED(instruction_set_features); +#endif + switch (instruction_set) { #ifdef ART_ENABLE_CODEGEN_arm64 case kArm64: @@ -92,7 +96,11 @@ MacroAsm64UniquePtr JNIMacroAssembler<PointerSize::k64>::Create( #endif #ifdef ART_ENABLE_CODEGEN_mips64 case kMips64: - return MacroAsm64UniquePtr(new (arena) mips64::Mips64Assembler(arena)); + return MacroAsm64UniquePtr(new (arena) mips64::Mips64Assembler( + arena, + instruction_set_features != nullptr + ? instruction_set_features->AsMips64InstructionSetFeatures() + : nullptr)); #endif #ifdef ART_ENABLE_CODEGEN_x86_64 case kX86_64: |