[llvm-bugs] [Bug 24308] assembler: suboptimal encoding of memory operand

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 20 08:42:26 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=24308

Nirav Dave <niravd at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
                 CC|                            |niravd at google.com

--- Comment #1 from Nirav Dave <niravd at google.com> ---
This appears to have been caused by not fully folding the constant in the
address. Dumping to assembly results in 

vpaddd  12(%rdi,%rax), %xmm0, %xmm0 # encoding: [0xc5,0xf9,0xfe,0x44,0x07,0x0c]
vpaddd  12(%rdi,%rax), %xmm0, %xmm0 # encoding: [0xc5,0xf9,0xfe,0x44,0x07,0x0c]
vpaddd  12(%rdi,%rax), %xmm0, %xmm0 # encoding: [0xc5,0xf9,0xfe,0x44,0x07,0x0c]
vpaddd  16-4(%rdi,%rax), %xmm0, %xmm0 #
encoding:[0xc5,0xf9,0xfe,0x84,0x07,A,A,A,A]
                                      #   fixup A - offset: 5, value: 16-4,
kind: reloc_signed_4byte

This was fixed after the 5 release sometime.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180320/7d02ef9a/attachment.html>


More information about the llvm-bugs mailing list