bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/22871] New: Encode instructions of 64-bit registers without the


From: hjl.tools at gmail dot com
Subject: [Bug gas/22871] New: Encode instructions of 64-bit registers without the REX_W bit
Date: Wed, 21 Feb 2018 12:52:17 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22871

            Bug ID: 22871
           Summary: Encode instructions of 64-bit registers without the
                    REX_W bit
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: x86-64

When the upper 32 bits of destination registers of instructions are known
to be zero, we can encode them without the REX_W bit.  For example,

    andq $imm31, %r64
    xorq %r64, %r64

can be encoded as:

    andl $imm31, %r32
    xorl %r32, %r32

To make assembler more predictable, this optimization should be done only
when -O is passed to assembler.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]