Projects
Factory:RISC-V:Base
binutils
_service:tar_scm:0007-x86-fold-duplicate-code-i...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0007-x86-fold-duplicate-code-in-MOVSXD_Fixup.patch of Package binutils
From 4454883ff0ee338b1f6aab7f65ab1081af307e7c Mon Sep 17 00:00:00 2001 From: Jan Beulich <jbeulich@suse.com> Date: Thu, 22 Jul 2021 13:03:53 +0200 Subject: [PATCH] x86: fold duplicate code in MOVSXD_Fixup() There's no need to have two paths printing the "xd" mnemonic suffix. diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 725b38b1dda..ddb659fb041 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -13601,31 +13601,25 @@ MOVSXD_Fixup (int bytemode, int sizeflag) switch (bytemode) { case movsxd_mode: - if (intel_syntax) + if (!intel_syntax) { - *p++ = 'x'; - *p++ = 'd'; - goto skip; + USED_REX (REX_W); + if (rex & REX_W) + { + *p++ = 'l'; + *p++ = 'q'; + break; + } } - USED_REX (REX_W); - if (rex & REX_W) - { - *p++ = 'l'; - *p++ = 'q'; - } - else - { - *p++ = 'x'; - *p++ = 'd'; - } + *p++ = 'x'; + *p++ = 'd'; break; default: oappend (INTERNAL_DISASSEMBLER_ERROR); break; } - skip: mnemonicendp = p; *p = '\0'; OP_E (bytemode, sizeflag); -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2