[LLVMbugs] [Bug 22854] Different encoding using direct object emission
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Mar 16 03:38:18 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=22854
Russell Gallop <russell_gallop at sn.scee.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #4 from Russell Gallop <russell_gallop at sn.scee.net> ---
Thanks for the fix Rafael.
It looks like that has improved the add encoding but I still get longer
encodings for the compare and jump instructions:
test.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <_Z3foov>:
0: 55 push %rbp
1: 48 89 e5 mov %rsp,%rbp
4: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%rbp)
b: 81 7d fc 01 00 00 00 cmpl $0x1,-0x4(%rbp)
12: 0f 84 13 00 00 00 je 2b <_Z3foov+0x2b>
18: e9 00 00 00 00 jmpq 1d <_Z3foov+0x1d>
1d: 8b 45 fc mov -0x4(%rbp),%eax
20: 83 c0 01 add $0x1,%eax
23: 89 45 fc mov %eax,-0x4(%rbp)
26: e9 e0 ff ff ff jmpq b <_Z3foov+0xb>
2b: 5d pop %rbp
2c: c3 retq
I've reopened but can submit this as a separate bug if you think that would be
best.
--
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/20150316/ec231703/attachment.html>
More information about the llvm-bugs
mailing list