Skip to content

Commit

Permalink
[OpenMP] [test] Skip the -mlong-double-80 test on MSVC ABI (#81115)
Browse files Browse the repository at this point in the history
Within the MSVC ABI, long doubles are the same as regular 64 bit
doubles. This test case, which is compiled with -mlong-double-80, cannot
work when libomp has been compiled without that flag, as
-mlong-double-80 changes the calling convention for the tested
functions.
  • Loading branch information
mstorsjo committed Feb 19, 2024
1 parent 63dd08b commit 4b9c089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openmp/runtime/test/atomic/kmp_atomic_float10_max_min.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extern long double __kmpc_atomic_float10_min_cpt(ident_t *id_ref, int gtid,

int main() {
int ret = 0;
#if KMP_ARCH_X86 || KMP_ARCH_X86_64
#if (KMP_ARCH_X86 || KMP_ARCH_X86_64) && !defined(_MSC_VER)
long double s = 012.3456; // small
long double e = 123.4567; // middle
long double d = 234.5678; // big
Expand Down Expand Up @@ -158,6 +158,6 @@ int main() {
printf("passed\n");
#else
printf("Unsupported architecture, skipping test...\n");
#endif // KMP_ARCH_X86 || KMP_ARCH_X86_64
#endif // (KMP_ARCH_X86 || KMP_ARCH_X86_64) && !defined(_MSC_VER)
return ret;
}

0 comments on commit 4b9c089

Please sign in to comment.