Revert "[compiler-rt] Disable tests for unavailable builtins (#158664)"

This reverts commit e9e166e54354330c474457711a8e7a7ca2efd731,
and the follow-up fix 656707086e5f6fccd2eb57f5aaf987c328c0f4f1.

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.
This commit is contained in:
Martin Storsjö 2025-09-26 20:34:12 +03:00
parent 37282bcee1
commit f7e8350f0b
2 changed files with 8 additions and 7 deletions

View File

@ -1,11 +1,12 @@
// XFAIL: target=aarch64-{{.*}}-windows-{{.*}}
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunstfdi
#include <stdio.h>
#include "int_lib.h"
#if _ARCH_PPC || __aarch64__ || __arm64ec__
#if defined(CRT_HAS_TF_MODE)
#include "int_lib.h"
// Returns: convert a to a unsigned long long, rounding toward zero.
// Negative values all become zero.
@ -34,7 +35,7 @@ char assumption_3[sizeof(long double)*CHAR_BIT == 128] = {0};
int main()
{
#if defined(CRT_HAS_TF_MODE)
#if _ARCH_PPC || __aarch64__ || __arm64ec__
if (test__fixunstfdi(0.0, 0))
return 1;

View File

@ -1,12 +1,12 @@
// XFAIL: target=aarch64-{{.*}}-windows-{{.*}}
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_multc3
#include <stdio.h>
#if _ARCH_PPC || __aarch64__ || __arm64ec__
#include "int_lib.h"
#if defined(CRT_HAS_128BIT) && defined(CRT_HAS_F128)
#include <math.h>
#include <complex.h>
@ -348,7 +348,7 @@ long double x[][2] =
int main()
{
#if defined(CRT_HAS_128BIT) && defined(CRT_HAS_F128)
#if _ARCH_PPC || __aarch64__ || __arm64ec__
const unsigned N = sizeof(x) / sizeof(x[0]);
unsigned i, j;
for (i = 0; i < N; ++i)