[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-mca / X86 / BtVer2 / rank.s
blob9962ca41021d8c48d20399341da2a8bf054de1b8
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 < %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: 503
16 # CHECK-NEXT: Total uOps: 800
18 # CHECK: Dispatch Width: 2
19 # CHECK-NEXT: uOps Per Cycle: 1.59
20 # CHECK-NEXT: IPC: 1.59
21 # CHECK-NEXT: Block RThroughput: 4.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 0.50 addl %eax, %ecx
33 # CHECK-NEXT: 1 1 0.50 addl %eax, %edx
34 # CHECK-NEXT: 1 1 0.50 addl %eax, %ebx
35 # CHECK-NEXT: 1 1 0.50 addl %edx, %esi
36 # CHECK-NEXT: 1 1 0.50 addl %ebx, %eax
37 # CHECK-NEXT: 1 1 0.50 addl %edx, %esi
38 # CHECK-NEXT: 1 1 0.50 addl %ebx, %eax
39 # CHECK-NEXT: 1 1 0.50 addl %ebx, %eax
41 # CHECK: Resources:
42 # CHECK-NEXT: [0] - JALU0
43 # CHECK-NEXT: [1] - JALU1
44 # CHECK-NEXT: [2] - JDiv
45 # CHECK-NEXT: [3] - JFPA
46 # CHECK-NEXT: [4] - JFPM
47 # CHECK-NEXT: [5] - JFPU0
48 # CHECK-NEXT: [6] - JFPU1
49 # CHECK-NEXT: [7] - JLAGU
50 # CHECK-NEXT: [8] - JMul
51 # CHECK-NEXT: [9] - JSAGU
52 # CHECK-NEXT: [10] - JSTC
53 # CHECK-NEXT: [11] - JVALU0
54 # CHECK-NEXT: [12] - JVALU1
55 # CHECK-NEXT: [13] - JVIMUL
57 # CHECK: Resource pressure per iteration:
58 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
59 # CHECK-NEXT: 4.00 4.00 - - - - - - - - - - - -
61 # CHECK: Resource pressure by instruction:
62 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
63 # CHECK-NEXT: 0.02 0.98 - - - - - - - - - - - - addl %eax, %ecx
64 # CHECK-NEXT: 0.02 0.98 - - - - - - - - - - - - addl %eax, %edx
65 # CHECK-NEXT: 0.96 0.04 - - - - - - - - - - - - addl %eax, %ebx
66 # CHECK-NEXT: 1.00 - - - - - - - - - - - - - addl %edx, %esi
67 # CHECK-NEXT: - 1.00 - - - - - - - - - - - - addl %ebx, %eax
68 # CHECK-NEXT: 1.00 - - - - - - - - - - - - - addl %edx, %esi
69 # CHECK-NEXT: - 1.00 - - - - - - - - - - - - addl %ebx, %eax
70 # CHECK-NEXT: 1.00 - - - - - - - - - - - - - addl %ebx, %eax
72 # CHECK: Timeline view:
73 # CHECK-NEXT: 01234567
74 # CHECK-NEXT: Index 0123456789
76 # CHECK: [0,0] DeER . . . . addl %eax, %ecx
77 # CHECK-NEXT: [0,1] DeER . . . . addl %eax, %edx
78 # CHECK-NEXT: [0,2] .DeER. . . . addl %eax, %ebx
79 # CHECK-NEXT: [0,3] .DeER. . . . addl %edx, %esi
80 # CHECK-NEXT: [0,4] . DeER . . . addl %ebx, %eax
81 # CHECK-NEXT: [0,5] . DeER . . . addl %edx, %esi
82 # CHECK-NEXT: [0,6] . DeER . . . addl %ebx, %eax
83 # CHECK-NEXT: [0,7] . D=eER . . . addl %ebx, %eax
84 # CHECK-NEXT: [1,0] . D=eER . . . addl %eax, %ecx
85 # CHECK-NEXT: [1,1] . D=eER . . . addl %eax, %edx
86 # CHECK-NEXT: [1,2] . D=eER. . . addl %eax, %ebx
87 # CHECK-NEXT: [1,3] . D=eER. . . addl %edx, %esi
88 # CHECK-NEXT: [1,4] . .D=eER . . addl %ebx, %eax
89 # CHECK-NEXT: [1,5] . .D=eER . . addl %edx, %esi
90 # CHECK-NEXT: [1,6] . . D=eER . . addl %ebx, %eax
91 # CHECK-NEXT: [1,7] . . D==eER . . addl %ebx, %eax
92 # CHECK-NEXT: [2,0] . . D==eER . . addl %eax, %ecx
93 # CHECK-NEXT: [2,1] . . D==eER . . addl %eax, %edx
94 # CHECK-NEXT: [2,2] . . D==eER. . addl %eax, %ebx
95 # CHECK-NEXT: [2,3] . . D==eER. . addl %edx, %esi
96 # CHECK-NEXT: [2,4] . . D==eER . addl %ebx, %eax
97 # CHECK-NEXT: [2,5] . . D==eER . addl %edx, %esi
98 # CHECK-NEXT: [2,6] . . .D==eER. addl %ebx, %eax
99 # CHECK-NEXT: [2,7] . . .D===eER addl %ebx, %eax
101 # CHECK: Average Wait times (based on the timeline view):
102 # CHECK-NEXT: [0]: Executions
103 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
104 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
105 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
107 # CHECK: [0] [1] [2] [3]
108 # CHECK-NEXT: 0. 3 2.0 0.3 0.0 addl %eax, %ecx
109 # CHECK-NEXT: 1. 3 2.0 0.3 0.0 addl %eax, %edx
110 # CHECK-NEXT: 2. 3 2.0 1.0 0.0 addl %eax, %ebx
111 # CHECK-NEXT: 3. 3 2.0 0.0 0.0 addl %edx, %esi
112 # CHECK-NEXT: 4. 3 2.0 0.0 0.0 addl %ebx, %eax
113 # CHECK-NEXT: 5. 3 2.0 0.0 0.0 addl %edx, %esi
114 # CHECK-NEXT: 6. 3 2.0 0.0 0.0 addl %ebx, %eax
115 # CHECK-NEXT: 7. 3 3.0 0.0 0.0 addl %ebx, %eax
116 # CHECK-NEXT: 3 2.1 0.2 0.0 <total>