Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-mca / X86 / BdVer2 / load-store-alias.s
blob13e7e7ad07b57d9282d8dedb8b2198eaf57d1f80
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -iterations=100 -timeline -timeline-max-iterations=1 -noalias=false < %s | FileCheck %s
4 vmovaps (%rsi), %xmm0
5 vmovaps %xmm0, (%rdi)
6 vmovaps 16(%rsi), %xmm0
7 vmovaps %xmm0, 16(%rdi)
8 vmovaps 32(%rsi), %xmm0
9 vmovaps %xmm0, 32(%rdi)
10 vmovaps 48(%rsi), %xmm0
11 vmovaps %xmm0, 48(%rdi)
13 # CHECK: Iterations: 100
14 # CHECK-NEXT: Instructions: 800
15 # CHECK-NEXT: Total Cycles: 2403
16 # CHECK-NEXT: Total uOps: 800
18 # CHECK: Dispatch Width: 4
19 # CHECK-NEXT: uOps Per Cycle: 0.33
20 # CHECK-NEXT: IPC: 0.33
21 # CHECK-NEXT: Block RThroughput: 8.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 5 1.50 * vmovaps (%rsi), %xmm0
33 # CHECK-NEXT: 1 1 1.50 * vmovaps %xmm0, (%rdi)
34 # CHECK-NEXT: 1 5 1.50 * vmovaps 16(%rsi), %xmm0
35 # CHECK-NEXT: 1 1 1.50 * vmovaps %xmm0, 16(%rdi)
36 # CHECK-NEXT: 1 5 1.50 * vmovaps 32(%rsi), %xmm0
37 # CHECK-NEXT: 1 1 1.50 * vmovaps %xmm0, 32(%rdi)
38 # CHECK-NEXT: 1 5 1.50 * vmovaps 48(%rsi), %xmm0
39 # CHECK-NEXT: 1 1 1.50 * vmovaps %xmm0, 48(%rdi)
41 # CHECK: Resources:
42 # CHECK-NEXT: [0.0] - PdAGLU01
43 # CHECK-NEXT: [0.1] - PdAGLU01
44 # CHECK-NEXT: [1] - PdBranch
45 # CHECK-NEXT: [2] - PdCount
46 # CHECK-NEXT: [3] - PdDiv
47 # CHECK-NEXT: [4] - PdEX0
48 # CHECK-NEXT: [5] - PdEX1
49 # CHECK-NEXT: [6] - PdFPCVT
50 # CHECK-NEXT: [7.0] - PdFPFMA
51 # CHECK-NEXT: [7.1] - PdFPFMA
52 # CHECK-NEXT: [8.0] - PdFPMAL
53 # CHECK-NEXT: [8.1] - PdFPMAL
54 # CHECK-NEXT: [9] - PdFPMMA
55 # CHECK-NEXT: [10] - PdFPSTO
56 # CHECK-NEXT: [11] - PdFPU0
57 # CHECK-NEXT: [12] - PdFPU1
58 # CHECK-NEXT: [13] - PdFPU2
59 # CHECK-NEXT: [14] - PdFPU3
60 # CHECK-NEXT: [15] - PdFPXBR
61 # CHECK-NEXT: [16.0] - PdLoad
62 # CHECK-NEXT: [16.1] - PdLoad
63 # CHECK-NEXT: [17] - PdMul
64 # CHECK-NEXT: [18] - PdStore
66 # CHECK: Resource pressure per iteration:
67 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18]
68 # CHECK-NEXT: 4.00 12.00 - - - - - - 6.00 6.00 - - - 4.00 2.00 2.00 6.00 6.00 - 6.00 6.00 - 4.00
70 # CHECK: Resource pressure by instruction:
71 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18] Instructions:
72 # CHECK-NEXT: - 3.00 - - - - - - - 3.00 - - - - - 1.00 - - - - 3.00 - - vmovaps (%rsi), %xmm0
73 # CHECK-NEXT: 1.00 - - - - - - - - - - - - 1.00 - - - 3.00 - - - - 1.00 vmovaps %xmm0, (%rdi)
74 # CHECK-NEXT: - 3.00 - - - - - - 3.00 - - - - - 1.00 - - - - 3.00 - - - vmovaps 16(%rsi), %xmm0
75 # CHECK-NEXT: 1.00 - - - - - - - - - - - - 1.00 - - 3.00 - - - - - 1.00 vmovaps %xmm0, 16(%rdi)
76 # CHECK-NEXT: - 3.00 - - - - - - - 3.00 - - - - - 1.00 - - - - 3.00 - - vmovaps 32(%rsi), %xmm0
77 # CHECK-NEXT: 1.00 - - - - - - - - - - - - 1.00 - - - 3.00 - - - - 1.00 vmovaps %xmm0, 32(%rdi)
78 # CHECK-NEXT: - 3.00 - - - - - - 3.00 - - - - - 1.00 - - - - 3.00 - - - vmovaps 48(%rsi), %xmm0
79 # CHECK-NEXT: 1.00 - - - - - - - - - - - - 1.00 - - 3.00 - - - - - 1.00 vmovaps %xmm0, 48(%rdi)
81 # CHECK: Timeline view:
82 # CHECK-NEXT: 0123456789
83 # CHECK-NEXT: Index 0123456789 0123456
85 # CHECK: [0,0] DeeeeeER . . . .. vmovaps (%rsi), %xmm0
86 # CHECK-NEXT: [0,1] D=====eER . . . .. vmovaps %xmm0, (%rdi)
87 # CHECK-NEXT: [0,2] D======eeeeeER . . .. vmovaps 16(%rsi), %xmm0
88 # CHECK-NEXT: [0,3] D===========eER. . .. vmovaps %xmm0, 16(%rdi)
89 # CHECK-NEXT: [0,4] .D===========eeeeeER. .. vmovaps 32(%rsi), %xmm0
90 # CHECK-NEXT: [0,5] .D================eER .. vmovaps %xmm0, 32(%rdi)
91 # CHECK-NEXT: [0,6] .D=================eeeeeER. vmovaps 48(%rsi), %xmm0
92 # CHECK-NEXT: [0,7] .D======================eER vmovaps %xmm0, 48(%rdi)
94 # CHECK: Average Wait times (based on the timeline view):
95 # CHECK-NEXT: [0]: Executions
96 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
97 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
98 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
100 # CHECK: [0] [1] [2] [3]
101 # CHECK-NEXT: 0. 1 1.0 1.0 0.0 vmovaps (%rsi), %xmm0
102 # CHECK-NEXT: 1. 1 6.0 0.0 0.0 vmovaps %xmm0, (%rdi)
103 # CHECK-NEXT: 2. 1 7.0 0.0 0.0 vmovaps 16(%rsi), %xmm0
104 # CHECK-NEXT: 3. 1 12.0 0.0 0.0 vmovaps %xmm0, 16(%rdi)
105 # CHECK-NEXT: 4. 1 12.0 0.0 0.0 vmovaps 32(%rsi), %xmm0
106 # CHECK-NEXT: 5. 1 17.0 0.0 0.0 vmovaps %xmm0, 32(%rdi)
107 # CHECK-NEXT: 6. 1 18.0 0.0 0.0 vmovaps 48(%rsi), %xmm0
108 # CHECK-NEXT: 7. 1 23.0 0.0 0.0 vmovaps %xmm0, 48(%rdi)