summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-readobj/ELF/hex-dump-multi.s
diff options
context:
space:
mode:
authorGeorgii Rymar <grimar@accesssoftek.com>2019-12-09 17:01:29 +0300
committerGeorgii Rymar <grimar@accesssoftek.com>2019-12-10 11:36:23 +0300
commitdbf520f617440d62ca46f64cdc41159945911902 (patch)
treef8ddc3e51e58ac19b6d10aa4c0592eb004fa852d /llvm/test/tools/llvm-readobj/ELF/hex-dump-multi.s
parenteb3e81f43f019cd90da87169aeff0eaddc4c9ecb (diff)
downloadbcm5719-llvm-dbf520f617440d62ca46f64cdc41159945911902.tar.gz
bcm5719-llvm-dbf520f617440d62ca46f64cdc41159945911902.zip
[llvm-readobj][test] - Move platform specific test cases and their inputs to separate folders.
This creates the next subfolders in the test directory: "COFF", "ELF", "MachO", "wasm". I've also removed platform specific prefixes, like "coff-*". One unused binary was removed as well: `Inputs/relocs.obj.elf-mips` Differential revision: https://reviews.llvm.org/D71203
Diffstat (limited to 'llvm/test/tools/llvm-readobj/ELF/hex-dump-multi.s')
-rw-r--r--llvm/test/tools/llvm-readobj/ELF/hex-dump-multi.s21
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-readobj/ELF/hex-dump-multi.s b/llvm/test/tools/llvm-readobj/ELF/hex-dump-multi.s
new file mode 100644
index 00000000000..33ef534e81e
--- /dev/null
+++ b/llvm/test/tools/llvm-readobj/ELF/hex-dump-multi.s
@@ -0,0 +1,21 @@
+# REQUIRES: x86-registered-target
+
+# RUN: llvm-mc -filetype=obj -triple x86_64 %s -o %t.o
+# RUN: llvm-readobj -x .a -x .b %t.o | FileCheck %s
+# RUN: llvm-readelf -x .a -x .b %t.o | FileCheck %s
+
+# CHECK: Hex dump of section '.a':
+# CHECK-NEXT: 0x00000000 00
+# CHECK-EMPTY:
+# CHECK-NEXT: Hex dump of section '.b':
+# CHECK-NEXT: 0x00000000 01
+# CHECK-EMPTY:
+# CHECK-NEXT: Hex dump of section '.a':
+# CHECK-NEXT: 0x00000000 02
+
+.section .a,"a",@progbits,unique,0
+.byte 0
+.section .b,"a",@progbits
+.byte 1
+.section .a,"a",@progbits,unique,1
+.byte 2
OpenPOWER on IntegriCloud