• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3
4testloop:
5# LLVM-MCA-BEGIN outer
6  leal 42(%rdi), %eax
7# LLVM-MCA-BEGIN inner
8  imull %esi, %eax
9# LLVM-MCA-END inner
10  leal 42(%rdi), %eax
11# LLVM-MCA-END outer
12  imull %esi, %eax
13
14# CHECK:      [0] Code Region - outer
15
16# CHECK:      Iterations:        100
17# CHECK-NEXT: Instructions:      300
18# CHECK-NEXT: Total Cycles:      156
19# CHECK-NEXT: Total uOps:        300
20
21# CHECK:      Dispatch Width:    2
22# CHECK-NEXT: uOps Per Cycle:    1.92
23# CHECK-NEXT: IPC:               1.92
24# CHECK-NEXT: Block RThroughput: 1.5
25
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)
33
34# CHECK:      [1]    [2]    [3]    [4]    [5]    [6]    Instructions:
35# CHECK-NEXT:  1      1     0.50                        leal	42(%rdi), %eax
36# CHECK-NEXT:  1      3     1.00                        imull	%esi, %eax
37# CHECK-NEXT:  1      1     0.50                        leal	42(%rdi), %eax
38
39# CHECK:      Resources:
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
54
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.49   1.51    -      -      -      -      -      -     1.00    -      -      -      -      -
58
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: 0.99   0.01    -      -      -      -      -      -      -      -      -      -      -      -     leal	42(%rdi), %eax
62# CHECK-NEXT:  -     1.00    -      -      -      -      -      -     1.00    -      -      -      -      -     imull	%esi, %eax
63# CHECK-NEXT: 0.50   0.50    -      -      -      -      -      -      -      -      -      -      -      -     leal	42(%rdi), %eax
64
65# CHECK:      [1] Code Region - inner
66
67# CHECK:      Iterations:        100
68# CHECK-NEXT: Instructions:      100
69# CHECK-NEXT: Total Cycles:      303
70# CHECK-NEXT: Total uOps:        100
71
72# CHECK:      Dispatch Width:    2
73# CHECK-NEXT: uOps Per Cycle:    0.33
74# CHECK-NEXT: IPC:               0.33
75# CHECK-NEXT: Block RThroughput: 1.0
76
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)
84
85# CHECK:      [1]    [2]    [3]    [4]    [5]    [6]    Instructions:
86# CHECK-NEXT:  1      3     1.00                        imull	%esi, %eax
87
88# CHECK:      Resources:
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
103
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    -      -      -      -      -
107
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
111