summaryrefslogtreecommitdiff
path: root/compiler/utils/assembler_test_base.h
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2020-07-10 18:28:56 +0000
committer Treehugger Robot <treehugger-gerrit@google.com> 2020-07-10 19:34:40 +0000
commitea54b823a3a02f65c865e11bbbccb327a273c039 (patch)
treee6cb592138b95d2cb3ab5a132d56b3211915a108 /compiler/utils/assembler_test_base.h
parent7285a4bc7337cf6382ac464b979ae5db986a2a53 (diff)
Revert "Switch to LLVM prebuilt tools for ART gtests"
This reverts commit 8070443ce4b31a6787c22490f18f838f8f6ed4be. Reason for revert: Failing on chrome buildbots. Test: None Bug: 137817558 Change-Id: I4cbb4898e859ce33560592dd63cbf4a413048662
Diffstat (limited to 'compiler/utils/assembler_test_base.h')
-rw-r--r--compiler/utils/assembler_test_base.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/compiler/utils/assembler_test_base.h b/compiler/utils/assembler_test_base.h
index 736a292667..1567367b67 100644
--- a/compiler/utils/assembler_test_base.h
+++ b/compiler/utils/assembler_test_base.h
@@ -135,24 +135,22 @@ class AssemblerTestBase : public testing::Test {
}
virtual std::vector<std::string> GetAssemblerCommand() {
- InstructionSet isa = GetIsa();
- switch (isa) {
+ switch (GetIsa()) {
case InstructionSet::kX86:
- return {FindTool("clang"), "--compile", "-target", "i386-linux-gnu"};
+ return {FindTool("as"), "--32"};
case InstructionSet::kX86_64:
- return {FindTool("clang"), "--compile", "-target", "x86_64-linux-gnu"};
+ return {FindTool("as"), "--64"};
default:
- LOG(FATAL) << "Unknown instruction set: " << isa;
- UNREACHABLE();
+ return {FindTool("as")};
}
}
virtual std::vector<std::string> GetDisassemblerCommand() {
switch (GetIsa()) {
case InstructionSet::kThumb2:
- return {FindTool("llvm-objdump"), "--disassemble", "-triple", "thumbv7a-linux-gnueabi"};
+ return {FindTool("objdump"), "--disassemble", "-M", "force-thumb"};
default:
- return {FindTool("llvm-objdump"), "--disassemble", "--no-show-raw-insn"};
+ return {FindTool("objdump"), "--disassemble", "--no-show-raw-insn"};
}
}