Skip to content

Commit 6567070

Browse files
authored
[compiler-rt] Fix test ifdefs and XFAILs (#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 aa08b1a commit 6567070

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
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>
65

7-
#if defined(CRT_HAS_TF_MODE)
8-
96
#include "int_lib.h"
107

8+
#if defined(CRT_HAS_TF_MODE)
9+
1110
// Returns: convert a to a unsigned long long, rounding toward zero.
1211
// Negative values all become zero.
1312

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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>
65

6+
#include "int_lib.h"
7+
78
#if defined(CRT_HAS_128BIT) && defined(CRT_HAS_F128)
89

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

0 commit comments

Comments
 (0)