[ARM] Adjust how NEON shifts are lowered
[llvm-core.git] / test / tools / llvm-mca / X86 / BdVer2 / reg-move-elimination-5.s
blobc0cd38a031b11e3141d583d60c6d3784a5d181e3
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=3 -timeline -register-file-stats < %s | FileCheck %s
4 xor %rax, %rax
5 mov %rax, %rbx
6 mov %rbx, %rcx
7 mov %rcx, %rdx
8 mov %rdx, %rax
10 # CHECK: Iterations: 3
11 # CHECK-NEXT: Instructions: 15
12 # CHECK-NEXT: Total Cycles: 15
13 # CHECK-NEXT: Total uOps: 15
15 # CHECK: Dispatch Width: 4
16 # CHECK-NEXT: uOps Per Cycle: 1.00
17 # CHECK-NEXT: IPC: 1.00
18 # CHECK-NEXT: Block RThroughput: 4.0
20 # CHECK: Instruction Info:
21 # CHECK-NEXT: [1]: #uOps
22 # CHECK-NEXT: [2]: Latency
23 # CHECK-NEXT: [3]: RThroughput
24 # CHECK-NEXT: [4]: MayLoad
25 # CHECK-NEXT: [5]: MayStore
26 # CHECK-NEXT: [6]: HasSideEffects (U)
28 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
29 # CHECK-NEXT: 1 0 0.25 xorq %rax, %rax
30 # CHECK-NEXT: 1 1 1.00 movq %rax, %rbx
31 # CHECK-NEXT: 1 1 1.00 movq %rbx, %rcx
32 # CHECK-NEXT: 1 1 1.00 movq %rcx, %rdx
33 # CHECK-NEXT: 1 1 1.00 movq %rdx, %rax
35 # CHECK: Register File statistics:
36 # CHECK-NEXT: Total number of mappings created: 12
37 # CHECK-NEXT: Max number of mappings used: 11
39 # CHECK: * Register File #1 -- PdFpuPRF:
40 # CHECK-NEXT: Number of physical registers: 160
41 # CHECK-NEXT: Total number of mappings created: 0
42 # CHECK-NEXT: Max number of mappings used: 0
44 # CHECK: * Register File #2 -- PdIntegerPRF:
45 # CHECK-NEXT: Number of physical registers: 96
46 # CHECK-NEXT: Total number of mappings created: 12
47 # CHECK-NEXT: Max number of mappings used: 11
49 # CHECK: Resources:
50 # CHECK-NEXT: [0.0] - PdAGLU01
51 # CHECK-NEXT: [0.1] - PdAGLU01
52 # CHECK-NEXT: [1] - PdBranch
53 # CHECK-NEXT: [2] - PdCount
54 # CHECK-NEXT: [3] - PdDiv
55 # CHECK-NEXT: [4] - PdEX0
56 # CHECK-NEXT: [5] - PdEX1
57 # CHECK-NEXT: [6] - PdFPCVT
58 # CHECK-NEXT: [7.0] - PdFPFMA
59 # CHECK-NEXT: [7.1] - PdFPFMA
60 # CHECK-NEXT: [8.0] - PdFPMAL
61 # CHECK-NEXT: [8.1] - PdFPMAL
62 # CHECK-NEXT: [9] - PdFPMMA
63 # CHECK-NEXT: [10] - PdFPSTO
64 # CHECK-NEXT: [11] - PdFPU0
65 # CHECK-NEXT: [12] - PdFPU1
66 # CHECK-NEXT: [13] - PdFPU2
67 # CHECK-NEXT: [14] - PdFPU3
68 # CHECK-NEXT: [15] - PdFPXBR
69 # CHECK-NEXT: [16.0] - PdLoad
70 # CHECK-NEXT: [16.1] - PdLoad
71 # CHECK-NEXT: [17] - PdMul
72 # CHECK-NEXT: [18] - PdStore
74 # CHECK: Resource pressure per iteration:
75 # 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]
76 # CHECK-NEXT: - - - - - 4.00 4.00 - - - - - - - - - - - - - - - -
78 # CHECK: Resource pressure by instruction:
79 # 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:
80 # CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - - xorq %rax, %rax
81 # CHECK-NEXT: - - - - - - 2.00 - - - - - - - - - - - - - - - - movq %rax, %rbx
82 # CHECK-NEXT: - - - - - 2.00 - - - - - - - - - - - - - - - - - movq %rbx, %rcx
83 # CHECK-NEXT: - - - - - - 2.00 - - - - - - - - - - - - - - - - movq %rcx, %rdx
84 # CHECK-NEXT: - - - - - 2.00 - - - - - - - - - - - - - - - - - movq %rdx, %rax
86 # CHECK: Timeline view:
87 # CHECK-NEXT: 01234
88 # CHECK-NEXT: Index 0123456789
90 # CHECK: [0,0] DR . . . xorq %rax, %rax
91 # CHECK-NEXT: [0,1] DeER . . . movq %rax, %rbx
92 # CHECK-NEXT: [0,2] D=eER. . . movq %rbx, %rcx
93 # CHECK-NEXT: [0,3] D==eER . . movq %rcx, %rdx
94 # CHECK-NEXT: [0,4] .D==eER . . movq %rdx, %rax
95 # CHECK-NEXT: [1,0] .D----R . . xorq %rax, %rax
96 # CHECK-NEXT: [1,1] .D===eER . . movq %rax, %rbx
97 # CHECK-NEXT: [1,2] .D====eER . . movq %rbx, %rcx
98 # CHECK-NEXT: [1,3] . D====eER. . movq %rcx, %rdx
99 # CHECK-NEXT: [1,4] . D=====eER . movq %rdx, %rax
100 # CHECK-NEXT: [2,0] . D-------R . xorq %rax, %rax
101 # CHECK-NEXT: [2,1] . D======eER . movq %rax, %rbx
102 # CHECK-NEXT: [2,2] . D======eER . movq %rbx, %rcx
103 # CHECK-NEXT: [2,3] . D=======eER. movq %rcx, %rdx
104 # CHECK-NEXT: [2,4] . D========eER movq %rdx, %rax
106 # CHECK: Average Wait times (based on the timeline view):
107 # CHECK-NEXT: [0]: Executions
108 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
109 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
110 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
112 # CHECK: [0] [1] [2] [3]
113 # CHECK-NEXT: 0. 3 0.0 0.0 3.7 xorq %rax, %rax
114 # CHECK-NEXT: 1. 3 4.0 4.0 0.0 movq %rax, %rbx
115 # CHECK-NEXT: 2. 3 4.7 0.0 0.0 movq %rbx, %rcx
116 # CHECK-NEXT: 3. 3 5.3 0.0 0.0 movq %rcx, %rdx
117 # CHECK-NEXT: 4. 3 6.0 0.0 0.0 movq %rdx, %rax