<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:russell_gallop@sn.scee.net" title="Russell Gallop <russell_gallop@sn.scee.net>"> <span class="fn">Russell Gallop</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - Different encoding using direct object emission"
   href="https://llvm.org/bugs/show_bug.cgi?id=22854">bug 22854</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>FIXED
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - Different encoding using direct object emission"
   href="https://llvm.org/bugs/show_bug.cgi?id=22854#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - Different encoding using direct object emission"
   href="https://llvm.org/bugs/show_bug.cgi?id=22854">bug 22854</a>
              from <span class="vcard"><a class="email" href="mailto:russell_gallop@sn.scee.net" title="Russell Gallop <russell_gallop@sn.scee.net>"> <span class="fn">Russell Gallop</span></a>
</span></b>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>