[llvm] 86d5dc9 - [memprof] Disallow memprof profile reader tests on non-x86 archs.
Snehasish Kumar via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 30 12:27:29 PST 2021
Author: Snehasish Kumar
Date: 2021-11-30T12:27:06-08:00
New Revision: 86d5dc9afc9b99a143214604ff7a43652ce6df46
URL: https://github.com/llvm/llvm-project/commit/86d5dc9afc9b99a143214604ff7a43652ce6df46
DIFF: https://github.com/llvm/llvm-project/commit/86d5dc9afc9b99a143214604ff7a43652ce6df46.diff
LOG: [memprof] Disallow memprof profile reader tests on non-x86 archs.
The memprof profile reader tests rely on binary data which is generated
from and meant to be interpreted on little endian architectures. Add a
REQUIRES: x86_64-linux clause to both tests to ensure they don't fail on big
endian targets such as ppc.
Added:
Modified:
llvm/test/tools/llvm-profdata/memprof-basic.test
llvm/test/tools/llvm-profdata/memprof-multi.test
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-profdata/memprof-basic.test b/llvm/test/tools/llvm-profdata/memprof-basic.test
index b9f624d0038e9..1ef7c712abcc4 100644
--- a/llvm/test/tools/llvm-profdata/memprof-basic.test
+++ b/llvm/test/tools/llvm-profdata/memprof-basic.test
@@ -1,3 +1,5 @@
+REQUIRES: x86_64-linux
+
The input raw profile test has been generated from the following source code:
```
diff --git a/llvm/test/tools/llvm-profdata/memprof-multi.test b/llvm/test/tools/llvm-profdata/memprof-multi.test
index d27612b187797..f1439556b1fc9 100644
--- a/llvm/test/tools/llvm-profdata/memprof-multi.test
+++ b/llvm/test/tools/llvm-profdata/memprof-multi.test
@@ -1,3 +1,5 @@
+REQUIRES: x86_64-linux
+
The input raw profile test has been generated from the following source code:
```
More information about the llvm-commits
mailing list