<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - TestCases/Linux/coverage-missing.cc fails on i686"
   href="https://llvm.org/bugs/show_bug.cgi?id=23445">23445</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>TestCases/Linux/coverage-missing.cc fails on i686
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hjl.tools@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>sancov.py thinks i686 has an extra instrumented PC:

08137fc0 <__sanitizer_cov_with_check>:
 8137fc0:       53                      push   %ebx   
 8137fc1:       83 ec 18                sub    $0x18,%esp
 8137fc4:       8b 44 24 20             mov    0x20(%esp),%eax
 8137fc8:       e8 93 55 f2 ff          call   805d560 <__x86.get_pc_thunk.bx>
 8137fcd:       81 c3 07 82 03 00       add    $0x38207,%ebx
 8137fd3:       8b 10                   mov    (%eax),%edx
 8137fd5:       85 d2                   test   %edx,%edx
 8137fd7:       78 07                   js     8137fe0
<__sanitizer_cov_with_check+0x20>
 8137fd9:       83 c4 18                add    $0x18,%esp
 8137fdc:       5b                      pop    %ebx   
 8137fdd:       c3                      ret
 8137fde:       66 90                   xchg   %ax,%ax
 8137fe0:       89 04 24                mov    %eax,(%esp)
 8137fe3:       e8 18 ff ff ff          call   8137f00 <__sanitizer_cov>
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This instrumented PC is uncounted for.

 8137fe8:       83 c4 18                add    $0x18,%esp
 8137feb:       5b                      pop    %ebx   
 8137fec:       c3                      ret
 8137fed:       8d 76 00                lea    0x0(%esi),%esi

while x86-64 has

00000000004ce850 <__sanitizer_cov_with_check>:
  4ce850:       8b 07                   mov    (%rdi),%eax
  4ce852:       85 c0                   test   %eax,%eax
  4ce854:       78 0a                   js     4ce860
<__sanitizer_cov_with_check+0x10>
  4ce856:       f3 c3                   repz retq 
  4ce858:       0f 1f 84 00 00 00 00    nopl   0x0(%rax,%rax,1)
  4ce85f:       00
  4ce860:       e9 0b ff ff ff          jmpq   4ce770 <__sanitizer_cov>
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  4ce865:       90                      nop
  4ce866:       66 2e 0f 1f 84 00 00    nopw   %cs:0x0(%rax,%rax,1)
  4ce86d:       00 00 00</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>