[LLVMbugs] [Bug 24308] New: assembler: suboptimal encoding of memory operand
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jul 29 15:50:54 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24308
Bug ID: 24308
Summary: assembler: suboptimal encoding of memory operand
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: Wolfgang_Pieb at playstation.sony.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Given the following assembly input
vpaddd 16+0-4(%rdi, %rax), %xmm0, %xmm0
vpaddd 16+(0-4)(%rdi, %rax), %xmm0, %xmm0
vpaddd (16+0-4)(%rdi, %rax), %xmm0, %xmm0
vpaddd (16+0)-4(%rdi, %rax), %xmm0, %xmm0
clang creates suboptimal object code for the last instruction (using a 32-bit
offset instead of an 8-bit one):
Disassembly of section .text:
0000000000000000 <.text>:
0: c5 f9 fe 44 07 0c vpaddd 0xc(%rdi,%rax,1),%xmm0,%xmm0
6: c5 f9 fe 44 07 0c vpaddd 0xc(%rdi,%rax,1),%xmm0,%xmm0
c: c5 f9 fe 44 07 0c vpaddd 0xc(%rdi,%rax,1),%xmm0,%xmm0
12: c5 f9 fe 84 07 0c 00 vpaddd 0xc(%rdi,%rax,1),%xmm0,%xmm0
19: 00 00
--
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/20150729/8c1da33c/attachment.html>
More information about the llvm-bugs
mailing list