[PATCH] D17264: [Compiler-rt][MSan] Fix msan_print_shadow3.cc test for Big Endian archs

Mohit Bhakkad via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 15 05:08:11 PST 2016


mohit.bhakkad created this revision.
mohit.bhakkad added reviewers: eugenis, kcc, samsonov.
mohit.bhakkad added subscribers: jaydeep, sagar, llvm-commits.
mohit.bhakkad set the repository for this revision to rL LLVM.

Repository:
  rL LLVM

http://reviews.llvm.org/D17264

Files:
  test/msan/msan_print_shadow3.cc

Index: test/msan/msan_print_shadow3.cc
===================================================================
--- test/msan/msan_print_shadow3.cc
+++ test/msan/msan_print_shadow3.cc
@@ -6,7 +6,11 @@
 
 int main(void) {
   unsigned long long x = 0; // For 8-byte alignment.
+#if defined (__ORDER_BIG_ENDIAN__)
+  uint32_t x_s = 0x87654321U;
+#else
   uint32_t x_s = 0x12345678U;
+#endif
   __msan_partial_poison(&x, &x_s, sizeof(x_s));
   __msan_print_shadow(&x, sizeof(x_s));
   return 0;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17264.47979.patch
Type: text/x-patch
Size: 486 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160215/e20ea2f2/attachment.bin>


More information about the llvm-commits mailing list