From 8eb13e3373bc30a1454a7985fbd432931b3ed9eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20J=2E=20Rodr=C3=ADguez?= Date: Tue, 17 Nov 2026 21:34:43 +0100 Subject: [PATCH] x86: fix COMISD memory operand size - 66 0f 2f 00 (32): COMISD compares a scalar double, so its memory operand is now reported as qword instead of xmmword. Backport of #2750. --- arch/X86/X86IntelInstPrinter.c | 1 - suite/cstest/issues.cs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/X86/X86IntelInstPrinter.c b/arch/X86/X86IntelInstPrinter.c index eb1c290b56..870296a73e 100644 --- a/arch/X86/X86IntelInstPrinter.c +++ b/arch/X86/X86IntelInstPrinter.c @@ -237,7 +237,6 @@ static void printf64mem(MCInst *MI, unsigned OpNo, SStream *O) MI->x86opsize = 8; break; case X86_MOVPQI2QImr: - case X86_COMISDrm: SStream_concat0(O, "xmmword ptr "); MI->x86opsize = 16; break; diff --git a/suite/cstest/issues.cs b/suite/cstest/issues.cs index f6675a34e6..6d065c58e1 100644 --- a/suite/cstest/issues.cs +++ b/suite/cstest/issues.cs @@ -403,9 +403,9 @@ !# CS_ARCH_X86, CS_MODE_32, None 0xf0,0x12,0x45,0x08 == lock adc al, byte ptr [ebp + 8] -!# issue 1456 xmmword +!# issue 1456/2748 xmmword !# CS_ARCH_X86, CS_MODE_32, None -0x66,0x0f,0x2f,0x00 == comisd xmm0, xmmword ptr [eax] +0x66,0x0f,0x2f,0x00 == comisd xmm0, qword ptr [eax] !# issue 1456 ARM printPKHASRShiftImm !# CS_ARCH_ARM, CS_MODE_THUMB, None