--
Best regards,
LIU Hao

From f2a42b8828d261a0db1d5ccc6e1f1c697e8bcb28 Mon Sep 17 00:00:00 2001
From: LIU Hao <[email protected]>
Date: Sun, 27 Oct 2024 14:35:04 +0800
Subject: [PATCH] include/intrin: Don't prefix segment register names in Intel
 syntax

Signed-off-by: LIU Hao <[email protected]>
---
 mingw-w64-headers/include/psdk_inc/intrin-impl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-headers/include/psdk_inc/intrin-impl.h 
b/mingw-w64-headers/include/psdk_inc/intrin-impl.h
index 16ccecc13..a6c6f65b0 100644
--- a/mingw-w64-headers/include/psdk_inc/intrin-impl.h
+++ b/mingw-w64-headers/include/psdk_inc/intrin-impl.h
@@ -230,7 +230,7 @@ Parameters: (FunctionName, DataType, Segment)
 
 #define __buildreadseg(x, y, z, a) y x(unsigned __LONG32 Offset) { \
     y ret; \
-    __asm__ ("mov{" a " %%" z ":%[offset], %[ret] | %[ret], %%" z 
":%[offset]}" \
+    __asm__ ("mov{" a " %%" z ":%[offset], %[ret] | %[ret], " z ":%[offset]}" \
         : [ret] "=r" (ret) \
         : [offset] "m" ((*(y *) (size_t) Offset))); \
     return ret; \
@@ -247,7 +247,7 @@ Parameters: (FunctionName, DataType, Segment)
    */
 
 #define __buildwriteseg(x, y, z, a) void x(unsigned __LONG32 Offset, y Data) { 
\
-    __asm__ ("mov{" a " %[Data], %%" z ":%[offset] | %%" z ":%[offset], 
%[Data]}" \
+    __asm__ ("mov{" a " %[Data], %%" z ":%[offset] | " z ":%[offset], 
%[Data]}" \
         : [offset] "=m" ((*(y *) (size_t) Offset)) \
         : [Data] "ri" (Data)); \
 }
-- 
2.47.0

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to