Skip to content

Commit 988d78e

Browse files
committed
[llvm-mca] Add LIT test for -call-latency option
1 parent d6fcd4b commit 988d78e

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2+
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -iterations=1 %s | FileCheck --check-prefixes=ALL,DEFAULT %s
3+
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -call-latency=50 -iterations=1 %s | FileCheck --check-prefixes=ALL,CUSTOM %s
4+
5+
callq printf
6+
7+
# ALL: Iterations: 1
8+
# ALL-NEXT: Instructions: 1
9+
10+
# CUSTOM-NEXT: Total Cycles: 53
11+
# DEFAULT-NEXT: Total Cycles: 103
12+
13+
# ALL-NEXT: Total uOps: 4
14+
15+
# ALL: Dispatch Width: 6
16+
17+
# CUSTOM-NEXT: uOps Per Cycle: 0.08
18+
# CUSTOM-NEXT: IPC: 0.02
19+
20+
# DEFAULT-NEXT: uOps Per Cycle: 0.04
21+
# DEFAULT-NEXT: IPC: 0.01
22+
23+
# ALL-NEXT: Block RThroughput: 1.0
24+
25+
# ALL: Instruction Info:
26+
# ALL-NEXT: [1]: #uOps
27+
# ALL-NEXT: [2]: Latency
28+
# ALL-NEXT: [3]: RThroughput
29+
# ALL-NEXT: [4]: MayLoad
30+
# ALL-NEXT: [5]: MayStore
31+
# ALL-NEXT: [6]: HasSideEffects (U)
32+
33+
# ALL: [1] [2] [3] [4] [5] [6] Instructions:
34+
# ALL-NEXT: 4 3 1.00 callq printf
35+
36+
# ALL: Resources:
37+
# ALL-NEXT: [0] - SKLDivider
38+
# ALL-NEXT: [1] - SKLFPDivider
39+
# ALL-NEXT: [2] - SKLPort0
40+
# ALL-NEXT: [3] - SKLPort1
41+
# ALL-NEXT: [4] - SKLPort2
42+
# ALL-NEXT: [5] - SKLPort3
43+
# ALL-NEXT: [6] - SKLPort4
44+
# ALL-NEXT: [7] - SKLPort5
45+
# ALL-NEXT: [8] - SKLPort6
46+
# ALL-NEXT: [9] - SKLPort7
47+
48+
# ALL: Resource pressure per iteration:
49+
# ALL-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9]
50+
# ALL-NEXT: - - - - - - 1.00 1.00 1.00 1.00
51+
52+
# ALL: Resource pressure by instruction:
53+
# ALL-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
54+
# ALL-NEXT: - - - - - - 1.00 1.00 1.00 1.00 callq printf

0 commit comments

Comments
 (0)