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=1 < %s | FileCheck %s -check-prefixes=ALL,NOALIAS
3 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -timeline -timeline-max-iterations=1 -noalias=false < %s | FileCheck %s -check-prefixes=ALL,YESALIAS
16 # ALL: Iterations: 100
17 # ALL-NEXT: Instructions: 1000
19 # NOALIAS-NEXT: Total Cycles: 1008
20 # YESALIAS-NEXT: Total Cycles: 6003
22 # ALL-NEXT: Total uOps: 1000
24 # ALL: Dispatch Width: 2
26 # NOALIAS-NEXT: uOps Per Cycle: 0.99
27 # NOALIAS-NEXT: IPC: 0.99
29 # YESALIAS-NEXT: uOps Per Cycle: 0.17
30 # YESALIAS-NEXT: IPC: 0.17
32 # ALL-NEXT: Block RThroughput: 10.0
34 # ALL: Instruction Info:
35 # ALL-NEXT: [1]: #uOps
36 # ALL-NEXT: [2]: Latency
37 # ALL-NEXT: [3]: RThroughput
38 # ALL-NEXT: [4]: MayLoad
39 # ALL-NEXT: [5]: MayStore
40 # ALL-NEXT: [6]: HasSideEffects (U)
42 # ALL: [1] [2] [3] [4] [5] [6] Instructions:
43 # ALL-NEXT: 1 6 1.00 * * addq $44, 64(%r14)
44 # ALL-NEXT: 1 6 1.00 * * addq $44, 128(%r14)
45 # ALL-NEXT: 1 6 1.00 * * addq $44, 192(%r14)
46 # ALL-NEXT: 1 6 1.00 * * addq $44, 256(%r14)
47 # ALL-NEXT: 1 6 1.00 * * addq $44, 320(%r14)
48 # ALL-NEXT: 1 6 1.00 * * addq $44, 384(%r14)
49 # ALL-NEXT: 1 6 1.00 * * addq $44, 448(%r14)
50 # ALL-NEXT: 1 6 1.00 * * addq $44, 512(%r14)
51 # ALL-NEXT: 1 6 1.00 * * addq $44, 576(%r14)
52 # ALL-NEXT: 1 6 1.00 * * addq $44, 640(%r14)
55 # ALL-NEXT: [0] - JALU0
56 # ALL-NEXT: [1] - JALU1
57 # ALL-NEXT: [2] - JDiv
58 # ALL-NEXT: [3] - JFPA
59 # ALL-NEXT: [4] - JFPM
60 # ALL-NEXT: [5] - JFPU0
61 # ALL-NEXT: [6] - JFPU1
62 # ALL-NEXT: [7] - JLAGU
63 # ALL-NEXT: [8] - JMul
64 # ALL-NEXT: [9] - JSAGU
65 # ALL-NEXT: [10] - JSTC
66 # ALL-NEXT: [11] - JVALU0
67 # ALL-NEXT: [12] - JVALU1
68 # ALL-NEXT: [13] - JVIMUL
70 # ALL: Resource pressure per iteration:
71 # ALL-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
72 # ALL-NEXT: 5.00 5.00 - - - - - 10.00 - 10.00 - - - -
74 # ALL: Resource pressure by instruction:
75 # ALL-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
76 # ALL-NEXT: - 1.00 - - - - - 1.00 - 1.00 - - - - addq $44, 64(%r14)
77 # ALL-NEXT: 1.00 - - - - - - 1.00 - 1.00 - - - - addq $44, 128(%r14)
78 # ALL-NEXT: - 1.00 - - - - - 1.00 - 1.00 - - - - addq $44, 192(%r14)
79 # ALL-NEXT: 1.00 - - - - - - 1.00 - 1.00 - - - - addq $44, 256(%r14)
80 # ALL-NEXT: - 1.00 - - - - - 1.00 - 1.00 - - - - addq $44, 320(%r14)
81 # ALL-NEXT: 1.00 - - - - - - 1.00 - 1.00 - - - - addq $44, 384(%r14)
82 # ALL-NEXT: - 1.00 - - - - - 1.00 - 1.00 - - - - addq $44, 448(%r14)
83 # ALL-NEXT: 1.00 - - - - - - 1.00 - 1.00 - - - - addq $44, 512(%r14)
84 # ALL-NEXT: - 1.00 - - - - - 1.00 - 1.00 - - - - addq $44, 576(%r14)
85 # ALL-NEXT: 1.00 - - - - - - 1.00 - 1.00 - - - - addq $44, 640(%r14)
89 # NOALIAS-NEXT: 01234567
90 # NOALIAS-NEXT: Index 0123456789
92 # YESALIAS-NEXT: 0123456789 0123456789 0123456789
93 # YESALIAS-NEXT: Index 0123456789 0123456789 0123456789 012
95 # NOALIAS: [0,0] DeeeeeeER . . . addq $44, 64(%r14)
96 # NOALIAS-NEXT: [0,1] D=eeeeeeER. . . addq $44, 128(%r14)
97 # NOALIAS-NEXT: [0,2] .D=eeeeeeER . . addq $44, 192(%r14)
98 # NOALIAS-NEXT: [0,3] .D==eeeeeeER . . addq $44, 256(%r14)
99 # NOALIAS-NEXT: [0,4] . D==eeeeeeER . . addq $44, 320(%r14)
100 # NOALIAS-NEXT: [0,5] . D===eeeeeeER . . addq $44, 384(%r14)
101 # NOALIAS-NEXT: [0,6] . D===eeeeeeER. . addq $44, 448(%r14)
102 # NOALIAS-NEXT: [0,7] . D====eeeeeeER . addq $44, 512(%r14)
103 # NOALIAS-NEXT: [0,8] . D====eeeeeeER. addq $44, 576(%r14)
104 # NOALIAS-NEXT: [0,9] . D=====eeeeeeER addq $44, 640(%r14)
106 # YESALIAS: [0,0] DeeeeeeER . . . . . . . . . . . . addq $44, 64(%r14)
107 # YESALIAS-NEXT: [0,1] D======eeeeeeER. . . . . . . . . . . addq $44, 128(%r14)
108 # YESALIAS-NEXT: [0,2] .D===========eeeeeeER . . . . . . . . . addq $44, 192(%r14)
109 # YESALIAS-NEXT: [0,3] .D=================eeeeeeER . . . . . . . . addq $44, 256(%r14)
110 # YESALIAS-NEXT: [0,4] . D======================eeeeeeER . . . . . . . addq $44, 320(%r14)
111 # YESALIAS-NEXT: [0,5] . D============================eeeeeeER . . . . . . addq $44, 384(%r14)
112 # YESALIAS-NEXT: [0,6] . D=================================eeeeeeER. . . . . addq $44, 448(%r14)
113 # YESALIAS-NEXT: [0,7] . D=======================================eeeeeeER . . . addq $44, 512(%r14)
114 # YESALIAS-NEXT: [0,8] . D============================================eeeeeeER . . addq $44, 576(%r14)
115 # YESALIAS-NEXT: [0,9] . D==================================================eeeeeeER addq $44, 640(%r14)
117 # ALL: Average Wait times (based on the timeline view):
118 # ALL-NEXT: [0]: Executions
119 # ALL-NEXT: [1]: Average time spent waiting in a scheduler's queue
120 # ALL-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
121 # ALL-NEXT: [3]: Average time elapsed from WB until retire stage
123 # ALL: [0] [1] [2] [3]
124 # ALL-NEXT: 0. 1 1.0 1.0 0.0 addq $44, 64(%r14)
126 # NOALIAS-NEXT: 1. 1 2.0 1.0 0.0 addq $44, 128(%r14)
127 # NOALIAS-NEXT: 2. 1 2.0 1.0 0.0 addq $44, 192(%r14)
128 # NOALIAS-NEXT: 3. 1 3.0 1.0 0.0 addq $44, 256(%r14)
129 # NOALIAS-NEXT: 4. 1 3.0 1.0 0.0 addq $44, 320(%r14)
130 # NOALIAS-NEXT: 5. 1 4.0 1.0 0.0 addq $44, 384(%r14)
131 # NOALIAS-NEXT: 6. 1 4.0 1.0 0.0 addq $44, 448(%r14)
132 # NOALIAS-NEXT: 7. 1 5.0 1.0 0.0 addq $44, 512(%r14)
133 # NOALIAS-NEXT: 8. 1 5.0 1.0 0.0 addq $44, 576(%r14)
134 # NOALIAS-NEXT: 9. 1 6.0 1.0 0.0 addq $44, 640(%r14)
135 # NOALIAS-NEXT: 1 3.5 1.0 0.0 <total>
137 # YESALIAS-NEXT: 1. 1 7.0 0.0 0.0 addq $44, 128(%r14)
138 # YESALIAS-NEXT: 2. 1 12.0 0.0 0.0 addq $44, 192(%r14)
139 # YESALIAS-NEXT: 3. 1 18.0 0.0 0.0 addq $44, 256(%r14)
140 # YESALIAS-NEXT: 4. 1 23.0 0.0 0.0 addq $44, 320(%r14)
141 # YESALIAS-NEXT: 5. 1 29.0 0.0 0.0 addq $44, 384(%r14)
142 # YESALIAS-NEXT: 6. 1 34.0 0.0 0.0 addq $44, 448(%r14)
143 # YESALIAS-NEXT: 7. 1 40.0 0.0 0.0 addq $44, 512(%r14)
144 # YESALIAS-NEXT: 8. 1 45.0 0.0 0.0 addq $44, 576(%r14)
145 # YESALIAS-NEXT: 9. 1 51.0 0.0 0.0 addq $44, 640(%r14)
146 # YESALIAS-NEXT: 1 26.0 0.1 0.0 <total>