[compiler-rt] 77d75dc - [builtins] Guard the divtc3_test.c test with CRT_HAS_TF_MODE (#71876)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 10 11:30:23 PST 2023
Author: Amara Emerson
Date: 2023-11-10T11:30:18-08:00
New Revision: 77d75dc9be5c4bb1d9986a475e1c661718067c6a
URL: https://github.com/llvm/llvm-project/commit/77d75dc9be5c4bb1d9986a475e1c661718067c6a
DIFF: https://github.com/llvm/llvm-project/commit/77d75dc9be5c4bb1d9986a475e1c661718067c6a.diff
LOG: [builtins] Guard the divtc3_test.c test with CRT_HAS_TF_MODE (#71876)
The bots on https://green.lab.llvm.org/green/job/clang-stage1-RA/ were
failing this test.
Added:
Modified:
compiler-rt/test/builtins/Unit/divtc3_test.c
Removed:
################################################################################
diff --git a/compiler-rt/test/builtins/Unit/divtc3_test.c b/compiler-rt/test/builtins/Unit/divtc3_test.c
index 9ba4880f4a11027..33a7f869432f352 100644
--- a/compiler-rt/test/builtins/Unit/divtc3_test.c
+++ b/compiler-rt/test/builtins/Unit/divtc3_test.c
@@ -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);
@@ -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
More information about the llvm-commits
mailing list