[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / llvm-mca / X86 / Barcelona / reg-move-elimination-5.s
blob2408e794fcdf311f5ea9de3bd9deec27046a7ca5
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -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: 1.3
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 0.33 movq %rax, %rbx
31 # CHECK-NEXT: 1 1 0.33 movq %rbx, %rcx
32 # CHECK-NEXT: 1 1 0.33 movq %rcx, %rdx
33 # CHECK-NEXT: 1 1 0.33 movq %rdx, %rax
35 # CHECK: Register File statistics:
36 # CHECK-NEXT: Total number of mappings created: 18
37 # CHECK-NEXT: Max number of mappings used: 15
39 # CHECK: Resources:
40 # CHECK-NEXT: [0] - SBDivider
41 # CHECK-NEXT: [1] - SBFPDivider
42 # CHECK-NEXT: [2] - SBPort0
43 # CHECK-NEXT: [3] - SBPort1
44 # CHECK-NEXT: [4] - SBPort4
45 # CHECK-NEXT: [5] - SBPort5
46 # CHECK-NEXT: [6.0] - SBPort23
47 # CHECK-NEXT: [6.1] - SBPort23
49 # CHECK: Resource pressure per iteration:
50 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
51 # CHECK-NEXT: - - 1.33 1.33 - 1.33 - -
53 # CHECK: Resource pressure by instruction:
54 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
55 # CHECK-NEXT: - - - - - - - - xorq %rax, %rax
56 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - movq %rax, %rbx
57 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - movq %rbx, %rcx
58 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - movq %rcx, %rdx
59 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - movq %rdx, %rax
61 # CHECK: Timeline view:
62 # CHECK-NEXT: 01234
63 # CHECK-NEXT: Index 0123456789
65 # CHECK: [0,0] DR . . . xorq %rax, %rax
66 # CHECK-NEXT: [0,1] DeER . . . movq %rax, %rbx
67 # CHECK-NEXT: [0,2] D=eER. . . movq %rbx, %rcx
68 # CHECK-NEXT: [0,3] D==eER . . movq %rcx, %rdx
69 # CHECK-NEXT: [0,4] .D==eER . . movq %rdx, %rax
70 # CHECK-NEXT: [1,0] .D===ER . . xorq %rax, %rax
71 # CHECK-NEXT: [1,1] .D===eER . . movq %rax, %rbx
72 # CHECK-NEXT: [1,2] .D====eER . . movq %rbx, %rcx
73 # CHECK-NEXT: [1,3] . D====eER. . movq %rcx, %rdx
74 # CHECK-NEXT: [1,4] . D=====eER . movq %rdx, %rax
75 # CHECK-NEXT: [2,0] . D======ER . xorq %rax, %rax
76 # CHECK-NEXT: [2,1] . D======eER . movq %rax, %rbx
77 # CHECK-NEXT: [2,2] . D======eER . movq %rbx, %rcx
78 # CHECK-NEXT: [2,3] . D=======eER. movq %rcx, %rdx
79 # CHECK-NEXT: [2,4] . D========eER movq %rdx, %rax
81 # CHECK: Average Wait times (based on the timeline view):
82 # CHECK-NEXT: [0]: Executions
83 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
84 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
85 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
87 # CHECK: [0] [1] [2] [3]
88 # CHECK-NEXT: 0. 3 3.7 0.0 0.0 xorq %rax, %rax
89 # CHECK-NEXT: 1. 3 4.0 0.3 0.0 movq %rax, %rbx
90 # CHECK-NEXT: 2. 3 4.7 0.0 0.0 movq %rbx, %rcx
91 # CHECK-NEXT: 3. 3 5.3 0.0 0.0 movq %rcx, %rdx
92 # CHECK-NEXT: 4. 3 6.0 0.0 0.0 movq %rdx, %rax
93 # CHECK-NEXT: 3 4.7 0.1 0.0 <total>