[PATCH] D19217: [MSan] [PowerPC] Add loadable library name for testing.

Marcin Koƛcielnicki via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 18 11:27:31 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL266646: [MSan] [PowerPC] Add loadable library name for testing. (authored by koriakin).

Changed prior to commit:
  http://reviews.llvm.org/D19217?vs=54037&id=54086#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D19217

Files:
  compiler-rt/trunk/lib/msan/tests/msan_test.cc

Index: compiler-rt/trunk/lib/msan/tests/msan_test.cc
===================================================================
--- compiler-rt/trunk/lib/msan/tests/msan_test.cc
+++ compiler-rt/trunk/lib/msan/tests/msan_test.cc
@@ -2914,6 +2914,10 @@
   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);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19217.54086.patch
Type: text/x-patch
Size: 797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160418/11a6963b/attachment.bin>


More information about the llvm-commits mailing list