[compiler-rt] r266646 - [MSan] [PowerPC] Add loadable library name for testing.
Marcin Koscielnicki via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 18 11:21:41 PDT 2016
Author: koriakin
Date: Mon Apr 18 13:21:41 2016
New Revision: 266646
URL: http://llvm.org/viewvc/llvm-project?rev=266646&view=rev
Log:
[MSan] [PowerPC] Add loadable library name for testing.
Differential Revision: http://reviews.llvm.org/D19217
Modified:
compiler-rt/trunk/lib/msan/tests/msan_test.cc
Modified: compiler-rt/trunk/lib/msan/tests/msan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/tests/msan_test.cc?rev=266646&r1=266645&r2=266646&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/tests/msan_test.cc (original)
+++ compiler-rt/trunk/lib/msan/tests/msan_test.cc Mon Apr 18 13:21:41 2016
@@ -2914,6 +2914,10 @@ static void GetPathToLoadable(char *buf,
static const char basename[] = "libmsan_loadable.mips64el.so";
#elif defined(__aarch64__)
static const char basename[] = "libmsan_loadable.aarch64.so";
+#elif defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+ static const char basename[] = "libmsan_loadable.powerpc64.so";
+#elif defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+ static const char basename[] = "libmsan_loadable.powerpc64le.so";
#endif
int res = snprintf(buf, sz, "%.*s/%s",
(int)dir_len, program_path, basename);
More information about the llvm-commits
mailing list