Skip to content

Commit 4b9c089

Browse files
authored
[OpenMP] [test] Skip the -mlong-double-80 test on MSVC ABI (#81115)
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.
1 parent 63dd08b commit 4b9c089

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openmp/runtime/test/atomic/kmp_atomic_float10_max_min.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ extern long double __kmpc_atomic_float10_min_cpt(ident_t *id_ref, int gtid,
2828

2929
int main() {
3030
int ret = 0;
31-
#if KMP_ARCH_X86 || KMP_ARCH_X86_64
31+
#if (KMP_ARCH_X86 || KMP_ARCH_X86_64) && !defined(_MSC_VER)
3232
long double s = 012.3456; // small
3333
long double e = 123.4567; // middle
3434
long double d = 234.5678; // big
@@ -158,6 +158,6 @@ int main() {
158158
printf("passed\n");
159159
#else
160160
printf("Unsupported architecture, skipping test...\n");
161-
#endif // KMP_ARCH_X86 || KMP_ARCH_X86_64
161+
#endif // (KMP_ARCH_X86 || KMP_ARCH_X86_64) && !defined(_MSC_VER)
162162
return ret;
163163
}

0 commit comments

Comments
 (0)