aboutsummaryrefslogtreecommitdiff
path: root/llvm
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-07-24 17:21:28 -0700
committerFangrui Song <i@maskray.me>2023-07-24 17:21:28 -0700
commitbf5581dce66f6d7646e699daa70a5477e6b50f41 (patch)
tree07d5a60e2de6136fe2369c35b61289461016f99c /llvm
parentf26af16e2c0df7a76fbee80514fa03c2ffdf83c2 (diff)
downloadllvm-bf5581dce66f6d7646e699daa70a5477e6b50f41.zip
llvm-bf5581dce66f6d7646e699daa70a5477e6b50f41.tar.gz
llvm-bf5581dce66f6d7646e699daa70a5477e6b50f41.tar.bz2
[llvm-objdump][test] Improve elf-aarch64-mapping-symbols.test
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/tools/llvm-objdump/ELF/AArch64/elf-aarch64-mapping-symbols.test39
1 files changed, 24 insertions, 15 deletions
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 965b09d..3a6d02d 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",@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