32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
From 469d72a5f965d28b86e806951932f8cca37e33f3 Mon Sep 17 00:00:00 2001
|
|
From: "L. E. Segovia" <amy@centricular.com>
|
|
Date: Fri, 3 Nov 2023 17:33:34 -0300
|
|
Subject: [PATCH] x86insn: Fix binutils warning when comparing with sized
|
|
immediate operand
|
|
|
|
<source>:359: Warning: no instruction mnemonic suffix given and no register operands; using default for `cmp'
|
|
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/126>
|
|
---
|
|
orc/orcx86insn.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/orc/orcx86insn.c b/orc/orcx86insn.c
|
|
index 8df7630c..f6f3a42a 100644
|
|
--- a/orc/orcx86insn.c
|
|
+++ b/orc/orcx86insn.c
|
|
@@ -200,8 +200,8 @@ static const OrcSysOpcode orc_x86_opcodes[] = {
|
|
{ "xor", ORC_X86_INSN_TYPE_IMM32_REGM, 0, 0x00, 0x81, 6 },
|
|
{ "xor", ORC_X86_INSN_TYPE_REGM_REG, 0, 0x00, 0x33 },
|
|
{ "xor", ORC_X86_INSN_TYPE_REG_REGM, 0, 0x00, 0x31 },
|
|
- { "cmp", ORC_X86_INSN_TYPE_IMM8_REGM, 0, 0x00, 0x83, 7 },
|
|
- { "cmp", ORC_X86_INSN_TYPE_IMM32_REGM, 0, 0x00, 0x81, 7 },
|
|
+ { "cmpb", ORC_X86_INSN_TYPE_IMM8_REGM, 0, 0x00, 0x83, 7 },
|
|
+ { "cmpd", ORC_X86_INSN_TYPE_IMM32_REGM, 0, 0x00, 0x81, 7 },
|
|
{ "cmp", ORC_X86_INSN_TYPE_REGM_REG, 0, 0x00, 0x3b },
|
|
{ "cmp", ORC_X86_INSN_TYPE_REG_REGM, 0, 0x00, 0x39 },
|
|
{ "jo", ORC_X86_INSN_TYPE_BRANCH, 0, 0x00, 0x70 },
|
|
--
|
|
GitLab
|
|
|