[PATCH] D12709: [PATCH] [sanitizers] [msan] Enable MSAN for aarch64
Renato Golin via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 12:25:28 PDT 2015
rengolin added inline comments.
================
Comment at: test/msan/strlen_of_shadow.cc:31
@@ +30,3 @@
+ if (vma == 39)
+ return (char *)(LINEARIZE_MEM_39(p) + 0x4000000000ULL);
+ else if (vma == 42)
----------------
rengolin wrote:
> Can't you just use the macro for now?
Something like:
#elif defined(__aarch64__)
#if SANITIZER_AARCH64_VMA == 39
#define LINEARIZE_MEM(mem) (((uintptr_t)(mem) & ~0x7C00000000ULL) ^ 0x100000000ULL)
#else
#define LINEARIZE_MEM(mem) (((uintptr_t)(mem) & ~0x3E000000000ULL) ^ 0x1000000000ULL)
#endif
return (char *)(LINEARIZE_MEM(p) + 0x4000000000ULL);
...
http://reviews.llvm.org/D12709
More information about the llvm-commits
mailing list