[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-mca / X86 / BtVer2 / reg-move-elimination-5.s
blobf121087250cc8a323802ea86095407abe38f7661
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -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: 9
13 # CHECK-NEXT: Total uOps: 15
15 # CHECK: Dispatch Width: 2
16 # CHECK-NEXT: uOps Per Cycle: 1.67
17 # CHECK-NEXT: IPC: 1.67
18 # CHECK-NEXT: Block RThroughput: 2.5
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.50 xorq %rax, %rax
30 # CHECK-NEXT: 1 1 0.50 movq %rax, %rbx
31 # CHECK-NEXT: 1 1 0.50 movq %rbx, %rcx
32 # CHECK-NEXT: 1 1 0.50 movq %rcx, %rdx
33 # CHECK-NEXT: 1 1 0.50 movq %rdx, %rax
35 # CHECK: Register File statistics:
36 # CHECK-NEXT: Total number of mappings created: 0
37 # CHECK-NEXT: Max number of mappings used: 0
39 # CHECK: * Register File #1 -- JFpuPRF:
40 # CHECK-NEXT: Number of physical registers: 72
41 # CHECK-NEXT: Total number of mappings created: 0
42 # CHECK-NEXT: Max number of mappings used: 0
44 # CHECK: * Register File #2 -- JIntegerPRF:
45 # CHECK-NEXT: Number of physical registers: 64
46 # CHECK-NEXT: Total number of mappings created: 0
47 # CHECK-NEXT: Max number of mappings used: 0
48 # CHECK-NEXT: Number of optimizable moves: 12
49 # CHECK-NEXT: Number of moves eliminated: 12 (100.0%)
50 # CHECK-NEXT: Number of zero moves: 12 (100.0%)
51 # CHECK-NEXT: Max moves eliminated per cycle: 2
53 # CHECK: Resources:
54 # CHECK-NEXT: [0] - JALU0
55 # CHECK-NEXT: [1] - JALU1
56 # CHECK-NEXT: [2] - JDiv
57 # CHECK-NEXT: [3] - JFPA
58 # CHECK-NEXT: [4] - JFPM
59 # CHECK-NEXT: [5] - JFPU0
60 # CHECK-NEXT: [6] - JFPU1
61 # CHECK-NEXT: [7] - JLAGU
62 # CHECK-NEXT: [8] - JMul
63 # CHECK-NEXT: [9] - JSAGU
64 # CHECK-NEXT: [10] - JSTC
65 # CHECK-NEXT: [11] - JVALU0
66 # CHECK-NEXT: [12] - JVALU1
67 # CHECK-NEXT: [13] - JVIMUL
69 # CHECK: Resource pressure per iteration:
70 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
71 # CHECK-NEXT: - - - - - - - - - - - - - -
73 # CHECK: Resource pressure by instruction:
74 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
75 # CHECK-NEXT: - - - - - - - - - - - - - - xorq %rax, %rax
76 # CHECK-NEXT: - - - - - - - - - - - - - - movq %rax, %rbx
77 # CHECK-NEXT: - - - - - - - - - - - - - - movq %rbx, %rcx
78 # CHECK-NEXT: - - - - - - - - - - - - - - movq %rcx, %rdx
79 # CHECK-NEXT: - - - - - - - - - - - - - - movq %rdx, %rax
81 # CHECK: Timeline view:
82 # CHECK-NEXT: Index 012345678
84 # CHECK: [0,0] DR . . xorq %rax, %rax
85 # CHECK-NEXT: [0,1] DR . . movq %rax, %rbx
86 # CHECK-NEXT: [0,2] .DR . . movq %rbx, %rcx
87 # CHECK-NEXT: [0,3] .DR . . movq %rcx, %rdx
88 # CHECK-NEXT: [0,4] . DR . . movq %rdx, %rax
89 # CHECK-NEXT: [1,0] . DR . . xorq %rax, %rax
90 # CHECK-NEXT: [1,1] . DR. . movq %rax, %rbx
91 # CHECK-NEXT: [1,2] . DR. . movq %rbx, %rcx
92 # CHECK-NEXT: [1,3] . DR . movq %rcx, %rdx
93 # CHECK-NEXT: [1,4] . DR . movq %rdx, %rax
94 # CHECK-NEXT: [2,0] . DR . xorq %rax, %rax
95 # CHECK-NEXT: [2,1] . DR . movq %rax, %rbx
96 # CHECK-NEXT: [2,2] . .DR. movq %rbx, %rcx
97 # CHECK-NEXT: [2,3] . .DR. movq %rcx, %rdx
98 # CHECK-NEXT: [2,4] . . DR movq %rdx, %rax
100 # CHECK: Average Wait times (based on the timeline view):
101 # CHECK-NEXT: [0]: Executions
102 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
103 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
104 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
106 # CHECK: [0] [1] [2] [3]
107 # CHECK-NEXT: 0. 3 0.0 0.0 0.0 xorq %rax, %rax
108 # CHECK-NEXT: 1. 3 0.0 0.0 0.0 movq %rax, %rbx
109 # CHECK-NEXT: 2. 3 0.0 0.0 0.0 movq %rbx, %rcx
110 # CHECK-NEXT: 3. 3 0.0 0.0 0.0 movq %rcx, %rdx
111 # CHECK-NEXT: 4. 3 0.0 0.0 0.0 movq %rdx, %rax
112 # CHECK-NEXT: 3 0.0 0.0 0.0 <total>