Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-mca / X86 / BtVer2 / reg-move-elimination-6.s
blobd4800943b8bf1646f4d3341045c7f8aa519313a9
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -timeline -timeline-max-iterations=3 -register-file-stats < %s | FileCheck %s
4 xor %rsi, %rsi
5 add %rcx, %rcx
6 add %rcx, %rcx
7 add %rcx, %rcx
8 add %rcx, %rcx
9 mov %esi, %ecx
11 # CHECK: Iterations: 100
12 # CHECK-NEXT: Instructions: 600
13 # CHECK-NEXT: Total Cycles: 304
14 # CHECK-NEXT: Total uOps: 600
16 # CHECK: Dispatch Width: 2
17 # CHECK-NEXT: uOps Per Cycle: 1.97
18 # CHECK-NEXT: IPC: 1.97
19 # CHECK-NEXT: Block RThroughput: 3.0
21 # CHECK: Instruction Info:
22 # CHECK-NEXT: [1]: #uOps
23 # CHECK-NEXT: [2]: Latency
24 # CHECK-NEXT: [3]: RThroughput
25 # CHECK-NEXT: [4]: MayLoad
26 # CHECK-NEXT: [5]: MayStore
27 # CHECK-NEXT: [6]: HasSideEffects (U)
29 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
30 # CHECK-NEXT: 1 0 0.50 xorq %rsi, %rsi
31 # CHECK-NEXT: 1 1 0.50 addq %rcx, %rcx
32 # CHECK-NEXT: 1 1 0.50 addq %rcx, %rcx
33 # CHECK-NEXT: 1 1 0.50 addq %rcx, %rcx
34 # CHECK-NEXT: 1 1 0.50 addq %rcx, %rcx
35 # CHECK-NEXT: 1 1 0.50 movl %esi, %ecx
37 # CHECK: Register File statistics:
38 # CHECK-NEXT: Total number of mappings created: 800
39 # CHECK-NEXT: Max number of mappings used: 12
41 # CHECK: * Register File #1 -- JFpuPRF:
42 # CHECK-NEXT: Number of physical registers: 72
43 # CHECK-NEXT: Total number of mappings created: 0
44 # CHECK-NEXT: Max number of mappings used: 0
46 # CHECK: * Register File #2 -- JIntegerPRF:
47 # CHECK-NEXT: Number of physical registers: 64
48 # CHECK-NEXT: Total number of mappings created: 800
49 # CHECK-NEXT: Max number of mappings used: 12
50 # CHECK-NEXT: Number of optimizable moves: 100
51 # CHECK-NEXT: Number of moves eliminated: 100 (100.0%)
52 # CHECK-NEXT: Number of zero moves: 100 (100.0%)
53 # CHECK-NEXT: Max moves eliminated per cycle: 1
55 # CHECK: Resources:
56 # CHECK-NEXT: [0] - JALU0
57 # CHECK-NEXT: [1] - JALU1
58 # CHECK-NEXT: [2] - JDiv
59 # CHECK-NEXT: [3] - JFPA
60 # CHECK-NEXT: [4] - JFPM
61 # CHECK-NEXT: [5] - JFPU0
62 # CHECK-NEXT: [6] - JFPU1
63 # CHECK-NEXT: [7] - JLAGU
64 # CHECK-NEXT: [8] - JMul
65 # CHECK-NEXT: [9] - JSAGU
66 # CHECK-NEXT: [10] - JSTC
67 # CHECK-NEXT: [11] - JVALU0
68 # CHECK-NEXT: [12] - JVALU1
69 # CHECK-NEXT: [13] - JVIMUL
71 # CHECK: Resource pressure per iteration:
72 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
73 # CHECK-NEXT: 2.00 2.00 - - - - - - - - - - - -
75 # CHECK: Resource pressure by instruction:
76 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
77 # CHECK-NEXT: - - - - - - - - - - - - - - xorq %rsi, %rsi
78 # CHECK-NEXT: - 1.00 - - - - - - - - - - - - addq %rcx, %rcx
79 # CHECK-NEXT: 1.00 - - - - - - - - - - - - - addq %rcx, %rcx
80 # CHECK-NEXT: - 1.00 - - - - - - - - - - - - addq %rcx, %rcx
81 # CHECK-NEXT: 1.00 - - - - - - - - - - - - - addq %rcx, %rcx
82 # CHECK-NEXT: - - - - - - - - - - - - - - movl %esi, %ecx
84 # CHECK: Timeline view:
85 # CHECK-NEXT: 012
86 # CHECK-NEXT: Index 0123456789
88 # CHECK: [0,0] DR . . . xorq %rsi, %rsi
89 # CHECK-NEXT: [0,1] DeER . . . addq %rcx, %rcx
90 # CHECK-NEXT: [0,2] .DeER. . . addq %rcx, %rcx
91 # CHECK-NEXT: [0,3] .D=eER . . addq %rcx, %rcx
92 # CHECK-NEXT: [0,4] . D=eER . . addq %rcx, %rcx
93 # CHECK-NEXT: [0,5] . D---R . . movl %esi, %ecx
94 # CHECK-NEXT: [1,0] . D---R . . xorq %rsi, %rsi
95 # CHECK-NEXT: [1,1] . DeE-R . . addq %rcx, %rcx
96 # CHECK-NEXT: [1,2] . DeE-R . . addq %rcx, %rcx
97 # CHECK-NEXT: [1,3] . D=eER . . addq %rcx, %rcx
98 # CHECK-NEXT: [1,4] . D=eER. . addq %rcx, %rcx
99 # CHECK-NEXT: [1,5] . D---R. . movl %esi, %ecx
100 # CHECK-NEXT: [2,0] . .D---R . xorq %rsi, %rsi
101 # CHECK-NEXT: [2,1] . .DeE-R . addq %rcx, %rcx
102 # CHECK-NEXT: [2,2] . . DeE-R. addq %rcx, %rcx
103 # CHECK-NEXT: [2,3] . . D=eER. addq %rcx, %rcx
104 # CHECK-NEXT: [2,4] . . D=eER addq %rcx, %rcx
105 # CHECK-NEXT: [2,5] . . D---R movl %esi, %ecx
107 # CHECK: Average Wait times (based on the timeline view):
108 # CHECK-NEXT: [0]: Executions
109 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
110 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
111 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
113 # CHECK: [0] [1] [2] [3]
114 # CHECK-NEXT: 0. 3 0.0 0.0 2.0 xorq %rsi, %rsi
115 # CHECK-NEXT: 1. 3 1.0 1.0 0.7 addq %rcx, %rcx
116 # CHECK-NEXT: 2. 3 1.0 0.0 0.7 addq %rcx, %rcx
117 # CHECK-NEXT: 3. 3 2.0 0.0 0.0 addq %rcx, %rcx
118 # CHECK-NEXT: 4. 3 2.0 0.0 0.0 addq %rcx, %rcx
119 # CHECK-NEXT: 5. 3 0.0 0.0 3.0 movl %esi, %ecx