Skip to content

Commit f7e8350

Browse files
committed
Revert "[compiler-rt] Disable tests for unavailable builtins (#158664)"
This reverts commit e9e166e, and the follow-up fix 6567070. These changes unlocked tests to run on architectures where they didn't run before, showing up as test failures like in https://lab.llvm.org/buildbot/#/builders/66/builds/19787.
1 parent 37282bc commit f7e8350

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

compiler-rt/test/builtins/Unit/fixunstfdi_test.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
// XFAIL: target=aarch64-{{.*}}-windows-{{.*}}
12
// RUN: %clang_builtins %s %librt -o %t && %run %t
23
// REQUIRES: librt_has_fixunstfdi
34

45
#include <stdio.h>
56

6-
#include "int_lib.h"
7+
#if _ARCH_PPC || __aarch64__ || __arm64ec__
78

8-
#if defined(CRT_HAS_TF_MODE)
9+
#include "int_lib.h"
910

1011
// Returns: convert a to a unsigned long long, rounding toward zero.
1112
// Negative values all become zero.
@@ -34,7 +35,7 @@ char assumption_3[sizeof(long double)*CHAR_BIT == 128] = {0};
3435

3536
int main()
3637
{
37-
#if defined(CRT_HAS_TF_MODE)
38+
#if _ARCH_PPC || __aarch64__ || __arm64ec__
3839
if (test__fixunstfdi(0.0, 0))
3940
return 1;
4041

compiler-rt/test/builtins/Unit/multc3_test.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
// XFAIL: target=aarch64-{{.*}}-windows-{{.*}}
12
// RUN: %clang_builtins %s %librt -o %t && %run %t
23
// REQUIRES: librt_has_multc3
34

45
#include <stdio.h>
56

6-
#include "int_lib.h"
7-
8-
#if defined(CRT_HAS_128BIT) && defined(CRT_HAS_F128)
7+
#if _ARCH_PPC || __aarch64__ || __arm64ec__
98

9+
#include "int_lib.h"
1010
#include <math.h>
1111
#include <complex.h>
1212

@@ -348,7 +348,7 @@ long double x[][2] =
348348

349349
int main()
350350
{
351-
#if defined(CRT_HAS_128BIT) && defined(CRT_HAS_F128)
351+
#if _ARCH_PPC || __aarch64__ || __arm64ec__
352352
const unsigned N = sizeof(x) / sizeof(x[0]);
353353
unsigned i, j;
354354
for (i = 0; i < N; ++i)

0 commit comments

Comments
 (0)