[llvm] ce02357 - [llvm-profdata] Make tests more readable (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 27 13:19:16 PST 2023
Author: Kazu Hirata
Date: 2023-12-27T13:19:09-08:00
New Revision: ce0235779569b150acad6d6aaa648edba4ade014
URL: https://github.com/llvm/llvm-project/commit/ce0235779569b150acad6d6aaa648edba4ade014
DIFF: https://github.com/llvm/llvm-project/commit/ce0235779569b150acad6d6aaa648edba4ade014.diff
LOG: [llvm-profdata] Make tests more readable (NFC)
This patch splits a couple of lines of printf into four for
readability so that each corresponds to one field or padding. They
correspond to NumCounters, NumValueSites, NumBitmapBytes, and padding,
respectively.
Added:
Modified:
llvm/test/tools/llvm-profdata/raw-64-bits-be.test
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-profdata/raw-64-bits-be.test b/llvm/test/tools/llvm-profdata/raw-64-bits-be.test
index 8fcadb6a0dd28a..c3e995add6ff2e 100644
--- a/llvm/test/tools/llvm-profdata/raw-64-bits-be.test
+++ b/llvm/test/tools/llvm-profdata/raw-64-bits-be.test
@@ -19,8 +19,10 @@ RUN: printf '\0\0\0\1\0\4\0\0' >> %t
RUN: printf '\0\0\0\3\0\4\0\0' >> %t
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
-RUN: printf '\0\0\0\1\0\0\0\0' >> %t
-RUN: printf '\0\0\0\3\0\0\0\0' >> %t
+RUN: printf '\0\0\0\1' >> %t
+RUN: printf '\0\0\0\0' >> %t
+RUN: printf '\0\0\0\3' >> %t
+RUN: printf '\0\0\0\0' >> %t
RUN: printf '\344\023\165\112\031\035\265\067' >> %t
RUN: printf '\0\0\0\0\0\0\0\02' >> %t
@@ -28,8 +30,10 @@ RUN: printf '\0\0\0\1\0\3\xff\xc8' >> %t
RUN: printf '\0\0\0\3\0\3\xff\xc3' >> %t
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
-RUN: printf '\0\0\0\02\0\0\0\0' >> %t
-RUN: printf '\0\0\0\1\0\0\0\0' >> %t
+RUN: printf '\0\0\0\02' >> %t
+RUN: printf '\0\0\0\0' >> %t
+RUN: printf '\0\0\0\1' >> %t
+RUN: printf '\0\0\0\0' >> %t
RUN: printf '\0\0\0\0\0\0\0\023' >> %t
RUN: printf '\0\0\0\0\0\0\0\067' >> %t
More information about the llvm-commits
mailing list