From 1eaa9288f49af05937f6475bfbfb296aaa52ecb6 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Thu, 23 Mar 2023 21:38:03 +0900 Subject: 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 --- compiler/utils/assembler_test_base.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'compiler/utils/assembler_test_base.h') 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 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"}; } } -- cgit v1.2.3-59-g8ed1b