[PATCH] D85433: [compiler-rt][ubsan][test] XFAIL TypeCheck/misaligned.cpp on Sparc

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 07:42:06 PDT 2020


ro created this revision.
ro added reviewers: rsmith, samsonov, vsk.
ro added a project: Sanitizers.
Herald added subscribers: Sanitizers, fedor.sergeev, dberris, jyknight.
ro requested review of this revision.

Two ubsan tests FAIL on Sparc:

  UBSan-Standalone-sparc :: TestCases/TypeCheck/misaligned.cpp
  UBSan-Standalone-sparcv9 :: TestCases/TypeCheck/misaligned.cpp

I've reported the details in Bug 47015, but it seems to boil down to the fact that the
`s1` subtest actually incurs a fault on strict-alignment targets like Sparc which UBSan
doesn't expect.

I've found no way to `XFAIL` just that single subtest, so this patch `XFAIL`s the whole
testcase.

Tested on `sparcv9-sun-solaris2.11` and `amd64-pc-solaris2.11`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85433

Files:
  compiler-rt/test/ubsan/TestCases/TypeCheck/misaligned.cpp


Index: compiler-rt/test/ubsan/TestCases/TypeCheck/misaligned.cpp
===================================================================
--- compiler-rt/test/ubsan/TestCases/TypeCheck/misaligned.cpp
+++ compiler-rt/test/ubsan/TestCases/TypeCheck/misaligned.cpp
@@ -13,6 +13,8 @@
 // RUN: not %run %t w1 2>&1 | FileCheck %s --check-prefix=CHECK-WILD
 // Compilation error make the test fails.
 // XFAIL: openbsd
+// The s1 subtest FAILs on strict-alignment targets: Bug 47015.
+// XFAIL: sparc
 
 #include <new>
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85433.283606.patch
Type: text/x-patch
Size: 509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200806/783b6e7d/attachment.bin>


More information about the llvm-commits mailing list