[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / tools / sancov / print_coverage_pcs.test
blobf2c1b2881e8d006fc78450fa73d9bd627c32c634
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
7 LINUX: 0x4e132b
8 LINUX: 0x4e1472
9 LINUX: 0x4e14c2
10 LINUX: 0x4e1520
11 LINUX: 0x4e1553
12 LINUX: 0x4e1586
13 LINUX: 0x4e1635
14 LINUX: 0x4e1690
15 LINUX: 0x4e178c
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>
21 WINDOWS: 0x140001043
22 DISAS_WIN: 140001074: {{.*}}  callq   {{.*}} <__sanitizer_cov>
23 WINDOWS: 0x140001078
24 DISAS_WIN: 1400011df: {{.*}}  callq   {{.*}} <__sanitizer_cov>
25 WINDOWS: 0x1400011e3
26 DISAS_WIN: 140001227: {{.*}}  callq   {{.*}} <__sanitizer_cov>
27 WINDOWS: 0x14000122b
28 DISAS_WIN: 14000147e: {{.*}}  callq   {{.*}} <__sanitizer_cov>
29 WINDOWS: 0x140001482
30 DISAS_WIN: 1400015b6: {{.*}}  callq   {{.*}} <__sanitizer_cov>
31 WINDOWS: 0x1400015ba
32 DISAS_WIN: 140001629: {{.*}}  callq   {{.*}} <__sanitizer_cov>
33 WINDOWS: 0x14000162d
34 DISAS_WIN: 140001664: {{.*}}  callq   {{.*}} <__sanitizer_cov>
35 WINDOWS: 0x140001668
36 DISAS_WIN: 1400016f2: {{.*}}  callq   {{.*}} <__sanitizer_cov>
37 WINDOWS: 0x1400016f6
39 CHECK: 0x4e132b
40 CHECK: 0x4e1472
41 CHECK: 0x4e14c2
42 CHECK: 0x4e1520
43 CHECK: 0x4e1553
44 CHECK: 0x4e1586
45 CHECK: 0x4e1635
46 CHECK: 0x4e1690
47 CHECK: 0x4e178c
49 DARWIN: 0x100001527
50 DARWIN: 0x100001668
51 DARWIN: 0x1000016b7
52 DARWIN: 0x1000016dd
53 DARWIN: 0x10000179d
54 DARWIN: 0x1000017cc
55 DARWIN: 0x10000189d
56 DARWIN: 0x1000018e0
57 DARWIN: 0x100001906
58 DARWIN: 0x1000019dc
59 DARWIN: 0x100001a28