[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / llvm-mca / X86 / BdVer2 / rank.s
blobc929b8bae3b14a45d4ffc608a9f6aaabcff595d2
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -timeline -timeline-max-iterations=3 < %s | FileCheck %s
4 add %eax, %ecx
5 add %eax, %edx
6 add %eax, %ebx
7 add %edx, %esi
8 add %ebx, %eax
9 add %edx, %esi
10 add %ebx, %eax
11 add %ebx, %eax
13 # CHECK: Iterations: 100
14 # CHECK-NEXT: Instructions: 800
15 # CHECK-NEXT: Total Cycles: 803
16 # CHECK-NEXT: Total uOps: 800
18 # CHECK: Dispatch Width: 4
19 # CHECK-NEXT: uOps Per Cycle: 1.00
20 # CHECK-NEXT: IPC: 1.00
21 # CHECK-NEXT: Block RThroughput: 8.0
23 # CHECK: Instruction Info:
24 # CHECK-NEXT: [1]: #uOps
25 # CHECK-NEXT: [2]: Latency
26 # CHECK-NEXT: [3]: RThroughput
27 # CHECK-NEXT: [4]: MayLoad
28 # CHECK-NEXT: [5]: MayStore
29 # CHECK-NEXT: [6]: HasSideEffects (U)
31 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
32 # CHECK-NEXT: 1 1 1.00 addl %eax, %ecx
33 # CHECK-NEXT: 1 1 1.00 addl %eax, %edx
34 # CHECK-NEXT: 1 1 1.00 addl %eax, %ebx
35 # CHECK-NEXT: 1 1 1.00 addl %edx, %esi
36 # CHECK-NEXT: 1 1 1.00 addl %ebx, %eax
37 # CHECK-NEXT: 1 1 1.00 addl %edx, %esi
38 # CHECK-NEXT: 1 1 1.00 addl %ebx, %eax
39 # CHECK-NEXT: 1 1 1.00 addl %ebx, %eax
41 # CHECK: Resources:
42 # CHECK-NEXT: [0.0] - PdAGLU01
43 # CHECK-NEXT: [0.1] - PdAGLU01
44 # CHECK-NEXT: [1] - PdBranch
45 # CHECK-NEXT: [2] - PdCount
46 # CHECK-NEXT: [3] - PdDiv
47 # CHECK-NEXT: [4] - PdEX0
48 # CHECK-NEXT: [5] - PdEX1
49 # CHECK-NEXT: [6] - PdFPCVT
50 # CHECK-NEXT: [7.0] - PdFPFMA
51 # CHECK-NEXT: [7.1] - PdFPFMA
52 # CHECK-NEXT: [8.0] - PdFPMAL
53 # CHECK-NEXT: [8.1] - PdFPMAL
54 # CHECK-NEXT: [9] - PdFPMMA
55 # CHECK-NEXT: [10] - PdFPSTO
56 # CHECK-NEXT: [11] - PdFPU0
57 # CHECK-NEXT: [12] - PdFPU1
58 # CHECK-NEXT: [13] - PdFPU2
59 # CHECK-NEXT: [14] - PdFPU3
60 # CHECK-NEXT: [15] - PdFPXBR
61 # CHECK-NEXT: [16.0] - PdLoad
62 # CHECK-NEXT: [16.1] - PdLoad
63 # CHECK-NEXT: [17] - PdMul
64 # CHECK-NEXT: [18] - PdStore
66 # CHECK: Resource pressure per iteration:
67 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18]
68 # CHECK-NEXT: - - - - - 8.00 8.00 - - - - - - - - - - - - - - - -
70 # CHECK: Resource pressure by instruction:
71 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18] Instructions:
72 # CHECK-NEXT: - - - - - - 2.00 - - - - - - - - - - - - - - - - addl %eax, %ecx
73 # CHECK-NEXT: - - - - - 0.02 1.98 - - - - - - - - - - - - - - - - addl %eax, %edx
74 # CHECK-NEXT: - - - - - 1.98 0.02 - - - - - - - - - - - - - - - - addl %eax, %ebx
75 # CHECK-NEXT: - - - - - 2.00 - - - - - - - - - - - - - - - - - addl %edx, %esi
76 # CHECK-NEXT: - - - - - - 2.00 - - - - - - - - - - - - - - - - addl %ebx, %eax
77 # CHECK-NEXT: - - - - - 2.00 - - - - - - - - - - - - - - - - - addl %edx, %esi
78 # CHECK-NEXT: - - - - - - 2.00 - - - - - - - - - - - - - - - - addl %ebx, %eax
79 # CHECK-NEXT: - - - - - 2.00 - - - - - - - - - - - - - - - - - addl %ebx, %eax
81 # CHECK: Timeline view:
82 # CHECK-NEXT: 0123456789
83 # CHECK-NEXT: Index 0123456789 0123456
85 # CHECK: [0,0] DeER . . . . .. addl %eax, %ecx
86 # CHECK-NEXT: [0,1] DeER . . . . .. addl %eax, %edx
87 # CHECK-NEXT: [0,2] D==eER . . . .. addl %eax, %ebx
88 # CHECK-NEXT: [0,3] D==eER . . . .. addl %edx, %esi
89 # CHECK-NEXT: [0,4] .D===eER . . . .. addl %ebx, %eax
90 # CHECK-NEXT: [0,5] .D===eER . . . .. addl %edx, %esi
91 # CHECK-NEXT: [0,6] .D=====eER. . . .. addl %ebx, %eax
92 # CHECK-NEXT: [0,7] .D======eER . . .. addl %ebx, %eax
93 # CHECK-NEXT: [1,0] . D========eER . . .. addl %eax, %ecx
94 # CHECK-NEXT: [1,1] . D======eE--R . . .. addl %eax, %edx
95 # CHECK-NEXT: [1,2] . D=======eE-R . . .. addl %eax, %ebx
96 # CHECK-NEXT: [1,3] . D=========eER. . .. addl %edx, %esi
97 # CHECK-NEXT: [1,4] . D=========eER . .. addl %ebx, %eax
98 # CHECK-NEXT: [1,5] . D==========eER . .. addl %edx, %esi
99 # CHECK-NEXT: [1,6] . D===========eER . .. addl %ebx, %eax
100 # CHECK-NEXT: [1,7] . D============eER . .. addl %ebx, %eax
101 # CHECK-NEXT: [2,0] . D==============eER .. addl %eax, %ecx
102 # CHECK-NEXT: [2,1] . D============eE--R .. addl %eax, %edx
103 # CHECK-NEXT: [2,2] . D=============eE-R .. addl %eax, %ebx
104 # CHECK-NEXT: [2,3] . D===============eER .. addl %edx, %esi
105 # CHECK-NEXT: [2,4] . D===============eER .. addl %ebx, %eax
106 # CHECK-NEXT: [2,5] . D================eER.. addl %edx, %esi
107 # CHECK-NEXT: [2,6] . D=================eER. addl %ebx, %eax
108 # CHECK-NEXT: [2,7] . D==================eER addl %ebx, %eax
110 # CHECK: Average Wait times (based on the timeline view):
111 # CHECK-NEXT: [0]: Executions
112 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
113 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
114 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
116 # CHECK: [0] [1] [2] [3]
117 # CHECK-NEXT: 0. 3 8.3 1.7 0.0 addl %eax, %ecx
118 # CHECK-NEXT: 1. 3 7.0 0.3 1.3 addl %eax, %edx
119 # CHECK-NEXT: 2. 3 8.3 1.7 0.7 addl %eax, %ebx
120 # CHECK-NEXT: 3. 3 9.7 1.7 0.0 addl %edx, %esi
121 # CHECK-NEXT: 4. 3 10.0 1.7 0.0 addl %ebx, %eax
122 # CHECK-NEXT: 5. 3 10.7 1.0 0.0 addl %edx, %esi
123 # CHECK-NEXT: 6. 3 12.0 1.0 0.0 addl %ebx, %eax
124 # CHECK-NEXT: 7. 3 13.0 0.0 0.0 addl %ebx, %eax
125 # CHECK-NEXT: 3 9.9 1.1 0.3 <total>