Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-mca / X86 / BtVer2 / partial-reg-update-7.s
blob720a1ed1440b68852f659ac86c4bdc6d4f2d57bc
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=5 < %s | FileCheck %s
4 sete %r9b
5 movzbl %al, %eax
6 shll $2, %eax
7 imull %ecx, %eax
8 cmpl $1025, %eax
10 # CHECK: Iterations: 100
11 # CHECK-NEXT: Instructions: 500
12 # CHECK-NEXT: Total Cycles: 504
13 # CHECK-NEXT: Total uOps: 600
15 # CHECK: Dispatch Width: 2
16 # CHECK-NEXT: uOps Per Cycle: 1.19
17 # CHECK-NEXT: IPC: 0.99
18 # CHECK-NEXT: Block RThroughput: 3.0
20 # CHECK: Instruction Info:
21 # CHECK-NEXT: [1]: #uOps
22 # CHECK-NEXT: [2]: Latency
23 # CHECK-NEXT: [3]: RThroughput
24 # CHECK-NEXT: [4]: MayLoad
25 # CHECK-NEXT: [5]: MayStore
26 # CHECK-NEXT: [6]: HasSideEffects (U)
28 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
29 # CHECK-NEXT: 1 1 0.50 sete %r9b
30 # CHECK-NEXT: 1 1 0.50 movzbl %al, %eax
31 # CHECK-NEXT: 1 1 0.50 shll $2, %eax
32 # CHECK-NEXT: 2 3 1.00 imull %ecx, %eax
33 # CHECK-NEXT: 1 1 0.50 cmpl $1025, %eax
35 # CHECK: Resources:
36 # CHECK-NEXT: [0] - JALU0
37 # CHECK-NEXT: [1] - JALU1
38 # CHECK-NEXT: [2] - JDiv
39 # CHECK-NEXT: [3] - JFPA
40 # CHECK-NEXT: [4] - JFPM
41 # CHECK-NEXT: [5] - JFPU0
42 # CHECK-NEXT: [6] - JFPU1
43 # CHECK-NEXT: [7] - JLAGU
44 # CHECK-NEXT: [8] - JMul
45 # CHECK-NEXT: [9] - JSAGU
46 # CHECK-NEXT: [10] - JSTC
47 # CHECK-NEXT: [11] - JVALU0
48 # CHECK-NEXT: [12] - JVALU1
49 # CHECK-NEXT: [13] - JVIMUL
51 # CHECK: Resource pressure per iteration:
52 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
53 # CHECK-NEXT: 2.00 3.00 - - - - - - 1.00 - - - - -
55 # CHECK: Resource pressure by instruction:
56 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
57 # CHECK-NEXT: 0.99 0.01 - - - - - - - - - - - - sete %r9b
58 # CHECK-NEXT: 0.01 0.99 - - - - - - - - - - - - movzbl %al, %eax
59 # CHECK-NEXT: - 1.00 - - - - - - - - - - - - shll $2, %eax
60 # CHECK-NEXT: - 1.00 - - - - - - 1.00 - - - - - imull %ecx, %eax
61 # CHECK-NEXT: 1.00 - - - - - - - - - - - - - cmpl $1025, %eax
63 # CHECK: Timeline view:
64 # CHECK-NEXT: 0123456789
65 # CHECK-NEXT: Index 0123456789 012345678
67 # CHECK: [0,0] DeER . . . . . . sete %r9b
68 # CHECK-NEXT: [0,1] DeER . . . . . . movzbl %al, %eax
69 # CHECK-NEXT: [0,2] .DeER. . . . . . shll $2, %eax
70 # CHECK-NEXT: [0,3] . DeeeER . . . . . imull %ecx, %eax
71 # CHECK-NEXT: [0,4] . D==eER . . . . . cmpl $1025, %eax
72 # CHECK-NEXT: [1,0] . D===eER. . . . . sete %r9b
73 # CHECK-NEXT: [1,1] . D=eE-R. . . . . movzbl %al, %eax
74 # CHECK-NEXT: [1,2] . D==eE-R . . . . shll $2, %eax
75 # CHECK-NEXT: [1,3] . D==eeeER . . . . imull %ecx, %eax
76 # CHECK-NEXT: [1,4] . .D====eER . . . . cmpl $1025, %eax
77 # CHECK-NEXT: [2,0] . .D=====eER. . . . sete %r9b
78 # CHECK-NEXT: [2,1] . . D===eE-R. . . . movzbl %al, %eax
79 # CHECK-NEXT: [2,2] . . D====eE-R . . . shll $2, %eax
80 # CHECK-NEXT: [2,3] . . D====eeeER . . . imull %ecx, %eax
81 # CHECK-NEXT: [2,4] . . D======eER . . . cmpl $1025, %eax
82 # CHECK-NEXT: [3,0] . . D=======eER. . . sete %r9b
83 # CHECK-NEXT: [3,1] . . D=====eE-R. . . movzbl %al, %eax
84 # CHECK-NEXT: [3,2] . . D======eE-R . . shll $2, %eax
85 # CHECK-NEXT: [3,3] . . .D======eeeER . . imull %ecx, %eax
86 # CHECK-NEXT: [3,4] . . . D========eER . . cmpl $1025, %eax
87 # CHECK-NEXT: [4,0] . . . D=========eER. . sete %r9b
88 # CHECK-NEXT: [4,1] . . . D=======eE-R. . movzbl %al, %eax
89 # CHECK-NEXT: [4,2] . . . D========eE-R . shll $2, %eax
90 # CHECK-NEXT: [4,3] . . . D========eeeER. imull %ecx, %eax
91 # CHECK-NEXT: [4,4] . . . D==========eER cmpl $1025, %eax
93 # CHECK: Average Wait times (based on the timeline view):
94 # CHECK-NEXT: [0]: Executions
95 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
96 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
97 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
99 # CHECK: [0] [1] [2] [3]
100 # CHECK-NEXT: 0. 5 5.8 0.2 0.0 sete %r9b
101 # CHECK-NEXT: 1. 5 4.2 0.2 0.8 movzbl %al, %eax
102 # CHECK-NEXT: 2. 5 5.0 0.0 0.8 shll $2, %eax
103 # CHECK-NEXT: 3. 5 5.0 0.0 0.0 imull %ecx, %eax
104 # CHECK-NEXT: 4. 5 7.0 0.0 0.0 cmpl $1025, %eax