From eca2e8bf6cd99e0daffd0b49a852e86adaa13417 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 13 May 2024 12:25:37 +0200 Subject: [PATCH] ddraw: Use GNU assembly syntax on clang x86_64 MSVC target. --- dlls/ddraw/device.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index eb1ad90ee0f..896eea68f14 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -42,10 +42,10 @@ const GUID IID_D3DDEVICE_WineD3D = { static inline void set_fpu_control_word(WORD fpucw) { -#if defined(__i386__) && defined(__GNUC__) - __asm__ volatile ("fldcw %0" : : "m" (fpucw)); -#elif defined(__i386__) && defined(_MSC_VER) +#if defined(__i386__) && defined(_MSC_VER) __asm fldcw fpucw; +#elif defined(__i386__) || (defined(__x86_64__) && !defined(__arm64ec__) && (defined(__GNUC__) || defined(__clang__))) + __asm__ volatile ("fldcw %0" : : "m" (fpucw)); #endif } @@ -53,10 +53,10 @@ static inline WORD d3d_fpu_setup(void) { WORD oldcw; -#if defined(__i386__) && defined(__GNUC__) - __asm__ volatile ("fnstcw %0" : "=m" (oldcw)); -#elif defined(__i386__) && defined(_MSC_VER) +#if defined(__i386__) && defined(_MSC_VER) __asm fnstcw oldcw; +#elif defined(__i386__) || (defined(__x86_64__) && !defined(__arm64ec__) && (defined(__GNUC__) || defined(__clang__))) + __asm__ volatile ("fnstcw %0" : "=m" (oldcw)); #else static BOOL warned = FALSE; if(!warned)