diff --git a/compiler-rt/test/asan/TestCases/Linux/odr-violation.cpp b/compiler-rt/test/asan/TestCases/Linux/odr-violation.cpp --- a/compiler-rt/test/asan/TestCases/Linux/odr-violation.cpp +++ b/compiler-rt/test/asan/TestCases/Linux/odr-violation.cpp @@ -1,7 +1,7 @@ // FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=316 // XFAIL: android // Fails with debug checks: https://bugs.llvm.org/show_bug.cgi?id=46862 -// XFAIL: !compiler-rt-optimized +// XFAIL: !compiler-rt-optimized && !riscv64 // // We use fast_unwind_on_malloc=0 to have full unwinding even w/o frame // pointers. This setting is not on by default because it's too expensive. diff --git a/compiler-rt/test/asan/TestCases/Linux/odr-vtable.cpp b/compiler-rt/test/asan/TestCases/Linux/odr-vtable.cpp --- a/compiler-rt/test/asan/TestCases/Linux/odr-vtable.cpp +++ b/compiler-rt/test/asan/TestCases/Linux/odr-vtable.cpp @@ -1,29 +1,29 @@ // Fails with debug checks: https://bugs.llvm.org/show_bug.cgi?id=46862 -// XFAIL: !compiler-rt-optimized +// XFAIL: !compiler-rt-optimized && !riscv64 // RUN: %clangxx_asan -fno-rtti -DBUILD_SO1 -fPIC -shared %s -o %dynamiclib1 // RUN: %clangxx_asan -fno-rtti -DBUILD_SO2 -fPIC -shared %s -o %dynamiclib2 // RUN: %clangxx_asan -fno-rtti %s %ld_flags_rpath_exe1 %ld_flags_rpath_exe2 -o %t // RUN: %env_asan_opts=fast_unwind_on_malloc=0:detect_odr_violation=2 not %run %t 2>&1 | FileCheck %s struct XYZ { virtual void foo(); }; #if defined(BUILD_SO1) void XYZ::foo() {} #elif defined(BUILD_SO2) void XYZ::foo() {} #else int main() {} #endif // CHECK: AddressSanitizer: odr-violation // CHECK-NEXT: 'vtable for XYZ' // CHECK-NEXT: 'vtable for XYZ'