Skip to content

Commit ad19665

Browse files
mstorsjoahatanak
authored andcommitted
[compiler-rt] Fix test ifdefs and XFAILs (llvm#160687)
This fixes the ifdefs added in e9e166e; we need to include int_lib.h first before we can expect these defines to be set. Also remove the XFAILs for aarch64 windows. As this test now became a no-op on platforms that lack CRT_HAS_128BIT or CRT_HAS_F128 (aarch64 windows lacks the latter), it no longer fails.
1 parent c9492a0 commit ad19665

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
// XFAIL: target=aarch64-{{.*}}-windows-{{.*}}
21
// RUN: %clang_builtins %s %librt -o %t && %run %t
32
// REQUIRES: librt_has_fixunstfdi
43

54
#include <stdio.h>
5+
#include "int_lib.h"
66

77
#if defined(CRT_HAS_TF_MODE)
88

99
#define QUAD_PRECISION
1010
#include "fp_lib.h"
1111

12-
#include "int_lib.h"
13-
1412
// Returns: convert a to a unsigned long long, rounding toward zero.
1513
// Negative values all become zero.
1614

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
// XFAIL: target=aarch64-{{.*}}-windows-{{.*}}
21
// RUN: %clang_builtins %s %librt -o %t && %run %t
32
// REQUIRES: librt_has_multc3
43

54
#include <stdio.h>
5+
#include "int_lib.h"
66

77
#if defined(CRT_HAS_128BIT) && defined(CRT_HAS_F128)
88

99
#define QUAD_PRECISION
1010
#include "fp_lib.h"
1111

12-
#include "int_lib.h"
1312
#include <math.h>
1413
#include <complex.h>
1514

0 commit comments

Comments
 (0)