Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-mca / X86 / BtVer2 / add-sequence.s
blob59b20c755ae0a27483a6d6025924ee5ffa104747
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=1000 -timeline < %s | FileCheck %s
4 add %eax, %ecx
5 add %esi, %eax
6 add %eax, %edx
8 # CHECK: Iterations: 1000
9 # CHECK-NEXT: Instructions: 3000
10 # CHECK-NEXT: Total Cycles: 1506
11 # CHECK-NEXT: Total uOps: 3000
13 # CHECK: Dispatch Width: 2
14 # CHECK-NEXT: uOps Per Cycle: 1.99
15 # CHECK-NEXT: IPC: 1.99
16 # CHECK-NEXT: Block RThroughput: 1.5
18 # CHECK: Instruction Info:
19 # CHECK-NEXT: [1]: #uOps
20 # CHECK-NEXT: [2]: Latency
21 # CHECK-NEXT: [3]: RThroughput
22 # CHECK-NEXT: [4]: MayLoad
23 # CHECK-NEXT: [5]: MayStore
24 # CHECK-NEXT: [6]: HasSideEffects (U)
26 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
27 # CHECK-NEXT: 1 1 0.50 addl %eax, %ecx
28 # CHECK-NEXT: 1 1 0.50 addl %esi, %eax
29 # CHECK-NEXT: 1 1 0.50 addl %eax, %edx
31 # CHECK: Resources:
32 # CHECK-NEXT: [0] - JALU0
33 # CHECK-NEXT: [1] - JALU1
34 # CHECK-NEXT: [2] - JDiv
35 # CHECK-NEXT: [3] - JFPA
36 # CHECK-NEXT: [4] - JFPM
37 # CHECK-NEXT: [5] - JFPU0
38 # CHECK-NEXT: [6] - JFPU1
39 # CHECK-NEXT: [7] - JLAGU
40 # CHECK-NEXT: [8] - JMul
41 # CHECK-NEXT: [9] - JSAGU
42 # CHECK-NEXT: [10] - JSTC
43 # CHECK-NEXT: [11] - JVALU0
44 # CHECK-NEXT: [12] - JVALU1
45 # CHECK-NEXT: [13] - JVIMUL
47 # CHECK: Resource pressure per iteration:
48 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
49 # CHECK-NEXT: 1.50 1.50 - - - - - - - - - - - -
51 # CHECK: Resource pressure by instruction:
52 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
53 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - addl %eax, %ecx
54 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - addl %esi, %eax
55 # CHECK-NEXT: 0.50 0.50 - - - - - - - - - - - - addl %eax, %edx
57 # CHECK: Timeline view:
58 # CHECK-NEXT: 0123456789
59 # CHECK-NEXT: Index 0123456789 0
61 # CHECK: [0,0] DeER . . . . addl %eax, %ecx
62 # CHECK-NEXT: [0,1] DeER . . . . addl %esi, %eax
63 # CHECK-NEXT: [0,2] .DeER. . . . addl %eax, %edx
64 # CHECK-NEXT: [1,0] .DeER. . . . addl %eax, %ecx
65 # CHECK-NEXT: [1,1] . DeER . . . addl %esi, %eax
66 # CHECK-NEXT: [1,2] . D=eER . . . addl %eax, %edx
67 # CHECK-NEXT: [2,0] . DeER . . . addl %eax, %ecx
68 # CHECK-NEXT: [2,1] . D=eER . . . addl %esi, %eax
69 # CHECK-NEXT: [2,2] . D=eER . . . addl %eax, %edx
70 # CHECK-NEXT: [3,0] . D=eER . . . addl %eax, %ecx
71 # CHECK-NEXT: [3,1] . D=eER. . . addl %esi, %eax
72 # CHECK-NEXT: [3,2] . D==eER . . addl %eax, %edx
73 # CHECK-NEXT: [4,0] . .D=eER . . addl %eax, %ecx
74 # CHECK-NEXT: [4,1] . .D==eER . . addl %esi, %eax
75 # CHECK-NEXT: [4,2] . . D==eER . . addl %eax, %edx
76 # CHECK-NEXT: [5,0] . . D===eER . . addl %eax, %ecx
77 # CHECK-NEXT: [5,1] . . D=eE-R . . addl %esi, %eax
78 # CHECK-NEXT: [5,2] . . D==eE-R. . addl %eax, %edx
79 # CHECK-NEXT: [6,0] . . D==eER. . addl %eax, %ecx
80 # CHECK-NEXT: [6,1] . . D==eE-R . addl %esi, %eax
81 # CHECK-NEXT: [6,2] . . D==eER . addl %eax, %edx
82 # CHECK-NEXT: [7,0] . . D===eER . addl %eax, %ecx
83 # CHECK-NEXT: [7,1] . . .D=eE-R . addl %esi, %eax
84 # CHECK-NEXT: [7,2] . . .D==eE-R . addl %eax, %edx
85 # CHECK-NEXT: [8,0] . . . D==eER . addl %eax, %ecx
86 # CHECK-NEXT: [8,1] . . . D==eE-R . addl %esi, %eax
87 # CHECK-NEXT: [8,2] . . . D==eER . addl %eax, %edx
88 # CHECK-NEXT: [9,0] . . . D===eER. addl %eax, %ecx
89 # CHECK-NEXT: [9,1] . . . D=eE-R. addl %esi, %eax
90 # CHECK-NEXT: [9,2] . . . D==eE-R addl %eax, %edx
92 # CHECK: Average Wait times (based on the timeline view):
93 # CHECK-NEXT: [0]: Executions
94 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
95 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
96 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
98 # CHECK: [0] [1] [2] [3]
99 # CHECK-NEXT: 0. 10 2.5 0.4 0.0 addl %eax, %ecx
100 # CHECK-NEXT: 1. 10 2.1 0.7 0.5 addl %esi, %eax
101 # CHECK-NEXT: 2. 10 2.6 0.0 0.3 addl %eax, %edx