diff options
author | 2020-07-13 17:45:22 +0000 | |
---|---|---|
committer | 2020-07-15 09:48:56 +0000 | |
commit | b461b53c926dae7f1959a309b0a2b109b6d3c4d3 (patch) | |
tree | a9d3d51d8a3267dd3e7724c1ab3bf70cfd4c417a /compiler/utils/assembler_test_base.h | |
parent | fab6f1c479f6053a0c1eaaa889e0ff067d596211 (diff) |
Revert^2 "Switch to LLVM prebuilt tools for ART gtests"
It is also necessary to adjust the expected output of some tests.
This reverts commit ea54b823a3a02f65c865e11bbbccb327a273c039.
Bug: 147817558
Test: m test-art-host-gtest
Change-Id: Ib244e8b7d43d575299654397a47056f295ab4589
Diffstat (limited to 'compiler/utils/assembler_test_base.h')
-rw-r--r-- | compiler/utils/assembler_test_base.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/compiler/utils/assembler_test_base.h b/compiler/utils/assembler_test_base.h index 1567367b67..736a292667 100644 --- a/compiler/utils/assembler_test_base.h +++ b/compiler/utils/assembler_test_base.h @@ -135,22 +135,24 @@ class AssemblerTestBase : public testing::Test { } virtual std::vector<std::string> GetAssemblerCommand() { - switch (GetIsa()) { + InstructionSet isa = GetIsa(); + switch (isa) { case InstructionSet::kX86: - return {FindTool("as"), "--32"}; + return {FindTool("clang"), "--compile", "-target", "i386-linux-gnu"}; case InstructionSet::kX86_64: - return {FindTool("as"), "--64"}; + return {FindTool("clang"), "--compile", "-target", "x86_64-linux-gnu"}; default: - return {FindTool("as")}; + LOG(FATAL) << "Unknown instruction set: " << isa; + UNREACHABLE(); } } virtual std::vector<std::string> GetDisassemblerCommand() { switch (GetIsa()) { case InstructionSet::kThumb2: - return {FindTool("objdump"), "--disassemble", "-M", "force-thumb"}; + return {FindTool("llvm-objdump"), "--disassemble", "-triple", "thumbv7a-linux-gnueabi"}; default: - return {FindTool("objdump"), "--disassemble", "--no-show-raw-insn"}; + return {FindTool("llvm-objdump"), "--disassemble", "--no-show-raw-insn"}; } } |