[llvm] bf5581d - [llvm-objdump][test] Improve elf-aarch64-mapping-symbols.test
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 24 17:21:32 PDT 2023
Author: Fangrui Song
Date: 2023-07-24T17:21:28-07:00
New Revision: bf5581dce66f6d7646e699daa70a5477e6b50f41
URL: https://github.com/llvm/llvm-project/commit/bf5581dce66f6d7646e699daa70a5477e6b50f41
DIFF: https://github.com/llvm/llvm-project/commit/bf5581dce66f6d7646e699daa70a5477e6b50f41.diff
LOG: [llvm-objdump][test] Improve elf-aarch64-mapping-symbols.test
Added:
Modified:
llvm/test/tools/llvm-objdump/ELF/AArch64/elf-aarch64-mapping-symbols.test
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-objdump/ELF/AArch64/elf-aarch64-mapping-symbols.test b/llvm/test/tools/llvm-objdump/ELF/AArch64/elf-aarch64-mapping-symbols.test
index 965b09d4e5f170..3a6d02df0e2492 100644
--- a/llvm/test/tools/llvm-objdump/ELF/AArch64/elf-aarch64-mapping-symbols.test
+++ b/llvm/test/tools/llvm-objdump/ELF/AArch64/elf-aarch64-mapping-symbols.test
@@ -1,5 +1,29 @@
# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %t
# RUN: llvm-objdump --no-print-imm-hex -d %t | FileCheck %s
+# RUN: llvm-objdump --no-print-imm-hex -d --show-all-symbols %t | FileCheck %s --check-prefixes=CHECK,ALL
+
+# CHECK: Disassembly of section .mysection:
+# CHECK-EMPTY:
+# ALL-NEXT: <$x.0>:
+# CHECK-NEXT: <_start>:
+# CHECK-NEXT: 0: 10000021 adr x1, 0x4
+# CHECK-EMPTY:
+# ALL-NEXT: <$d.1>:
+# CHECK-NEXT: <msg>:
+# CHECK-NEXT: 4: 48 65 6c 6c .word
+# CHECK-NEXT: 8: 6f 2c 20 77 .word
+# CHECK-NEXT: c: 6f 72 6c 64 .word
+# CHECK-NEXT: 10: 0a 00 .short 0x000a
+# CHECK-EMPTY:
+# CHECK-NEXT: Disassembly of section .myothersection:
+# CHECK-EMPTY:
+# CHECK-NEXT: <$x.2>:
+# CHECK-NEXT: 0: 90000001 adrp x1, 0x0
+# CHECK-EMPTY:
+# ALL-NEXT: <$d.3>:
+# CHECK-NEXT: <mystr>:
+# CHECK-NEXT: 4: 62 6c 61 68 .word
+# CHECK-NEXT: 8: 9a .byte 0x9a
.section .mysection,"ax", at progbits
.globl _start
@@ -14,18 +38,3 @@ mystr:
.ascii "blah"
.size mystr, 4
.byte 0x9a
-
-# CHECK: Disassembly of section .mysection:
-# CHECK: <_start>:
-# CHECK: 0: 10000021 adr x1, 0x4
-# CHECK: <msg>:
-# CHECK: 4: 48 65 6c 6c .word
-# CHECK: 8: 6f 2c 20 77 .word
-# CHECK: c: 6f 72 6c 64 .word
-# CHECK: 10: 0a 00 .short 0x000a
-# CHECK: Disassembly of section .myothersection:
-# CHECK: <$x.2>:
-# CHECK: 0: 90000001 adrp x1, 0x0
-# CHECK: <mystr>:
-# CHECK: 4: 62 6c 61 68 .word
-# CHECK: 8: 9a .byte 0x9a
More information about the llvm-commits
mailing list