[llvm] [llvm-objdump] Print out xcoff file header for xcoff object file with option private-headers (PR #96350)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 13 02:13:30 PDT 2024
================
@@ -1,11 +1,15 @@
## Test the --private-headers option for XCOFF object files.
-# RUN: yaml2obj -DMAGIC=0x1DF %s -o %t_xcoff32.o
-# RUN: yaml2obj -DMAGIC=0x1F7 %s -o %t_xcoff64.o
-# RUN: llvm-objdump --private-headers %t_xcoff32.o |\
-# RUN: FileCheck %s --check-prefixes=CHECK32 --match-full-lines
-# RUN: llvm-objdump --private-headers %t_xcoff64.o |\
-# RUN: FileCheck %s --check-prefixes=CHECK64 --match-full-lines
+# RUN: yaml2obj -DMAGIC=0x1DF --docnum=1 %s -o %t_xcoff32.o
+# RUN: yaml2obj -DMAGIC=0x1F7 --docnum=1 %s -o %t_xcoff64.o
+# RUN: llvm-objdump --private-headers %t_xcoff32.o | \
+# RUN: FileCheck %s --check-prefixes=CHECK32 --match-full-lines --strict-whitespace
+# RUN: llvm-objdump --private-headers %t_xcoff64.o | \
+# RUN: FileCheck %s --check-prefixes=CHECK64 --match-full-lines --strict-whitespace
+
+# RUN: yaml2obj -DMAGIC=0x1DF --docnum=2 %s -o %t_xcoff_timestamp.o
----------------
jh7370 wrote:
Let's move this case below the first YAML doc and associated CHECKs, so that the test case, YAML and CHECKs for a set of test cases are all together.
Also, please add a comment explaining the purpose of this specific testcase.
https://github.com/llvm/llvm-project/pull/96350
More information about the llvm-commits
mailing list