Skip to content

[builtins] Guard the divtc3_test.c test with CRT_HAS_TF_MODE #71876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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