Module: wine Branch: master Commit: 5ae8bf3d93d7a7bc2134bee3c0e743b17e818399 URL: https://gitlab.winehq.org/wine/wine/-/commit/5ae8bf3d93d7a7bc2134bee3c0e743b...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jun 6 11:09:31 2024 +0200
kernel32/tests: Add test for FPU control words on ARM64EC.
---
dlls/kernel32/tests/thread.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c index 9925da32222..34a8f84d92c 100644 --- a/dlls/kernel32/tests/thread.c +++ b/dlls/kernel32/tests/thread.c @@ -1889,7 +1889,13 @@ struct fpu_thread_ctx
static inline unsigned long get_fpu_cw(void) { -#if defined(__i386__) || defined(__x86_64__) +#ifdef __arm64ec__ + extern NTSTATUS (*__os_arm64x_get_x64_information)(ULONG,void*,void*); + unsigned int cw, sse; + __os_arm64x_get_x64_information( 0, &sse, NULL ); + __os_arm64x_get_x64_information( 2, &cw, NULL ); + return MAKELONG( cw, sse ); +#elif defined(__i386__) || defined(__x86_64__) WORD cw = 0; unsigned int sse = 0; #ifdef _MSC_VER