diff options
author | 2023-03-23 21:38:03 +0900 | |
---|---|---|
committer | 2023-03-23 21:42:50 +0900 | |
commit | 1eaa9288f49af05937f6475bfbfb296aaa52ecb6 (patch) | |
tree | 7d4e5ddda73f01821b87c5051d46bb9516b97c0c /compiler/utils/assembler_test_base.h | |
parent | 3a31eb329ce86ad6f906bac4f14c37fec3a7d2a0 (diff) |
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
Diffstat (limited to 'compiler/utils/assembler_test_base.h')
-rw-r--r-- | compiler/utils/assembler_test_base.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/compiler/utils/assembler_test_base.h b/compiler/utils/assembler_test_base.h index a342d9a46a..8c18e07033 100644 --- a/compiler/utils/assembler_test_base.h +++ b/compiler/utils/assembler_test_base.h @@ -154,9 +154,14 @@ class AssemblerTestBase : public testing::Test { 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"}; } } |