1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 < %s | FileCheck %s
14 # CHECK: [0] Code Region - outer
16 # CHECK: Iterations: 100
17 # CHECK-NEXT: Instructions: 300
18 # CHECK-NEXT: Total Cycles: 205
19 # CHECK-NEXT: Total uOps: 400
21 # CHECK: Dispatch Width: 2
22 # CHECK-NEXT: uOps Per Cycle: 1.95
23 # CHECK-NEXT: IPC: 1.46
24 # CHECK-NEXT: Block RThroughput: 2.0
26 # CHECK: Instruction Info:
27 # CHECK-NEXT: [1]: #uOps
28 # CHECK-NEXT: [2]: Latency
29 # CHECK-NEXT: [3]: RThroughput
30 # CHECK-NEXT: [4]: MayLoad
31 # CHECK-NEXT: [5]: MayStore
32 # CHECK-NEXT: [6]: HasSideEffects (U)
34 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
35 # CHECK-NEXT: 1 1 0.50 leal 42(%rdi), %eax
36 # CHECK-NEXT: 2 3 1.00 imull %esi, %eax
37 # CHECK-NEXT: 1 1 0.50 leal 42(%rdi), %eax
40 # CHECK-NEXT: [0] - JALU0
41 # CHECK-NEXT: [1] - JALU1
42 # CHECK-NEXT: [2] - JDiv
43 # CHECK-NEXT: [3] - JFPA
44 # CHECK-NEXT: [4] - JFPM
45 # CHECK-NEXT: [5] - JFPU0
46 # CHECK-NEXT: [6] - JFPU1
47 # CHECK-NEXT: [7] - JLAGU
48 # CHECK-NEXT: [8] - JMul
49 # CHECK-NEXT: [9] - JSAGU
50 # CHECK-NEXT: [10] - JSTC
51 # CHECK-NEXT: [11] - JVALU0
52 # CHECK-NEXT: [12] - JVALU1
53 # CHECK-NEXT: [13] - JVIMUL
55 # CHECK: Resource pressure per iteration:
56 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
57 # CHECK-NEXT: 1.00 2.00 - - - - - - 1.00 - - - - -
59 # CHECK: Resource pressure by instruction:
60 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
61 # CHECK-NEXT: - 1.00 - - - - - - - - - - - - leal 42(%rdi), %eax
62 # CHECK-NEXT: - 1.00 - - - - - - 1.00 - - - - - imull %esi, %eax
63 # CHECK-NEXT: 1.00 - - - - - - - - - - - - - leal 42(%rdi), %eax
65 # CHECK: [1] Code Region - inner
67 # CHECK: Iterations: 100
68 # CHECK-NEXT: Instructions: 100
69 # CHECK-NEXT: Total Cycles: 303
70 # CHECK-NEXT: Total uOps: 200
72 # CHECK: Dispatch Width: 2
73 # CHECK-NEXT: uOps Per Cycle: 0.66
74 # CHECK-NEXT: IPC: 0.33
75 # CHECK-NEXT: Block RThroughput: 1.0
77 # CHECK: Instruction Info:
78 # CHECK-NEXT: [1]: #uOps
79 # CHECK-NEXT: [2]: Latency
80 # CHECK-NEXT: [3]: RThroughput
81 # CHECK-NEXT: [4]: MayLoad
82 # CHECK-NEXT: [5]: MayStore
83 # CHECK-NEXT: [6]: HasSideEffects (U)
85 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
86 # CHECK-NEXT: 2 3 1.00 imull %esi, %eax
89 # CHECK-NEXT: [0] - JALU0
90 # CHECK-NEXT: [1] - JALU1
91 # CHECK-NEXT: [2] - JDiv
92 # CHECK-NEXT: [3] - JFPA
93 # CHECK-NEXT: [4] - JFPM
94 # CHECK-NEXT: [5] - JFPU0
95 # CHECK-NEXT: [6] - JFPU1
96 # CHECK-NEXT: [7] - JLAGU
97 # CHECK-NEXT: [8] - JMul
98 # CHECK-NEXT: [9] - JSAGU
99 # CHECK-NEXT: [10] - JSTC
100 # CHECK-NEXT: [11] - JVALU0
101 # CHECK-NEXT: [12] - JVALU1
102 # CHECK-NEXT: [13] - JVIMUL
104 # CHECK: Resource pressure per iteration:
105 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
106 # CHECK-NEXT: - 1.00 - - - - - - 1.00 - - - - -
108 # CHECK: Resource pressure by instruction:
109 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
110 # CHECK-NEXT: - 1.00 - - - - - - 1.00 - - - - - imull %esi, %eax