[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / llvm-mca / X86 / Barcelona / reg-move-elimination-3.s
blob30f2e7d8a20b6979504996b5976f97c7cb9debb6
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 vxorps %xmm0, %xmm0, %xmm0
5 movaps %xmm0, %xmm1
6 movups %xmm1, %xmm2
7 movapd %xmm2, %xmm3
8 movupd %xmm3, %xmm4
9 movdqa %xmm4, %xmm5
10 movdqu %xmm5, %xmm0
12 # CHECK: Iterations: 3
13 # CHECK-NEXT: Instructions: 21
14 # CHECK-NEXT: Total Cycles: 21
15 # CHECK-NEXT: Total uOps: 21
17 # CHECK: Dispatch Width: 4
18 # CHECK-NEXT: uOps Per Cycle: 1.00
19 # CHECK-NEXT: IPC: 1.00
20 # CHECK-NEXT: Block RThroughput: 4.0
22 # CHECK: Instruction Info:
23 # CHECK-NEXT: [1]: #uOps
24 # CHECK-NEXT: [2]: Latency
25 # CHECK-NEXT: [3]: RThroughput
26 # CHECK-NEXT: [4]: MayLoad
27 # CHECK-NEXT: [5]: MayStore
28 # CHECK-NEXT: [6]: HasSideEffects (U)
30 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
31 # CHECK-NEXT: 1 0 0.25 vxorps %xmm0, %xmm0, %xmm0
32 # CHECK-NEXT: 1 1 1.00 movaps %xmm0, %xmm1
33 # CHECK-NEXT: 1 1 1.00 movups %xmm1, %xmm2
34 # CHECK-NEXT: 1 1 1.00 movapd %xmm2, %xmm3
35 # CHECK-NEXT: 1 1 1.00 movupd %xmm3, %xmm4
36 # CHECK-NEXT: 1 1 0.33 movdqa %xmm4, %xmm5
37 # CHECK-NEXT: 1 1 0.33 movdqu %xmm5, %xmm0
39 # CHECK: Register File statistics:
40 # CHECK-NEXT: Total number of mappings created: 21
41 # CHECK-NEXT: Max number of mappings used: 17
43 # CHECK: Resources:
44 # CHECK-NEXT: [0] - SBDivider
45 # CHECK-NEXT: [1] - SBFPDivider
46 # CHECK-NEXT: [2] - SBPort0
47 # CHECK-NEXT: [3] - SBPort1
48 # CHECK-NEXT: [4] - SBPort4
49 # CHECK-NEXT: [5] - SBPort5
50 # CHECK-NEXT: [6.0] - SBPort23
51 # CHECK-NEXT: [6.1] - SBPort23
53 # CHECK: Resource pressure per iteration:
54 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
55 # CHECK-NEXT: - - 1.00 1.00 - 4.00 - -
57 # CHECK: Resource pressure by instruction:
58 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
59 # CHECK-NEXT: - - - - - - - - vxorps %xmm0, %xmm0, %xmm0
60 # CHECK-NEXT: - - - - - 1.00 - - movaps %xmm0, %xmm1
61 # CHECK-NEXT: - - - - - 1.00 - - movups %xmm1, %xmm2
62 # CHECK-NEXT: - - - - - 1.00 - - movapd %xmm2, %xmm3
63 # CHECK-NEXT: - - - - - 1.00 - - movupd %xmm3, %xmm4
64 # CHECK-NEXT: - - - 1.00 - - - - movdqa %xmm4, %xmm5
65 # CHECK-NEXT: - - 1.00 - - - - - movdqu %xmm5, %xmm0
67 # CHECK: Timeline view:
68 # CHECK-NEXT: 0123456789
69 # CHECK-NEXT: Index 0123456789 0
71 # CHECK: [0,0] DR . . . . vxorps %xmm0, %xmm0, %xmm0
72 # CHECK-NEXT: [0,1] DeER . . . . movaps %xmm0, %xmm1
73 # CHECK-NEXT: [0,2] D=eER. . . . movups %xmm1, %xmm2
74 # CHECK-NEXT: [0,3] D==eER . . . movapd %xmm2, %xmm3
75 # CHECK-NEXT: [0,4] .D==eER . . . movupd %xmm3, %xmm4
76 # CHECK-NEXT: [0,5] .D===eER . . . movdqa %xmm4, %xmm5
77 # CHECK-NEXT: [0,6] .D====eER . . . movdqu %xmm5, %xmm0
78 # CHECK-NEXT: [1,0] .D=====ER . . . vxorps %xmm0, %xmm0, %xmm0
79 # CHECK-NEXT: [1,1] . D====eER. . . movaps %xmm0, %xmm1
80 # CHECK-NEXT: [1,2] . D=====eER . . movups %xmm1, %xmm2
81 # CHECK-NEXT: [1,3] . D======eER . . movapd %xmm2, %xmm3
82 # CHECK-NEXT: [1,4] . D=======eER . . movupd %xmm3, %xmm4
83 # CHECK-NEXT: [1,5] . D=======eER . . movdqa %xmm4, %xmm5
84 # CHECK-NEXT: [1,6] . D========eER. . movdqu %xmm5, %xmm0
85 # CHECK-NEXT: [2,0] . D=========ER. . vxorps %xmm0, %xmm0, %xmm0
86 # CHECK-NEXT: [2,1] . D=========eER . movaps %xmm0, %xmm1
87 # CHECK-NEXT: [2,2] . D=========eER . movups %xmm1, %xmm2
88 # CHECK-NEXT: [2,3] . D==========eER . movapd %xmm2, %xmm3
89 # CHECK-NEXT: [2,4] . D===========eER . movupd %xmm3, %xmm4
90 # CHECK-NEXT: [2,5] . D============eER. movdqa %xmm4, %xmm5
91 # CHECK-NEXT: [2,6] . D============eER movdqu %xmm5, %xmm0
93 # CHECK: Average Wait times (based on the timeline view):
94 # CHECK-NEXT: [0]: Executions
95 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
96 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
97 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
99 # CHECK: [0] [1] [2] [3]
100 # CHECK-NEXT: 0. 3 5.3 0.0 0.0 vxorps %xmm0, %xmm0, %xmm0
101 # CHECK-NEXT: 1. 3 5.3 0.3 0.0 movaps %xmm0, %xmm1
102 # CHECK-NEXT: 2. 3 6.0 0.0 0.0 movups %xmm1, %xmm2
103 # CHECK-NEXT: 3. 3 7.0 0.0 0.0 movapd %xmm2, %xmm3
104 # CHECK-NEXT: 4. 3 7.7 0.0 0.0 movupd %xmm3, %xmm4
105 # CHECK-NEXT: 5. 3 8.3 0.0 0.0 movdqa %xmm4, %xmm5
106 # CHECK-NEXT: 6. 3 9.0 0.0 0.0 movdqu %xmm5, %xmm0
107 # CHECK-NEXT: 3 7.0 0.0 0.0 <total>