[compiler-rt] f5e2481 - msan: update shadow constant in strlen_of_shadow test

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 30 09:41:35 PST 2022


Author: Thurston Dang
Date: 2022-11-30T17:41:16Z
New Revision: f5e2481b42fb4539232b5621adcfc03d2eeb4eb7

URL: https://github.com/llvm/llvm-project/commit/f5e2481b42fb4539232b5621adcfc03d2eeb4eb7
DIFF: https://github.com/llvm/llvm-project/commit/f5e2481b42fb4539232b5621adcfc03d2eeb4eb7.diff

LOG: msan: update shadow constant in strlen_of_shadow test

strlen_of_shadow hardcodes the mem-to-shadow
constant. That constant was changed in D137666;
this CL updates the test accordingly.
(Other tests will be updated separately.)

Differential Revision: https://reviews.llvm.org/D139027

Added: 
    

Modified: 
    compiler-rt/test/msan/strlen_of_shadow.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/msan/strlen_of_shadow.cpp b/compiler-rt/test/msan/strlen_of_shadow.cpp
index 5e7c89c7b59fb..5257dc7ee69d4 100644
--- a/compiler-rt/test/msan/strlen_of_shadow.cpp
+++ b/compiler-rt/test/msan/strlen_of_shadow.cpp
@@ -24,7 +24,7 @@ const char *mem_to_shadow(const char *p) {
 #elif defined(__s390x__)
   return (char *)(((uintptr_t)p & ~0xC00000000000ULL) + 0x080000000000ULL);
 #elif defined(__aarch64__)
-  return (char *)((uintptr_t)p ^ 0x6000000000ULL);
+  return (char *)((uintptr_t)p ^ 0xB00000000000ULL);
 #endif
 }
 


        


More information about the llvm-commits mailing list