1 REQUIRES: x86-registered-target
2 RUN: sancov -print-coverage-pcs %p/Inputs/test-linux_x86_64 | FileCheck %s --check-prefix=LINUX
3 RUN: llvm-objdump -d %p/Inputs/test-windows_x86_64 | FileCheck %s --check-prefix=DISAS_WIN
4 RUN: sancov -print-coverage-pcs %p/Inputs/test-windows_x86_64 | FileCheck %s --check-prefix=WINDOWS
5 RUN: sancov -print-coverage-pcs %p/Inputs/test-darwin_x86_64 | FileCheck %s --check-prefix=DARWIN
17 The coverage PCs should be equal to the return address of the call minus one. A
18 direct call is five bytes, so the coverage PCs should be call PC plus four.
20 DISAS_WIN: 14000103f: {{.*}} callq {{.*}} <__sanitizer_cov>
22 DISAS_WIN: 140001074: {{.*}} callq {{.*}} <__sanitizer_cov>
24 DISAS_WIN: 1400011df: {{.*}} callq {{.*}} <__sanitizer_cov>
26 DISAS_WIN: 140001227: {{.*}} callq {{.*}} <__sanitizer_cov>
28 DISAS_WIN: 14000147e: {{.*}} callq {{.*}} <__sanitizer_cov>
30 DISAS_WIN: 1400015b6: {{.*}} callq {{.*}} <__sanitizer_cov>
32 DISAS_WIN: 140001629: {{.*}} callq {{.*}} <__sanitizer_cov>
34 DISAS_WIN: 140001664: {{.*}} callq {{.*}} <__sanitizer_cov>
36 DISAS_WIN: 1400016f2: {{.*}} callq {{.*}} <__sanitizer_cov>