[LLVMbugs] [Bug 23445] New: TestCases/Linux/coverage-missing.cc fails on i686

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 7 11:23:53 PDT 2015


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

            Bug ID: 23445
           Summary: TestCases/Linux/coverage-missing.cc fails on i686
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: hjl.tools at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

-- 
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/20150507/f3900d03/attachment.html>


More information about the llvm-bugs mailing list