[PATCH] D85346: [compiler-rt][test] XFAIL two tests on 32-bit sparc
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 5 12:32:10 PDT 2020
ro created this revision.
ro added reviewers: samsonov, rsmith, calixte, marco-c, alekseyshl.
Herald added subscribers: Sanitizers, jfb, fedor.sergeev, dberris, jyknight.
Herald added a project: Sanitizers.
ro requested review of this revision.
Two tests `FAIL` on 32-bit sparc:
Profile-sparc :: Posix/instrprof-gcov-parallel.test
UBSan-Standalone-sparc :: TestCases/Float/cast-overflow.cpp
The failure mode is similar:
Undefined first referenced
symbol in file
__atomic_store_4 /var/tmp/instrprof-gcov-parallel-6afe8d.o
__atomic_load_4 /var/tmp/instrprof-gcov-parallel-6afe8d.o
Undefined first referenced
symbol in file
__atomic_load_1 /var/tmp/cast-overflow-72a808.o
This is a known bug: `clang` doesn't inline atomics on 32-bit sparc, unlike `gcc`.
The patch therefore `XFAIL`s the tests.
Tested on `sparcv9-sun-solaris2.11` and `amd64-pc-solaris2.11`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85346
Files:
compiler-rt/test/profile/Posix/instrprof-gcov-parallel.test
compiler-rt/test/ubsan/TestCases/Float/cast-overflow.cpp
Index: compiler-rt/test/ubsan/TestCases/Float/cast-overflow.cpp
===================================================================
--- compiler-rt/test/ubsan/TestCases/Float/cast-overflow.cpp
+++ compiler-rt/test/ubsan/TestCases/Float/cast-overflow.cpp
@@ -11,6 +11,9 @@
// FIXME: not %run %t 8 2>&1 | FileCheck %s --check-prefix=CHECK-8
// RUN: not %run %t 9 2>&1 | FileCheck %s --check-prefix=CHECK-9
+// Bug 42535
+// XFAIL: sparc-target-arch
+
// This test assumes float and double are IEEE-754 single- and double-precision.
#if defined(__APPLE__)
Index: compiler-rt/test/profile/Posix/instrprof-gcov-parallel.test
===================================================================
--- compiler-rt/test/profile/Posix/instrprof-gcov-parallel.test
+++ compiler-rt/test/profile/Posix/instrprof-gcov-parallel.test
@@ -10,6 +10,9 @@
RUN: llvm-cov gcov instrprof-gcov-parallel.target.gcda
RUN: FileCheck --input-file instrprof-gcov-parallel.target.c.gcov %s
+# Bug 42535
+# XFAIL: sparc-target-arch
+
# Test if the .gcda file is correctly created from one of child processes
# and counters of all processes are recorded correctly.
# 707 = CHILDREN * COUNT
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85346.283300.patch
Type: text/x-patch
Size: 1171 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200805/dcd48407/attachment.bin>
More information about the llvm-commits
mailing list