public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] x86-64: respect MOVABS when choosing alternative encodings
@ 2023-01-27 11:10 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2023-01-27 11:10 UTC (permalink / raw)
  To: Binutils; +Cc: H.J. Lu

The alternative encoding is valid for MOV, but there's no such thing for
MOVABS.

--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -6888,7 +6888,8 @@ match_template (char mnem_suffix)
 	    continue;
 
 	  if (t->base_opcode == MOV_AX_DISP32
-	      && t->opcode_modifier.opcodespace == SPACE_BASE)
+	      && t->opcode_modifier.opcodespace == SPACE_BASE
+	      && t->mnem_off != MN_movabs)
 	    {
 	      /* Force 0x8b encoding for "mov foo@GOT, %eax".  */
 	      if (i.reloc[0] == BFD_RELOC_386_GOT32)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-27 11:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-27 11:10 [PATCH] x86-64: respect MOVABS when choosing alternative encodings Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).