Skip to content

Commit b63ca0a

Browse files
committed
[Sanitizers][test] XFAIL long double tests on Solaris/sparc
As reported in Issue llvm#41838, `clang` doesn't correctly implement `long double` on 32-bit Solaris/SPARC: the psABI requires this to be an 128-bit type. Four sanitizer tests currently `FAIL` for this reason. While there is a WIP patch to fix `clang` (D89130 <https://reviews.llvm.org/D89130>), it isn't complete yet and I've hit so many brick walls while trying to finish it that I'm unsure if I ever will. This patch therefore `XFAIL`s those tests in the meantime. Tested on `sparcv9-sun-solaris2.11`. Differential Revision: https://reviews.llvm.org/D119016
1 parent fe932a8 commit b63ca0a

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

compiler-rt/test/sanitizer_common/TestCases/printf-ldbl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// RUN: %clang %s -o %t && %run %t 2>&1
22

3+
// Issue #41838
4+
// XFAIL: sparc-target-arch && solaris
5+
36
#include <assert.h>
47
#include <stdio.h>
58
#include <string.h>

compiler-rt/test/sanitizer_common/TestCases/scanf-ldbl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// RUN: %clang %s -o %t && %run %t 2>&1
22

3+
// Issue #41838
4+
// XFAIL: sparc-target-arch && solaris
5+
36
#include <assert.h>
47
#include <stdio.h>
58
#include <string.h>

compiler-rt/test/ubsan/TestCases/Float/cast-overflow.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
// FIXME: not %run %t 8 2>&1 | FileCheck %s --check-prefix=CHECK-8
1212
// RUN: not %run %t 9 2>&1 | FileCheck %s --check-prefix=CHECK-9
1313

14+
// Issue #41838
15+
// XFAIL: sparc-target-arch && solaris
16+
1417
// This test assumes float and double are IEEE-754 single- and double-precision.
1518

1619
#if defined(__APPLE__)

compiler-rt/test/ubsan/TestCases/Misc/log-path_test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
// FIXME: log_path is not supported on Windows yet.
2626
// XFAIL: windows-msvc
2727

28+
// Issue #41838
29+
// XFAIL: sparc-target-arch && solaris
30+
2831
#include <stdio.h>
2932
#include <stdlib.h>
3033
int main(int argc, char *argv[]) {

0 commit comments

Comments
 (0)