Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-mca / X86 / llvm-mca-markers-10.s
blob8420f03bf0cb5a8d36896760f7cab374151ba02e
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 < %s | FileCheck %s
4 testloop:
5 # LLVM-MCA-BEGIN upper
6 leal 42(%rdi), %eax
7 # LLVM-MCA-BEGIN lower
8 imull %esi, %eax
9 # LLVM-MCA-END upper
10 leal 42(%rdi), %eax
11 # LLVM-MCA-END lower
12 imull %esi, %eax
14 # CHECK: [0] Code Region - upper
16 # CHECK: Iterations: 100
17 # CHECK-NEXT: Instructions: 200
18 # CHECK-NEXT: Total Cycles: 205
19 # CHECK-NEXT: Total uOps: 300
21 # CHECK: Dispatch Width: 2
22 # CHECK-NEXT: uOps Per Cycle: 1.46
23 # CHECK-NEXT: IPC: 0.98
24 # CHECK-NEXT: Block RThroughput: 1.5
26 # CHECK: Instruction Info:
27 # CHECK-NEXT: [1]: #uOps
28 # CHECK-NEXT: [2]: Latency
29 # CHECK-NEXT: [3]: RThroughput
30 # CHECK-NEXT: [4]: MayLoad
31 # CHECK-NEXT: [5]: MayStore
32 # CHECK-NEXT: [6]: HasSideEffects (U)
34 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
35 # CHECK-NEXT: 1 1 0.50 leal 42(%rdi), %eax
36 # CHECK-NEXT: 2 3 1.00 imull %esi, %eax
38 # CHECK: Resources:
39 # CHECK-NEXT: [0] - JALU0
40 # CHECK-NEXT: [1] - JALU1
41 # CHECK-NEXT: [2] - JDiv
42 # CHECK-NEXT: [3] - JFPA
43 # CHECK-NEXT: [4] - JFPM
44 # CHECK-NEXT: [5] - JFPU0
45 # CHECK-NEXT: [6] - JFPU1
46 # CHECK-NEXT: [7] - JLAGU
47 # CHECK-NEXT: [8] - JMul
48 # CHECK-NEXT: [9] - JSAGU
49 # CHECK-NEXT: [10] - JSTC
50 # CHECK-NEXT: [11] - JVALU0
51 # CHECK-NEXT: [12] - JVALU1
52 # CHECK-NEXT: [13] - JVIMUL
54 # CHECK: Resource pressure per iteration:
55 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
56 # CHECK-NEXT: 0.99 1.01 - - - - - - 1.00 - - - - -
58 # CHECK: Resource pressure by instruction:
59 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
60 # CHECK-NEXT: 0.99 0.01 - - - - - - - - - - - - leal 42(%rdi), %eax
61 # CHECK-NEXT: - 1.00 - - - - - - 1.00 - - - - - imull %esi, %eax
63 # CHECK: [1] Code Region - lower
65 # CHECK: Iterations: 100
66 # CHECK-NEXT: Instructions: 200
67 # CHECK-NEXT: Total Cycles: 204
68 # CHECK-NEXT: Total uOps: 300
70 # CHECK: Dispatch Width: 2
71 # CHECK-NEXT: uOps Per Cycle: 1.47
72 # CHECK-NEXT: IPC: 0.98
73 # CHECK-NEXT: Block RThroughput: 1.5
75 # CHECK: Instruction Info:
76 # CHECK-NEXT: [1]: #uOps
77 # CHECK-NEXT: [2]: Latency
78 # CHECK-NEXT: [3]: RThroughput
79 # CHECK-NEXT: [4]: MayLoad
80 # CHECK-NEXT: [5]: MayStore
81 # CHECK-NEXT: [6]: HasSideEffects (U)
83 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
84 # CHECK-NEXT: 2 3 1.00 imull %esi, %eax
85 # CHECK-NEXT: 1 1 0.50 leal 42(%rdi), %eax
87 # CHECK: Resources:
88 # CHECK-NEXT: [0] - JALU0
89 # CHECK-NEXT: [1] - JALU1
90 # CHECK-NEXT: [2] - JDiv
91 # CHECK-NEXT: [3] - JFPA
92 # CHECK-NEXT: [4] - JFPM
93 # CHECK-NEXT: [5] - JFPU0
94 # CHECK-NEXT: [6] - JFPU1
95 # CHECK-NEXT: [7] - JLAGU
96 # CHECK-NEXT: [8] - JMul
97 # CHECK-NEXT: [9] - JSAGU
98 # CHECK-NEXT: [10] - JSTC
99 # CHECK-NEXT: [11] - JVALU0
100 # CHECK-NEXT: [12] - JVALU1
101 # CHECK-NEXT: [13] - JVIMUL
103 # CHECK: Resource pressure per iteration:
104 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
105 # CHECK-NEXT: 1.00 1.00 - - - - - - 1.00 - - - - -
107 # CHECK: Resource pressure by instruction:
108 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
109 # CHECK-NEXT: - 1.00 - - - - - - 1.00 - - - - - imull %esi, %eax
110 # CHECK-NEXT: 1.00 - - - - - - - - - - - - - leal 42(%rdi), %eax