Debian Codegraph @

llvm/test/tools/llvm-mca/X86/bzhi-read-after-ld.s

raw
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=haswell -iterations=1 -timeline -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,HASWELL
3 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=broadwell -iterations=1 -timeline -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,BDWELL
4 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=skylake -iterations=1 -timeline -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,SKYLAKE
5 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=icelake-server -iterations=1 -timeline -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,SKYLAKE
6 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver1 -iterations=1 -timeline -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,ZNVER1
7 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver2 -iterations=1 -timeline -resource-pressure=false < %s | FileCheck %s -check-prefixes=ALL,ZNVER2
8
9 add %edi, %esi
10 bzhil %esi, (%rdi), %eax
11
12 # ALL: Iterations: 1
13 # ALL-NEXT: Instructions: 2
14
15 # BDWELL-NEXT: Total Cycles: 9
16 # HASWELL-NEXT: Total Cycles: 9
17 # SKYLAKE-NEXT: Total Cycles: 9
18 # ZNVER1-NEXT: Total Cycles: 8
19 # ZNVER2-NEXT: Total Cycles: 8
20
21 # ALL-NEXT: Total uOps: 3
22
23 # BDWELL: Dispatch Width: 4
24 # BDWELL-NEXT: uOps Per Cycle: 0.33
25 # BDWELL-NEXT: IPC: 0.22
26 # BDWELL-NEXT: Block RThroughput: 0.8
27
28 # HASWELL: Dispatch Width: 4
29 # HASWELL-NEXT: uOps Per Cycle: 0.33
30 # HASWELL-NEXT: IPC: 0.22
31 # HASWELL-NEXT: Block RThroughput: 0.8
32
33 # SKYLAKE: Dispatch Width: 6
34 # SKYLAKE-NEXT: uOps Per Cycle: 0.33
35 # SKYLAKE-NEXT: IPC: 0.22
36 # SKYLAKE-NEXT: Block RThroughput: 0.5
37
38 # ZNVER1: Dispatch Width: 4
39 # ZNVER1-NEXT: uOps Per Cycle: 0.38
40 # ZNVER1-NEXT: IPC: 0.25
41 # ZNVER1-NEXT: Block RThroughput: 0.8
42
43 # ZNVER2: Dispatch Width: 4
44 # ZNVER2-NEXT: uOps Per Cycle: 0.38
45 # ZNVER2-NEXT: IPC: 0.25
46 # ZNVER2-NEXT: Block RThroughput: 0.8
47
48 # ALL: Instruction Info:
49 # ALL-NEXT: [1]: #uOps
50 # ALL-NEXT: [2]: Latency
51 # ALL-NEXT: [3]: RThroughput
52 # ALL-NEXT: [4]: MayLoad
53 # ALL-NEXT: [5]: MayStore
54 # ALL-NEXT: [6]: HasSideEffects (U)
55
56 # ALL: [1] [2] [3] [4] [5] [6] Instructions:
57 # ALL-NEXT: 1 1 0.25 addl %edi, %esi
58
59 # BDWELL-NEXT: 2 6 0.50 * bzhil %esi, (%rdi), %eax
60 # HASWELL-NEXT: 2 6 0.50 * bzhil %esi, (%rdi), %eax
61 # SKYLAKE-NEXT: 2 6 0.50 * bzhil %esi, (%rdi), %eax
62 # ZNVER1-NEXT: 2 5 0.50 * bzhil %esi, (%rdi), %eax
63 # ZNVER2-NEXT: 2 5 0.33 * bzhil %esi, (%rdi), %eax
64
65 # ALL: Timeline view:
66
67 # BDWELL-NEXT: Index 012345678
68 # HASWELL-NEXT: Index 012345678
69 # SKYLAKE-NEXT: Index 012345678
70 # ZNVER1-NEXT: Index 01234567
71 # ZNVER2-NEXT: Index 01234567
72
73 # BDWELL: [0,0] DeER . . addl %edi, %esi
74 # BDWELL-NEXT: [0,1] DeeeeeeER bzhil %esi, (%rdi), %eax
75
76 # HASWELL: [0,0] DeER . . addl %edi, %esi
77 # HASWELL-NEXT: [0,1] DeeeeeeER bzhil %esi, (%rdi), %eax
78
79 # SKYLAKE: [0,0] DeER . . addl %edi, %esi
80 # SKYLAKE-NEXT: [0,1] DeeeeeeER bzhil %esi, (%rdi), %eax
81
82 # ZNVER1: [0,0] DeER . . addl %edi, %esi
83 # ZNVER1-NEXT: [0,1] DeeeeeER bzhil %esi, (%rdi), %eax
84
85 # ZNVER2: [0,0] DeER . . addl %edi, %esi
86 # ZNVER2-NEXT: [0,1] DeeeeeER bzhil %esi, (%rdi), %eax
87
88 # ALL: Average Wait times (based on the timeline view):
89 # ALL-NEXT: [0]: Executions
90 # ALL-NEXT: [1]: Average time spent waiting in a scheduler's queue
91 # ALL-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
92 # ALL-NEXT: [3]: Average time elapsed from WB until retire stage
93
94 # ALL: [0] [1] [2] [3]
95 # ALL-NEXT: 0. 1 1.0 1.0 0.0 addl %edi, %esi
96 # ALL-NEXT: 1. 1 1.0 0.0 0.0 bzhil %esi, (%rdi), %eax
97 # ALL-NEXT: 1 1.0 0.5 0.0 <total>