Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-mca / X86 / option-no-stats-1.s
blobd505dd9bc3e2ac7ef8a65e9da01408a59bd5fb23
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -all-views -all-stats=false < %s | FileCheck %s
4 # We don't want to disable the SummaryView if flag -all-stats is set to false.
6 add %edi, %eax
8 # CHECK: Iterations: 100
9 # CHECK-NEXT: Instructions: 100
10 # CHECK-NEXT: Total Cycles: 103
11 # CHECK-NEXT: Total uOps: 100
13 # CHECK: Dispatch Width: 2
14 # CHECK-NEXT: uOps Per Cycle: 0.97
15 # CHECK-NEXT: IPC: 0.97
16 # CHECK-NEXT: Block RThroughput: 0.5
18 # CHECK: Cycles with backend pressure increase [ 76.70% ]
19 # CHECK-NEXT: Throughput Bottlenecks:
20 # CHECK-NEXT: Resource Pressure [ 0.00% ]
21 # CHECK-NEXT: Data Dependencies: [ 76.70% ]
22 # CHECK-NEXT: - Register Dependencies [ 76.70% ]
23 # CHECK-NEXT: - Memory Dependencies [ 0.00% ]
25 # CHECK: Critical sequence based on the simulation:
27 # CHECK: Instruction Dependency Information
28 # CHECK-NEXT: +----< 0. addl %edi, %eax
29 # CHECK-NEXT: |
30 # CHECK-NEXT: | < loop carried >
31 # CHECK-NEXT: |
32 # CHECK-NEXT: +----> 0. addl %edi, %eax ## REGISTER dependency: %eax
33 # CHECK-NEXT: |
34 # CHECK-NEXT: | < loop carried >
35 # CHECK-NEXT: |
36 # CHECK-NEXT: +----> 0. addl %edi, %eax ## REGISTER dependency: %eax
38 # CHECK: Instruction Info:
39 # CHECK-NEXT: [1]: #uOps
40 # CHECK-NEXT: [2]: Latency
41 # CHECK-NEXT: [3]: RThroughput
42 # CHECK-NEXT: [4]: MayLoad
43 # CHECK-NEXT: [5]: MayStore
44 # CHECK-NEXT: [6]: HasSideEffects (U)
46 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
47 # CHECK-NEXT: 1 1 0.50 addl %edi, %eax
49 # CHECK: Resources:
50 # CHECK-NEXT: [0] - JALU0
51 # CHECK-NEXT: [1] - JALU1
52 # CHECK-NEXT: [2] - JDiv
53 # CHECK-NEXT: [3] - JFPA
54 # CHECK-NEXT: [4] - JFPM
55 # CHECK-NEXT: [5] - JFPU0
56 # CHECK-NEXT: [6] - JFPU1
57 # CHECK-NEXT: [7] - JLAGU
58 # CHECK-NEXT: [8] - JMul
59 # CHECK-NEXT: [9] - JSAGU
60 # CHECK-NEXT: [10] - JSTC
61 # CHECK-NEXT: [11] - JVALU0
62 # CHECK-NEXT: [12] - JVALU1
63 # CHECK-NEXT: [13] - JVIMUL
65 # CHECK: Resource pressure per iteration:
66 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
67 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - -
69 # CHECK: Resource pressure by instruction:
70 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
71 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - addl %edi, %eax
73 # CHECK: Timeline view:
74 # CHECK-NEXT: 012
75 # CHECK-NEXT: Index 0123456789
77 # CHECK: [0,0] DeER . . . addl %edi, %eax
78 # CHECK-NEXT: [1,0] D=eER. . . addl %edi, %eax
79 # CHECK-NEXT: [2,0] .D=eER . . addl %edi, %eax
80 # CHECK-NEXT: [3,0] .D==eER . . addl %edi, %eax
81 # CHECK-NEXT: [4,0] . D==eER . . addl %edi, %eax
82 # CHECK-NEXT: [5,0] . D===eER . . addl %edi, %eax
83 # CHECK-NEXT: [6,0] . D===eER. . addl %edi, %eax
84 # CHECK-NEXT: [7,0] . D====eER . addl %edi, %eax
85 # CHECK-NEXT: [8,0] . D====eER. addl %edi, %eax
86 # CHECK-NEXT: [9,0] . D=====eER addl %edi, %eax
88 # CHECK: Average Wait times (based on the timeline view):
89 # CHECK-NEXT: [0]: Executions
90 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
91 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
92 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
94 # CHECK: [0] [1] [2] [3]
95 # CHECK-NEXT: 0. 10 3.5 0.1 0.0 addl %edi, %eax