[llvm] 93b7915 - [llvm-readobj] - Add comments and formatting to mips-options-sec.test and mips-reginfo.test. NFCI.
Georgii Rymar via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 28 03:32:24 PDT 2020
Author: Georgii Rymar
Date: 2020-07-28T13:32:09+03:00
New Revision: 93b7915504b708f39a75d72e08448443a899345e
URL: https://github.com/llvm/llvm-project/commit/93b7915504b708f39a75d72e08448443a899345e
DIFF: https://github.com/llvm/llvm-project/commit/93b7915504b708f39a75d72e08448443a899345e.diff
LOG: [llvm-readobj] - Add comments and formatting to mips-options-sec.test and mips-reginfo.test. NFCI.
This will allow to extend them (needed for D84651).
Added:
Modified:
llvm/test/tools/llvm-readobj/ELF/mips-options-sec.test
llvm/test/tools/llvm-readobj/ELF/mips-reginfo.test
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-readobj/ELF/mips-options-sec.test b/llvm/test/tools/llvm-readobj/ELF/mips-options-sec.test
index 3636d56cfe6e..f53f04c55e9b 100644
--- a/llvm/test/tools/llvm-readobj/ELF/mips-options-sec.test
+++ b/llvm/test/tools/llvm-readobj/ELF/mips-options-sec.test
@@ -1,12 +1,14 @@
-RUN: llvm-readobj -A %p/Inputs/options.obj.elf-mipsel | FileCheck %s
+## Check that we are able to dump the SHT_MIPS_OPTIONS section using -A properly.
-CHECK: MIPS Options {
-CHECK-NEXT: ODK_REGINFO {
-CHECK-NEXT: GP: 0x0
-CHECK-NEXT: General Mask: 0xF2000017
-CHECK-NEXT: Co-Proc Mask0: 0x0
-CHECK-NEXT: Co-Proc Mask1: 0x0
-CHECK-NEXT: Co-Proc Mask2: 0x0
-CHECK-NEXT: Co-Proc Mask3: 0x0
-CHECK-NEXT: }
-CHECK-NEXT: }
+# RUN: llvm-readobj -A %p/Inputs/options.obj.elf-mipsel | FileCheck %s
+
+# CHECK: MIPS Options {
+# CHECK-NEXT: ODK_REGINFO {
+# CHECK-NEXT: GP: 0x0
+# CHECK-NEXT: General Mask: 0xF2000017
+# CHECK-NEXT: Co-Proc Mask0: 0x0
+# CHECK-NEXT: Co-Proc Mask1: 0x0
+# CHECK-NEXT: Co-Proc Mask2: 0x0
+# CHECK-NEXT: Co-Proc Mask3: 0x0
+# CHECK-NEXT: }
+# CHECK-NEXT: }
diff --git a/llvm/test/tools/llvm-readobj/ELF/mips-reginfo.test b/llvm/test/tools/llvm-readobj/ELF/mips-reginfo.test
index 20177a99d8cb..0074631843cd 100644
--- a/llvm/test/tools/llvm-readobj/ELF/mips-reginfo.test
+++ b/llvm/test/tools/llvm-readobj/ELF/mips-reginfo.test
@@ -1,10 +1,12 @@
-RUN: llvm-readobj -A %p/Inputs/reginfo.obj.elf-mipsel | FileCheck %s
+## Check that we are able to dump the SHT_MIPS_REGINFO section using -A properly.
-CHECK: MIPS RegInfo {
-CHECK-NEXT: GP: 0x7FEF
-CHECK-NEXT: General Mask: 0xB00001F6
-CHECK-NEXT: Co-Proc Mask0: 0x0
-CHECK-NEXT: Co-Proc Mask1: 0x0
-CHECK-NEXT: Co-Proc Mask2: 0x0
-CHECK-NEXT: Co-Proc Mask3: 0x0
-CHECK-NEXT: }
+# RUN: llvm-readobj -A %p/Inputs/reginfo.obj.elf-mipsel | FileCheck %s
+
+# CHECK: MIPS RegInfo {
+# CHECK-NEXT: GP: 0x7FEF
+# CHECK-NEXT: General Mask: 0xB00001F6
+# CHECK-NEXT: Co-Proc Mask0: 0x0
+# CHECK-NEXT: Co-Proc Mask1: 0x0
+# CHECK-NEXT: Co-Proc Mask2: 0x0
+# CHECK-NEXT: Co-Proc Mask3: 0x0
+# CHECK-NEXT: }
More information about the llvm-commits
mailing list