Set --no-print-imm-hex for llvm-objdump invocations
llvm-objdump changed the default behaviour of print-imm-hex, breaking a
number of tests relying on exact output of it. Explicitly set to
--no-print-imm-hex to avoid breakages.
Test: m test-art-host-gtest-art_compiler_host_tests
Bug: 264965700
Change-Id: Icfe165da5818f68080a036f238e479262b919ace
diff --git a/compiler/utils/assembler_test_base.h b/compiler/utils/assembler_test_base.h
index a342d9a..8c18e07 100644
--- a/compiler/utils/assembler_test_base.h
+++ b/compiler/utils/assembler_test_base.h
@@ -154,9 +154,14 @@
virtual std::vector<std::string> GetDisassemblerCommand() {
switch (GetIsa()) {
case InstructionSet::kThumb2:
- return {FindTool("llvm-objdump"), "--disassemble", "--triple", "thumbv7a-linux-gnueabi"};
+ return {FindTool("llvm-objdump"),
+ "--disassemble",
+ "--no-print-imm-hex",
+ "--triple",
+ "thumbv7a-linux-gnueabi"};
default:
- return {FindTool("llvm-objdump"), "--disassemble", "--no-show-raw-insn"};
+ return {
+ FindTool("llvm-objdump"), "--disassemble", "--no-print-imm-hex", "--no-show-raw-insn"};
}
}