Unverified Commit 341ca1ad authored by Vitaly Buka's avatar Vitaly Buka Committed by GitHub
Browse files

[test][msan] s390x already passes the test

3bc439bd implemented overflow copying in a different way.

It's lucky to pass this test, but may fails in a different way.

Reviewers: thurstond, iii-i

Reviewed By: thurstond

Pull Request: https://github.com/llvm/llvm-project/pull/72710
parent 0133e25d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3,8 +3,8 @@
// Without -fno-sanitize-memory-param-retval we can't even pass poisoned values.
// RUN: %clangxx_msan -fno-sanitize-memory-param-retval -fsanitize-memory-track-origins=0 -O3 %s -o %t

// Nothing works yet.
// XFAIL: *
// The most of targets fail the test.
// XFAIL: target={{(x86|aarch64|loongarch64|mips|powerpc64).*}}

#include <sanitizer/msan_interface.h>
#include <stdarg.h>
+3 −0
Original line number Diff line number Diff line
@@ -5600,6 +5600,9 @@ struct VarArgSystemZHelper : public VarArgHelperBase {
                       Alignment, RegSaveAreaSize);
  }


  // FIXME: This implementation limits OverflowOffset to kParamTLSSize, so we
  // don't know real overflow size and can't clear shadow beyond kParamTLSSize.
  void copyOverflowArea(IRBuilder<> &IRB, Value *VAListTag) {
    Type *OverflowArgAreaPtrTy = PointerType::getUnqual(*MS.C); // i64*
    Value *OverflowArgAreaPtrPtr = IRB.CreateIntToPtr(