Skip to content

Commit 77d75dc

Browse files
authored
[builtins] Guard the divtc3_test.c test with CRT_HAS_TF_MODE (llvm#71876)
The bots on https://green.lab.llvm.org/green/job/clang-stage1-RA/ were failing this test.
1 parent 6e6352f commit 77d75dc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

+10
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <math.h>
1515

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

1819
COMPILER_RT_ABI Qcomplex __divtc3(tf_float __a, tf_float __b, tf_float __c,
1920
tf_float __d);
@@ -363,3 +364,12 @@ int main() {
363364
fprintf(stderr, "No errors found.\n");
364365
return 0;
365366
}
367+
368+
#else
369+
370+
int main() {
371+
printf("skipped\n");
372+
return 0;
373+
}
374+
375+
#endif // CRT_HAS_TF_MODE

0 commit comments

Comments
 (0)