Skip to content

Commit

Permalink
[builtins] Guard the divtc3_test.c test with CRT_HAS_TF_MODE (#71876)
Browse files Browse the repository at this point in the history
The bots on https://green.lab.llvm.org/green/job/clang-stage1-RA/ were
failing this test.
  • Loading branch information
aemerson committed Nov 10, 2023
1 parent 6e6352f commit 77d75dc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions compiler-rt/test/builtins/Unit/divtc3_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <math.h>

// Returns: the quotient of (a + ib) / (c + id)
#if defined(CRT_HAS_TF_MODE)

COMPILER_RT_ABI Qcomplex __divtc3(tf_float __a, tf_float __b, tf_float __c,
tf_float __d);
Expand Down Expand Up @@ -363,3 +364,12 @@ int main() {
fprintf(stderr, "No errors found.\n");
return 0;
}

#else

int main() {
printf("skipped\n");
return 0;
}

#endif // CRT_HAS_TF_MODE

0 comments on commit 77d75dc

Please sign in to comment.