[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / llvm-mca / X86 / Barcelona / reg-move-elimination-4.s
blob390dee10ed10c1a29323d58c404c0c0e6b6a7c20
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 %eax, %eax
5 mov %eax, %ebx
6 mov %ebx, %ecx
7 mov %ecx, %edx
8 mov %edx, %eax
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 xorl %eax, %eax
30 # CHECK-NEXT: 1 1 0.33 movl %eax, %ebx
31 # CHECK-NEXT: 1 1 0.33 movl %ebx, %ecx
32 # CHECK-NEXT: 1 1 0.33 movl %ecx, %edx
33 # CHECK-NEXT: 1 1 0.33 movl %edx, %eax
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: - - - - - - - - xorl %eax, %eax
56 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - movl %eax, %ebx
57 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - movl %ebx, %ecx
58 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - movl %ecx, %edx
59 # CHECK-NEXT: - - 0.33 0.33 - 0.33 - - movl %edx, %eax
61 # CHECK: Timeline view:
62 # CHECK-NEXT: 01234
63 # CHECK-NEXT: Index 0123456789
65 # CHECK: [0,0] DR . . . xorl %eax, %eax
66 # CHECK-NEXT: [0,1] DeER . . . movl %eax, %ebx
67 # CHECK-NEXT: [0,2] D=eER. . . movl %ebx, %ecx
68 # CHECK-NEXT: [0,3] D==eER . . movl %ecx, %edx
69 # CHECK-NEXT: [0,4] .D==eER . . movl %edx, %eax
70 # CHECK-NEXT: [1,0] .D===ER . . xorl %eax, %eax
71 # CHECK-NEXT: [1,1] .D===eER . . movl %eax, %ebx
72 # CHECK-NEXT: [1,2] .D====eER . . movl %ebx, %ecx
73 # CHECK-NEXT: [1,3] . D====eER. . movl %ecx, %edx
74 # CHECK-NEXT: [1,4] . D=====eER . movl %edx, %eax
75 # CHECK-NEXT: [2,0] . D======ER . xorl %eax, %eax
76 # CHECK-NEXT: [2,1] . D======eER . movl %eax, %ebx
77 # CHECK-NEXT: [2,2] . D======eER . movl %ebx, %ecx
78 # CHECK-NEXT: [2,3] . D=======eER. movl %ecx, %edx
79 # CHECK-NEXT: [2,4] . D========eER movl %edx, %eax
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 xorl %eax, %eax
89 # CHECK-NEXT: 1. 3 4.0 0.3 0.0 movl %eax, %ebx
90 # CHECK-NEXT: 2. 3 4.7 0.0 0.0 movl %ebx, %ecx
91 # CHECK-NEXT: 3. 3 5.3 0.0 0.0 movl %ecx, %edx
92 # CHECK-NEXT: 4. 3 6.0 0.0 0.0 movl %edx, %eax
93 # CHECK-NEXT: 3 4.7 0.1 0.0 <total>